LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
UTIL::ILDCellIDEncoder< T > Class Template Reference

Special wrapper to the CellIDEncoder<T> that enforces cellID0 to use the encoder string defined in ILDCellID0::encoder_string. More...

#include <ILDConf.h>

+ Inheritance diagram for UTIL::ILDCellIDEncoder< T >:

Public Member Functions

 ILDCellIDEncoder (EVENT::LCCollection *col)
 Constructor for using the canonical cellID0 as defined in ILDCellID0::encoder_string - cellID1 will not be used. More...
 
 ILDCellIDEncoder (const std::string &cellIDEncoding, EVENT::LCCollection *col)
 Constructor that prepends given ILDCellID0::encoder_string to the given encoding string. More...
 
- Public Member Functions inherited from UTIL::CellIDEncoder< T >
 CellIDEncoder (const CellIDEncoder &)=delete
 
CellIDEncoderoperator= (const CellIDEncoder &)=delete
 
 CellIDEncoder (const std::string &cellIDEncoding, EVENT::LCCollection *col)
 Constructor, sets collection parameter LCIO::CellIDEncoding to the given encoding string. More...
 
void setCellID (T *hit)
 
void setCellIDFlag ()
 Helper method that sets/unsets the proper bit for storing a second cellid word. More...
 
- Public Member Functions inherited from UTIL::BitField64
 ~BitField64 ()
 
 BitField64 (const std::string &initString)
 The c'tor takes an initialization string of the form:
<fieldDesc>[,<fieldDesc>...]
fieldDesc = name:[start]:[-]length
where:
name: The name of the field
start: The start bit of the field. More...
 
lcio::long64 getValue () const
 Returns the current 64bit value. More...
 
void setValue (lcio::long64 value)
 Set a new 64bit value. More...
 
void reset ()
 Reset - same as setValue(0) - useful if the same encoder is used for many objects. More...
 
BitFieldValueoperator[] (size_t theIndex)
 Acces to field through index. More...
 
const BitFieldValueoperator[] (size_t theIndex) const
 Const acces to field through index. More...
 
unsigned highestBit () const
 Highest bit used in fields [0-63]. More...
 
size_t size () const
 Number of values. More...
 
size_t index (const std::string &name) const
 Index for field named 'name'. More...
 
BitFieldValueoperator[] (const std::string &name)
 Access to field through name . More...
 
const BitFieldValueoperator[] (const std::string &name) const
 Const Access to field through name . More...
 
unsigned lowWord () const
 The low word, bits 0-31. More...
 
unsigned highWord () const
 The high word, bits 32-63. More...
 
std::string fieldDescription () const
 Return a valid description string of all fields. More...
 
std::string valueString () const
 Return a string with a comma separated list of the current sub field values. More...
 

Additional Inherited Members

- Public Types inherited from UTIL::BitField64
typedef std::map< std::string,
unsigned int > 
IndexMap
 
- Protected Member Functions inherited from UTIL::BitField64
void addField (const std::string &name, unsigned offset, int width)
 Add an additional field to the list. More...
 
void init (const std::string &initString)
 Decode the initialization string as described in the constructor. More...
 
 BitField64 ()
 No default c'tor. More...
 
- Protected Attributes inherited from UTIL::CellIDEncoder< T >
EVENT::LCCollection_col
 
- Protected Attributes inherited from UTIL::BitField64
std::vector< BitFieldValue * > _fields {}
 
lcio::long64 _value
 
IndexMap _map {}
 
lcio::long64 _joined
 

Detailed Description

template<class T>
class UTIL::ILDCellIDEncoder< T >

Special wrapper to the CellIDEncoder<T> that enforces cellID0 to use the encoder string defined in ILDCellID0::encoder_string.

Definition at line 69 of file ILDConf.h.

Constructor & Destructor Documentation

template<class T >
UTIL::ILDCellIDEncoder< T >::ILDCellIDEncoder ( EVENT::LCCollection col)
inline

Constructor for using the canonical cellID0 as defined in ILDCellID0::encoder_string - cellID1 will not be used.

Definition at line 75 of file ILDConf.h.

template<class T >
UTIL::ILDCellIDEncoder< T >::ILDCellIDEncoder ( const std::string cellIDEncoding,
EVENT::LCCollection col 
)
inline

Constructor that prepends given ILDCellID0::encoder_string to the given encoding string.

Throws an Exception if called with an empty string.

Definition at line 82 of file ILDConf.h.

References std::string::size().


The documentation for this class was generated from the following file: