Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding. More...
#include <UTIL/CellIDDecoder.h>
Public Member Functions | |
| CellIDDecoder (const CellIDDecoder &) | |
| CellIDDecoder & | operator= (const CellIDDecoder &) |
| 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. | |
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. | |
Static Protected Attributes | |
| static std::string | _defaultEncoding = 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.
| const BitField64& UTIL::CellIDDecoder< T >::operator() | ( | const T * | hit | ) | [inline] |
Provides access to the bit fields, e.g.
int layer = myCellIDEncoding( hit )[ "layer" ] ;
| static void UTIL::CellIDDecoder< T >::setDefaultEncoding | ( | const std::string & | defaultEncoding | ) | [inline, static] |
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.
1.6.1