LCIO  02.17
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ILDConf.cc
Go to the documentation of this file.
1 #include "UTIL/ILDConf.h"
2 
3 namespace UTIL {
4 
5  // this string should never be changed really
6  const std::string ILDCellID0::encoder_string = "subdet:5,side:-2,layer:9,module:8,sensor:8" ;
7 
8  // Note: the definition of static const ints might not be strictly needed as in-class declarqtion and initialization
9  // is typically enough, however there are cases where this would result in undefined symbol linker errors
10  // ( e.g. when the constant is used in a method that takes a const reference as an argument, such as MYTESTS()
11  // - see http://stackoverflow.com/questions/3025997/c-defining-static-const-integer-members-in-class-definition )
12  //
13  // So in any case we define _and_ initialize the constants here, which also hides the actual int values from the user.
14  //
15 
16  const unsigned ILDCellID0::subdet = 0 ;
17  const unsigned ILDCellID0::side = 1 ;
18  const unsigned ILDCellID0::layer = 2 ;
19  const unsigned ILDCellID0::module = 3 ;
20  const unsigned ILDCellID0::sensor = 4 ;
21 
22  const int ILDDetID::NOTUSED = 0 ;
23  const int ILDDetID::VXD = 1 ;
24  const int ILDDetID::SIT = 2 ;
25  const int ILDDetID::FTD = 3 ;
26  const int ILDDetID::TPC = 4 ;
27  const int ILDDetID::SET = 5 ;
28  const int ILDDetID::ETD = 6 ;
29  const int ILDDetID::ECAL = 20 ;
30  const int ILDDetID::ECAL_PLUG = 21 ;
31  const int ILDDetID::HCAL = 22 ;
32  const int ILDDetID::HCAL_RING = 23 ;
33  const int ILDDetID::LCAL = 24 ;
34  const int ILDDetID::BCAL = 25 ;
35  const int ILDDetID::LHCAL = 26 ;
36  const int ILDDetID::YOKE = 27 ;
37  const int ILDDetID::COIL = 28 ;
38  const int ILDDetID::ECAL_ENDCAP= 29 ;
39  const int ILDDetID::HCAL_ENDCAP= 30 ;
40  const int ILDDetID::YOKE_ENDCAP= 31 ;
41 
42  const int ILDDetID::bwd = - 1 ;
43  const int ILDDetID::barrel = 0 ;
44  const int ILDDetID::fwd = 1 ;
45 
46 
47  // type specifyers for LCIO TrackerHits used in the context of ILD reconstruction code
48 
50  const int ILDTrkHitTypeBit::ONE_DIMENSIONAL = 29 ;
51 
52 
53  const int ILDTrkHitQualityBit::USED_IN_FIT = 30 ;
54  const int ILDTrkHitQualityBit::USED_IN_TRACK = 29 ;
56  const int ILDTrkHitQualityBit::GOOD = 27 ;
57 }
static const int NOTUSED
Definition: ILDConf.h:104
static const int fwd
Definition: ILDConf.h:127
static const int SIT
Definition: ILDConf.h:106
static const int COIL
Definition: ILDConf.h:120
static const int LHCAL
Definition: ILDConf.h:118
static const unsigned layer
Index of the field layer in encoder_string - local sub detector layer ID starting from 0 going away f...
Definition: ILDConf.h:53
static const int ECAL_ENDCAP
Definition: ILDConf.h:121
static const int FTD
Definition: ILDConf.h:107
static const unsigned side
Index of the field side in encoder_string - one of DetID::bwd, DetID::barrel, DetID::fwd.
Definition: ILDConf.h:49
static const int HCAL_ENDCAP
Definition: ILDConf.h:122
static const int YOKE
Definition: ILDConf.h:119
static const unsigned subdet
Index of the field subdet in encoder_string - sub detector Id as defined in DetID, e.g.
Definition: ILDConf.h:45
static const int USED_IN_FIT
Definition: ILDConf.h:148
STL class.
static const int barrel
Definition: ILDConf.h:126
static const int GOOD
Definition: ILDConf.h:151
static const int HCAL
Definition: ILDConf.h:114
static const int bwd
Definition: ILDConf.h:125
static const int VXD
Definition: ILDConf.h:105
static const unsigned sensor
Index of the field sensor in encoder_string - sensor ID as defined for the given subdetetor module...
Definition: ILDConf.h:59
static const std::string encoder_string
The canonical encoding string to be used for writing the CellID0 with the CellIDEncoder<T>: ...
Definition: ILDConf.h:41
static const int USED_IN_TRACK
Definition: ILDConf.h:149
static const int SET
Definition: ILDConf.h:109
static const int DOUBLE_HIT_CANDIDATE
Definition: ILDConf.h:150
static const unsigned module
Index of the field module in encoder_string - module ID as defined for the given subdetetor.
Definition: ILDConf.h:56
static const int HCAL_RING
Definition: ILDConf.h:115
static const int ECAL_PLUG
Definition: ILDConf.h:113
static const int ECAL
Definition: ILDConf.h:112
static const int YOKE_ENDCAP
Definition: ILDConf.h:123
static const int BCAL
Definition: ILDConf.h:117
static const int ETD
Definition: ILDConf.h:110
static const int COMPOSITE_SPACEPOINT
Definition: ILDConf.h:137
static const int ONE_DIMENSIONAL
Definition: ILDConf.h:138
static const int TPC
Definition: ILDConf.h:108
static const int LCAL
Definition: ILDConf.h:116