Helper class to define constants for the canonical encoding of the CellID0 in tracking sub detectors in ILD (or ILD like detectors). More...
#include <UTIL/ILDConf.h>
Static Public Attributes | |
static std::string | encoder_string = "subdet:5,side:-2,layer:9,module:8,sensor:8" |
The canonical encoding string to be used for writing the CellID0 with the CellIDEncoder<T>: More... | |
static const unsigned | subdet = 0 |
Index of the field subdet in encoder_string - sub detector Id as defined in DetID, e.g. More... | |
static const unsigned | side = 1 |
Index of the field side in encoder_string - one of DetID::bwd, DetID::barrel, DetID::fwd. | |
static const unsigned | layer = 2 |
Index of the field layer in encoder_string - local sub detector layer ID starting from 0 going away from the origin (IP). | |
static const unsigned | module = 3 |
Index of the field module in encoder_string - module ID as defined for the given subdetetor. More... | |
static const unsigned | sensor = 4 |
Index of the field sensor in encoder_string - sensor ID as defined for the given subdetetor module. More... | |
Helper class to define constants for the canonical encoding of the CellID0 in tracking sub detectors in ILD (or ILD like detectors).
F.Gaede, DESY, 2011
|
static |
The canonical encoding string to be used for writing the CellID0 with the CellIDEncoder<T>:
"subdet:5,side:-2,layer:9,module:8:sensor:8"
Use the CellIdDecoder to access the elements:
CellIDDecoder<TrackerHit> idDec( trkHitCol ) ; // ... TrackerHit* hit = (TrackerHit*) trkHitCol.getElementAt( i ) ;
int layer = idDec( hit )[ ILDCellID0::layer ] ;
|
static |
Index of the field module in encoder_string - module ID as defined for the given subdetetor.
|
static |
Index of the field sensor in encoder_string - sensor ID as defined for the given subdetetor module.
|
static |
Index of the field subdet in encoder_string - sub detector Id as defined in DetID, e.g.
DetID::VXD or DetID::FTD.