LCIO  "2.7.4"
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
UTIL::CellIDDecoder< T > Class Template Reference

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 BitField64operator() (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")
 

Detailed Description

template<class T>
class UTIL::CellIDDecoder< T >

Convenient class for decoding cellIDs from collection parameter LCIO::CellIDEncoding.

See UTIL::BitField64 for a description of the encoding string.

See Also
BitField64
Version
Id:
CellIDDecoder.h,v 1.9.16.1 2011-03-04 14:09:07 engels Exp

Member Function Documentation

template<class T>
const BitField64& UTIL::CellIDDecoder< T >::operator() ( const T *  hit)
inline

Provides access to the bit fields, e.g.


int layer = myCellIDEncoding( hit )[ "layer" ] ;

template<class T>
static void UTIL::CellIDDecoder< T >::setDefaultEncoding ( const std::string &  defaultEncoding)
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.


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