SQLamarr
The stand-alone ultra-fast simulation option for the LHCb experiment
__init__.py
1 # (c) Copyright 2022 CERN for the benefit of the LHCb Collaboration.
2 #
3 # This software is distributed under the terms of the GNU General Public
4 # Licence version 3 (GPL Version 3), copied verbatim in the file "LICENCE".
5 #
6 # In applying this licence, CERN does not waive the privileges and immunities
7 # granted to it by virtue of its status as an Intergovernmental Organization
8 # or submit itself to any jurisdiction.
9 
10 import ctypes
11 
12 
13 from SQLamarr._find_CDLL import _find_CDLL
14 clib = _find_CDLL()
15 
16 class c_TransformerPtr (ctypes.Structure):
17  _fields_ = [
18  ("dtype", ctypes.c_int),
19  ("p", ctypes.c_void_p)
20  ]
21 
22 
23 
24 clib.get_version.restype = ctypes.c_char_p
25 clib.del_Transformer.argtypes = (c_TransformerPtr,)
26 version = str(clib.get_version(), "ascii")
27 
28 
29 from SQLamarr.db_functions import SQLite3DB
30 
31 
32 from SQLamarr.HepMC2DataLoader import HepMC2DataLoader
33 
34 
35 from SQLamarr.PVFinder import PVFinder
36 from SQLamarr.MCParticleSelector import MCParticleSelector
37 from SQLamarr.PVReconstruction import PVReconstruction
38 from SQLamarr.Plugin import Plugin
39 from SQLamarr.GenerativePlugin import GenerativePlugin
40 from SQLamarr.TemporaryTable import TemporaryTable
41 from SQLamarr.CleanEventStore import CleanEventStore
42 from SQLamarr.EditEventStore import EditEventStore
43 from SQLamarr.UpdateDBConnection import UpdateDBConnection
44 
45 
46 from SQLamarr.PyTransformer import PyTransformer
47 
48 
49 from SQLamarr.Pipeline import Pipeline
50 
Removes all data from DB without affecting the schema.
Execute a query non returning anything, but modifying the event store.
Interface to dynamically linked generative parametrizations.
Data loader for HepMC2-format ASCII files.
Converts GenParticles to MCParticles.
Identifies the primary vertices.
Definition: PVFinder.h:41
Emulates the reconstruction of the primary vertex.
The Pipeline object defines the envelop for running C++ transformers from Python.
Definition: Pipeline.py:27
Interface to dynamically linked generative parametrizations.
Definition: Plugin.h:46
Decorator transforming a python function in a Transformer that can be pipelined to C++ algorithms in ...
Creates a temporary table from an SQL query.
Reset the database connection forcing flushing the db status.