1 #ifndef CellIDDecoder_h
2 #define CellIDDecoder_h 1
42 if( encoder_str.
length() == 0 ){
43 throw( lcio::Exception(
"CellIDDecoder : string of length zero provided as encoder string" ) ) ;
58 if( initString.
size() == 0 ) {
63 <<
" WARNING: CellIDDecoder - no CellIDEncoding parameter in collection ! "
65 <<
" -> using default : \"" << initString <<
"\""
67 <<
" ------------------------------------------ "
105 static void setDefaultEncoding(
const std::string& defaultEncoding ) ) ;
124 const std::string CellIDDecoder<T>::_defaultEncoding
CellIDDecoder(const std::string &encoder_str)
Constructor takes encoding string as argument.
CellIDDecoder & operator=(const CellIDDecoder &)=delete
A bit field of 64bits that allows convenient declaration and manipulation of sub fields of various wi...
static const std::string _defaultEncoding
const BitField64 & operator()(const T *hit)
Provides access to the bit fields, e.g.
Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding.
void setValue(lcio::long64 value)
Set a new 64bit value.
The generic collection used in LCIO.
CellIDDecoder(const EVENT::LCCollection *col)
Constructor reads encoding string from collection parameter LCIO::CellIDEncoding. ...
virtual const std::string & getStringVal(const std::string &key) const =0
Returns the first string value for the given key.
virtual const LCParameters & getParameters() const =0
Parameters defined for this collection.
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 th...