1515 [19:19] sign of v (0:+v; 1:-v) (v=0 is at the center of beam line)
1616 [20:24] layer number
1717 [25:25] z-side (0 for +z; 1 for -z)
18- [26:27] Type (0 fine divisions of wafer with 120 mum thick silicon
19- 1 coarse divisions of wafer with 200 mum thick silicon
20- 2 coarse divisions of wafer with 300 mum thick silicon
21- 3 fine divisions of wafer with 200 mum thick silicon )
18+ [26:27] Type (0 high density wafer with depltetion thickness of 120 mum
19+ 1 low density wafer with depletion thickness of 200 mum
20+ 2 low density wafer with depletion thickness of 300 mum
21+ 3 high density wafer with depletion thickness of 200 mum )
2222 [28:31] Detector type (HGCalEE or HGCalHSi)
2323*/
2424class HGCSiliconDetId : public DetId {
2525public:
26- enum waferType { HGCalFine = 0 , HGCalCoarseThin = 1 , HGCalCoarseThick = 2 , HGCalFineThick = 3 };
26+ enum waferType { HGCalHD120 = 0 , HGCalLD200 = 1 , HGCalLD300 = 2 , HGCalHD200 = 3 };
2727 static constexpr int32_t HGCalHighDensityN = 12 ;
2828 static constexpr int32_t HGCalLowDensityN = 8 ;
2929 static constexpr int32_t HGCalFineTrigger = 3 ;
@@ -95,11 +95,10 @@ class HGCSiliconDetId : public DetId {
9595
9696 // / get the type
9797 constexpr int32_t type () const { return (id_ >> kHGCalTypeOffset ) & kHGCalTypeMask ; }
98- constexpr bool lowDensity () const { return ((type () == HGCalCoarseThin ) || (type () == HGCalCoarseThick )); }
99- constexpr bool highDensity () const { return ((type () == HGCalFine ) || (type () == HGCalFineThick )); }
98+ constexpr bool lowDensity () const { return ((type () == HGCalLD200 ) || (type () == HGCalLD300 )); }
99+ constexpr bool highDensity () const { return ((type () == HGCalHD120 ) || (type () == HGCalHD200 )); }
100100 constexpr int32_t depletion () const {
101- return ((type () == HGCalFine) ? HGCal0Depletion
102- : ((type () == HGCalCoarseThick) ? HGCal2Depletion : HGCal1Depletion));
101+ return ((type () == HGCalHD120) ? HGCal0Depletion : ((type () == HGCalLD300) ? HGCal2Depletion : HGCal1Depletion));
103102 }
104103
105104 // / get the z-side of the cell (1/-1)
@@ -113,11 +112,11 @@ class HGCSiliconDetId : public DetId {
113112 constexpr int32_t cellV () const { return (id_ >> kHGCalCellVOffset ) & kHGCalCellVMask ; }
114113 constexpr std::pair<int32_t , int32_t > cellUV () const { return std::pair<int32_t , int32_t >(cellU (), cellV ()); }
115114 constexpr int32_t cellX () const {
116- int32_t N = ((type () == HGCalFine ) || (type () == HGCalFineThick )) ? HGCalHighDensityN : HGCalLowDensityN;
115+ int32_t N = ((type () == HGCalHD120 ) || (type () == HGCalHD200 )) ? HGCalHighDensityN : HGCalLowDensityN;
117116 return (3 * (cellV () - N) + 2 );
118117 }
119118 constexpr int32_t cellY () const {
120- int32_t N = ((type () == HGCalFine ) || (type () == HGCalFineThick )) ? HGCalHighDensityN : HGCalLowDensityN;
119+ int32_t N = ((type () == HGCalHD120 ) || (type () == HGCalHD200 )) ? HGCalHighDensityN : HGCalLowDensityN;
121120 return (2 * cellU () - (N + cellV ()));
122121 }
123122 constexpr std::pair<int32_t , int32_t > cellXY () const { return std::pair<int32_t , int32_t >(cellX (), cellY ()); }
@@ -148,15 +147,15 @@ class HGCSiliconDetId : public DetId {
148147
149148 // get trigger cell u,v
150149 constexpr int32_t triggerCellU () const {
151- int32_t N = ((type () == HGCalFine ) || (type () == HGCalFineThick )) ? HGCalHighDensityN : HGCalLowDensityN;
152- int32_t NT = ((type () == HGCalFine ) || (type () == HGCalFineThick )) ? HGCalFineTrigger : HGCalCoarseTrigger;
150+ int32_t N = ((type () == HGCalHD120 ) || (type () == HGCalHD200 )) ? HGCalHighDensityN : HGCalLowDensityN;
151+ int32_t NT = ((type () == HGCalHD120 ) || (type () == HGCalHD200 )) ? HGCalFineTrigger : HGCalCoarseTrigger;
153152 return (cellU () >= N && cellV () >= N)
154153 ? cellU () / NT
155154 : ((cellU () < N && cellU () <= cellV ()) ? cellU () / NT : (1 + (cellU () - (cellV () % NT + 1 )) / NT));
156155 }
157156 constexpr int32_t triggerCellV () const {
158- int32_t N = ((type () == HGCalFine ) || (type () == HGCalFineThick )) ? HGCalHighDensityN : HGCalLowDensityN;
159- int32_t NT = ((type () == HGCalFine ) || (type () == HGCalFineThick )) ? HGCalFineTrigger : HGCalCoarseTrigger;
157+ int32_t N = ((type () == HGCalHD120 ) || (type () == HGCalHD200 )) ? HGCalHighDensityN : HGCalLowDensityN;
158+ int32_t NT = ((type () == HGCalHD120 ) || (type () == HGCalHD200 )) ? HGCalFineTrigger : HGCalCoarseTrigger;
160159 return (cellU () >= N && cellV () >= N)
161160 ? cellV () / NT
162161 : ((cellU () < N && cellU () <= cellV ()) ? ((cellV () - cellU ()) / NT + cellU () / NT) : cellV () / NT);
0 commit comments