11 from ctypes
import POINTER
12 from SQLamarr
import clib, c_TransformerPtr
16 clib.new_PVReconstruction.argtypes = (
17 ctypes.c_void_p, ctypes.c_char_p, ctypes.c_char_p, ctypes.c_char_p
19 clib.new_PVReconstruction.restype = c_TransformerPtr
23 Transform the MCVertices objects identified as primary vertices into Vertices,
24 smearing their position according to a triple-Gaussian, diagonal
27 Python bindings to SQLamarr::PVReconstruction.
29 The parameters used to parametrize the smearing where obtained from detailed
30 simulation and are stored in an SQLite3 table with the schema documented in
31 SQLamarr::PVReconstruction.
40 Acquires the reference to an open connection to the database and
41 connection details to a PV reconstruction database.
43 @param db: An open database connection;
44 @param file_name: string providing the path to a SQLite3 file;
45 @param table_name: string providing the name of the TABLE where the
46 parametrizations for the PV reconstruction are stored;
47 @param condition: string identifier of the row to read the parametrization
50 self.
_self_self = clib.new_PVReconstruction(db.get(),
51 file_name.encode(
'ascii'),
52 table_name.encode(
'ascii'),
53 condition.encode(
'ascii'),
57 """@private: Release the bound class instance"""
58 clib.del_Transformer(self.
_self_self)
61 def raw_pointer(self):
62 """@private: Return the raw pointer to the algorithm."""
63 return self.
_self_self
Transform the MCVertices objects identified as primary vertices into Vertices, smearing their positio...
def __init__(self, SQLite3DB db, str file_name, str table_name, str condition)
Acquires the reference to an open connection to the database and connection details to a PV reconstru...