Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

UTIL::CellIDDecoder< T > Class Template Reference

#include <CellIDDecoder.h>

List of all members.

Public Member Functions

 CellIDDecoder (const LCCollection *col)
 ~CellIDDecoder ()
const BitField64operator() (T *hit)
template<>
std::string * _defaultEncoding
template<>
std::string * _defaultEncoding
template<>
const BitField64operator() (SimTrackerHit *hit)
template<>
std::string * _defaultEncoding

Static Public Member Functions

void setDefaultEncoding (const std::string &defaultEncoding)

Protected Attributes

BitField64_b
T * _oldHit

Static Protected Attributes

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 2006/12/08 10:18:59 gaede Exp

Definition at line 30 of file CellIDDecoder.h.


Constructor & Destructor Documentation

template<class T>
UTIL::CellIDDecoder< T >::CellIDDecoder const LCCollection col  )  [inline]
 

Constructor reads encoding string from collection parameter LCIO::CellIDEncoding.

Definition at line 36 of file CellIDDecoder.h.

References EVENT::LCCollection::getParameters(), and EVENT::LCParameters::getStringVal().

template<class T>
UTIL::CellIDDecoder< T >::~CellIDDecoder  )  [inline]
 

Definition at line 59 of file CellIDDecoder.h.


Member Function Documentation

template<>
std::string * UTIL::CellIDDecoder< SimTrackerHit >::_defaultEncoding  ) 
 

Definition at line 130 of file CellIDDecoder.h.

template<>
std::string * UTIL::CellIDDecoder< SimTrackerHit >::_defaultEncoding  ) 
 

Definition at line 7 of file CellIDDecoder.cc.

template<>
std::string * UTIL::CellIDDecoder< SimTrackerHit >::_defaultEncoding  ) 
 

Definition at line 7 of file CellIDDecoder.cc.

template<>
const BitField64 & UTIL::CellIDDecoder< SimTrackerHit >::operator() SimTrackerHit hit  )  [inline]
 

Provides access to the bit fields, e.g.
int layer = myCellIDEncoding( hit )[ "layer" ] ; Specialization for SimTrackerHits that have only one cellID.

Definition at line 114 of file CellIDDecoder.h.

References UTIL::CellIDDecoder< T >::_b, UTIL::CellIDDecoder< T >::_oldHit, EVENT::SimTrackerHit::getCellID(), EVENT::long64, and UTIL::BitField64::setValue().

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

Provides access to the bit fields, e.g.
int layer = myCellIDEncoding( hit )[ "layer" ] ;

Definition at line 69 of file CellIDDecoder.h.

References EVENT::long64, and EVENT::LCParameters::setValue().

template<class T>
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.

Definition at line 89 of file CellIDDecoder.h.


Member Data Documentation

template<class T>
BitField64* UTIL::CellIDDecoder< T >::_b [protected]
 

Definition at line 97 of file CellIDDecoder.h.

Referenced by UTIL::CellIDDecoder< T >::operator()().

template<class T>
std::string * UTIL::CellIDDecoder< T >::_defaultEncoding = new std::string("byte0:8,byte1:8,byte2:8,byte3:8,byte4:8,byte5:8,byte6:8,byte7:8") [static, protected]
 

Definition at line 105 of file CellIDDecoder.h.

template<class T>
T* UTIL::CellIDDecoder< T >::_oldHit [protected]
 

Definition at line 98 of file CellIDDecoder.h.

Referenced by UTIL::CellIDDecoder< T >::operator()().


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 06:32:40 2007 for A TPC Tracking Environment by  doxygen 1.3.9.1