LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Attributes | List of all members
UTIL::ILDCellID0 Struct Reference

Helper class to define constants for the canonical encoding of the CellID0 in tracking sub detectors in ILD (or ILD like detectors). More...

#include <ILDConf.h>

Static Public Attributes

static const std::string encoder_string = "subdet:5,side:-2,layer:9,module:8,sensor:8"
 The canonical encoding string to be used for writing the CellID0 with the CellIDEncoder<T>: More...
 
static const unsigned subdet = 0
 Index of the field subdet in encoder_string - sub detector Id as defined in DetID, e.g. More...
 
static const unsigned side = 1
 Index of the field side in encoder_string - one of DetID::bwd, DetID::barrel, DetID::fwd. More...
 
static const unsigned layer = 2
 Index of the field layer in encoder_string - local sub detector layer ID starting from 0 going away from the origin (IP). More...
 
static const unsigned module = 3
 Index of the field module in encoder_string - module ID as defined for the given subdetetor. More...
 
static const unsigned sensor = 4
 Index of the field sensor in encoder_string - sensor ID as defined for the given subdetetor module. More...
 

Detailed Description

Helper class to define constants for the canonical encoding of the CellID0 in tracking sub detectors in ILD (or ILD like detectors).

F.Gaede, DESY, 2011

Version
$Id:$

Definition at line 27 of file ILDConf.h.

Member Data Documentation

const std::string UTIL::ILDCellID0::encoder_string = "subdet:5,side:-2,layer:9,module:8,sensor:8"
static

The canonical encoding string to be used for writing the CellID0 with the CellIDEncoder<T>:

"subdet:5,side:-2,layer:9,module:8:sensor:8"

Use the CellIdDecoder to access the elements:

    CellIDDecoder<TrackerHit> idDec( trkHitCol ) ;
     // ...
     TrackerHit* hit = (TrackerHit*) trkHitCol.getElementAt( i ) ;
     int layer  = idDec( hit )[ ILDCellID0::layer ] ;
 

Definition at line 41 of file ILDConf.h.

const unsigned UTIL::ILDCellID0::layer = 2
static

Index of the field layer in encoder_string - local sub detector layer ID starting from 0 going away from the origin (IP).

Definition at line 53 of file ILDConf.h.

const unsigned UTIL::ILDCellID0::module = 3
static

Index of the field module in encoder_string - module ID as defined for the given subdetetor.

Definition at line 56 of file ILDConf.h.

const unsigned UTIL::ILDCellID0::sensor = 4
static

Index of the field sensor in encoder_string - sensor ID as defined for the given subdetetor module.

Definition at line 59 of file ILDConf.h.

const unsigned UTIL::ILDCellID0::side = 1
static

Index of the field side in encoder_string - one of DetID::bwd, DetID::barrel, DetID::fwd.

Definition at line 49 of file ILDConf.h.

const unsigned UTIL::ILDCellID0::subdet = 0
static

Index of the field subdet in encoder_string - sub detector Id as defined in DetID, e.g.

DetID::VXD or DetID::FTD.

Definition at line 45 of file ILDConf.h.


The documentation for this struct was generated from the following files: