Singleton helper class defining the cellID encoding used in the LC tracking packages. More...
#include <UTIL/LCTrackerConf.h>
Public Member Functions | |
LCTrackerCellID () | |
c'tor initialize the encoding string with the 'canonical' encoding | |
void | set_encoding_string (const std::string &encodingString) |
set the encoding string. Throws exception if it was already accessed to prevent inconsistencies | |
void | setAccessed () |
set accessed to true | |
Static Public Member Functions | |
static LCTrackerCellID & | instance () |
static unsigned | subdet () |
index of subdet in cellID | |
static unsigned | side () |
index of side in cellID | |
static unsigned | layer () |
index of layer in cellID | |
static unsigned | module () |
index of module in cellID | |
static unsigned | sensor () |
index of sensor in cellID | |
static const std::string & | encoding_string () |
static std::string | valueString (unsigned val) |
return a string with the details of the given id: | |
Protected Attributes | |
std::string | _encoding |
bool | _accessed |
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 ]