LCIO
02.17
|
Singleton helper class defining the cellID encoding used in the LC tracking packages. More...
#include <LCTrackerConf.h>
Public Member Functions | |
void | set_encoding_string (const std::string &encodingString) |
set the encoding string. Throws exception if it was already accessed to prevent inconsistencies More... | |
void | setAccessed () |
set accessed to true More... | |
Static Public Member Functions | |
static LCTrackerCellID & | instance () |
static unsigned | subdet () |
index of subdet in cellID More... | |
static unsigned | side () |
index of side in cellID More... | |
static unsigned | layer () |
index of layer in cellID More... | |
static unsigned | module () |
index of module in cellID More... | |
static unsigned | sensor () |
index of sensor in cellID More... | |
static const std::string & | encoding_string () |
static std::string | valueString (unsigned val) |
return a string with the details of the given id: More... | |
Protected Member Functions | |
LCTrackerCellID () | |
c'tor initialize the encoding string with the 'canonical' encoding More... | |
Protected Attributes | |
std::string | _encoding |
bool | _accessed |
Private Types | |
enum | { subdetID = 0, sideID = 1, layerID = 2, moduleID = 3, sensorID = 4 } |
Singleton helper class defining the cellID encoding used in the LC tracking packages.
It is assumed that the cellID contains the elements subdet, side, layer, module and sensor in that order. The actual encoding string can be set once, but only before it is accessed for the first time. The default encoding string is: "subdet:5,side:-2,layer:9,module:8,sensor:8"
[should replace UTIL::ILDCellID0 and DDKalTest::CellIDEncoding ]
Definition at line 23 of file LCTrackerConf.h.
|
private |
Enumerator | |
---|---|
subdetID | |
sideID | |
layerID | |
moduleID | |
sensorID |
Definition at line 26 of file LCTrackerConf.h.
|
inlineprotected |
c'tor initialize the encoding string with the 'canonical' encoding
Definition at line 111 of file LCTrackerConf.h.
|
inlinestatic |
Definition at line 58 of file LCTrackerConf.h.
References _accessed, _encoding, and instance().
Referenced by valueString().
|
inlinestatic |
Definition at line 37 of file LCTrackerConf.h.
Referenced by encoding_string(), and valueString().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
set the encoding string. Throws exception if it was already accessed to prevent inconsistencies
Definition at line 72 of file LCTrackerConf.h.
References _accessed, _encoding, and std::string::find().
|
inline |
set accessed to true
Definition at line 104 of file LCTrackerConf.h.
References _accessed.
Referenced by valueString().
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
return a string with the details of the given id:
Definition at line 64 of file LCTrackerConf.h.
References encoding_string(), instance(), setAccessed(), UTIL::BitField64::setValue(), and UTIL::BitField64::valueString().
|
protected |
Definition at line 115 of file LCTrackerConf.h.
Referenced by encoding_string(), set_encoding_string(), and setAccessed().
|
protected |
Definition at line 114 of file LCTrackerConf.h.
Referenced by encoding_string(), and set_encoding_string().