Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding. More...
#include <UTIL/CellIDDecoder.h>
Public Member Functions | |
CellIDDecoder (const std::string &encoder_str) | |
Constructor takes encoding string as argument. | |
CellIDDecoder (const EVENT::LCCollection *col) | |
Constructor reads encoding string from collection parameter LCIO::CellIDEncoding. | |
const BitField64 & | operator() (const T *hit) |
Provides access to the bit fields, e.g. More... | |
Static Public Member Functions | |
static void | setDefaultEncoding (const std::string &defaultEncoding) |
This can be used to set the default encoding that is used if no CellIDEncoding parameter is set in the collection, e.g. More... | |
Protected Attributes | |
BitField64 * | _b |
const T * | _oldHit |
Static Protected Attributes | |
static std::string * | _defaultEncoding = new std::string("byte0:8,byte1:8,byte2:8,byte3:8,byte4:8,byte5:8,byte6:8,byte7:8") |
Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding.
See UTIL::BitField64 for a description of the encoding string.
|
inline |
Provides access to the bit fields, e.g.
int layer = myCellIDEncoding( hit )[ "layer" ] ;
|
inlinestatic |
This can be used to set the default encoding that is used if no CellIDEncoding parameter is set in the collection, e.g.
in older lcio files.