![]() |
Belle II Software development
|
Public Member Functions | |
| __init__ (self) | |
| event (self) | |
Public Attributes | |
| root = ROOT | |
| ROOT module, kept so that event() does not have to import it again. | |
| n_crystals = ROOT.Belle2.ECLElementNumbers.c_NCrystals | |
| number of ECL crystals; cellID runs from 1 to this value | |
| bool | first_event = True |
| print the geometry in the first event only | |
Print the location and direction of the axis of every ECL crystal, once. The numbers come from ECL::ECLGeometryPar, i.e. from the ECLCrystalsShapeAndPosition payload valid for the experiment and run being processed, so the geometry has to be built by the Gearbox and Geometry modules first. The table is printed in the first event, because the crystal positions are read from a conditions payload and are therefore only known once the run is started.
Definition at line 16 of file ecl_utils.py.
| __init__ | ( | self | ) |
Constructor: load the ECL library and look up the number of crystals.
Definition at line 29 of file ecl_utils.py.
| event | ( | self | ) |
Print the table of crystal positions in the first event.
Definition at line 45 of file ecl_utils.py.
| bool first_event = True |
print the geometry in the first event only
Definition at line 43 of file ecl_utils.py.
| n_crystals = ROOT.Belle2.ECLElementNumbers.c_NCrystals |
number of ECL crystals; cellID runs from 1 to this value
Definition at line 41 of file ecl_utils.py.
| root = ROOT |
ROOT module, kept so that event() does not have to import it again.
Definition at line 39 of file ecl_utils.py.