UTIL::LCTrackerCellID Class Reference

Singleton helper class defining the cellID encoding used in the LC tracking packages. More...

#include <UTIL/LCTrackerConf.h>

List of all members.

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 LCTrackerCellIDinstance ()
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

Detailed Description

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 ]

Author:
F.Gaede, DESY
Date:
Mar, 2017

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1