LCIO
02.17
|
Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding. More...
#include <CellIDDecoder.h>
Public Member Functions | |
CellIDDecoder ()=default | |
CellIDDecoder (const CellIDDecoder &)=delete | |
CellIDDecoder & | operator= (const CellIDDecoder &)=delete |
CellIDDecoder (const std::string &encoder_str) | |
Constructor takes encoding string as argument. More... | |
CellIDDecoder (const EVENT::LCCollection *col) | |
Constructor reads encoding string from collection parameter LCIO::CellIDEncoding. More... | |
~CellIDDecoder () | |
const BitField64 & | operator() (const T *hit) |
Provides access to the bit fields, e.g. More... | |
LCIO_DEPRECATED ("No longer supported for thread safety issues", 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 {NULL} |
Static Protected Attributes | |
static const std::string | _defaultEncoding = std::string("M:3,S-1:3,I:9,J:9,K-1:6") |
Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding.
See UTIL::BitField64 for a description of the encoding string.
Definition at line 29 of file CellIDDecoder.h.
|
default |
|
delete |
|
inline |
Constructor takes encoding string as argument.
Definition at line 40 of file CellIDDecoder.h.
References UTIL::CellIDDecoder< T >::_b, and std::string::length().
|
inline |
Constructor reads encoding string from collection parameter LCIO::CellIDEncoding.
Definition at line 51 of file CellIDDecoder.h.
References UTIL::CellIDDecoder< T >::_b, UTIL::CellIDDecoder< T >::_defaultEncoding, std::endl(), EVENT::LCCollection::getParameters(), EVENT::LCParameters::getStringVal(), and std::string::size().
|
inline |
Definition at line 74 of file CellIDDecoder.h.
References UTIL::CellIDDecoder< T >::_b.
UTIL::CellIDDecoder< T >::LCIO_DEPRECATED | ( | "No longer supported for thread safety issues" | , |
static void | setDefaultEncodingconst 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.
in older lcio files.
|
inline |
Provides access to the bit fields, e.g.
int layer = myCellIDEncoding( hit )[ "layer" ] ;
Definition at line 84 of file CellIDDecoder.h.
References UTIL::CellIDDecoder< T >::_b, UTIL::CellIDDecoder< T >::_oldHit, and UTIL::BitField64::setValue().
|
delete |
|
protected |
Definition at line 108 of file CellIDDecoder.h.
Referenced by UTIL::CellIDDecoder< T >::CellIDDecoder(), UTIL::CellIDDecoder< T >::operator()(), and UTIL::CellIDDecoder< T >::~CellIDDecoder().
|
staticprotected |
Definition at line 111 of file CellIDDecoder.h.
Referenced by UTIL::CellIDDecoder< T >::CellIDDecoder().
|
protected |
Definition at line 109 of file CellIDDecoder.h.
Referenced by UTIL::CellIDDecoder< T >::operator()().