UTIL::CellIDDecoder< T > Class Template Reference

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

#include <UTIL/CellIDDecoder.h>

List of all members.

Public Member Functions

 CellIDDecoder (const CellIDDecoder &)
CellIDDecoderoperator= (const CellIDDecoder &)
 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.

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.

Static Protected Attributes

static std::string _defaultEncoding = 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  )  [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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Friends

Generated on 6 Mar 2020 for LCIO by  doxygen 1.6.1