CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes
HGCalCoarseTriggerCellMapping Class Reference

#include <HGCalCoarseTriggerCellMapping.h>

Public Member Functions

void checkSizeValidity (int ctcSize) const
 
void eventSetup (const edm::EventSetup &es)
 
uint32_t getCoarseTriggerCellId (uint32_t detid) const
 
GlobalPoint getCoarseTriggerCellPosition (uint32_t ctcId) const
 
std::vector< uint32_t > getConstituentTriggerCells (uint32_t ctcId) const
 
uint32_t getRepresentativeDetId (uint32_t tcid) const
 
 HGCalCoarseTriggerCellMapping (const std::vector< unsigned > &ctcSize)
 

Static Public Attributes

static constexpr int kCTCsizeCoarse_ = 16
 
static constexpr int kCTCsizeFine_ = 4
 
static constexpr int kCTCsizeIndividual_ = 1
 
static constexpr int kCTCsizeMid_ = 8
 
static constexpr int kCTCsizeVeryFine_ = 2
 

Private Attributes

std::vector< unsigned > ctcSize_
 
HGCSiliconDetIdToROC detIdToROC_
 
HGCalTriggerTools triggerTools_
 

Static Private Attributes

static constexpr int kHGCalCellMaskV9Inv_ = ~0xff
 
static constexpr int kHGCalScinCellMaskInv_ = ~0x1ffff
 
static constexpr int kNHGCalLayersMax_ = 52
 
static constexpr int kNThicknesses_ = 4
 
static constexpr int kRoc0deg_ = 1
 
static constexpr int kRoc120deg_ = 2
 
static constexpr int kRoc240deg_ = 3
 
static constexpr int kRocMask_ = 0xf
 
static constexpr int kRocShift_ = 4
 
static constexpr int kRotate4_ = 4
 
static constexpr int kRotate7_ = 7
 
static const std::map< int, int > kSplit_
 
static constexpr int kSplit_v8_Coarse_ = 0x30
 
static constexpr int kSplit_v8_Fine_ = 0x3a
 
static constexpr int kSplit_v8_Individual_ = 0x3f
 
static constexpr int kSplit_v8_Mid_ = 0x38
 
static constexpr int kSplit_v8_VeryFine_ = 0x3e
 
static const std::map< int, int > kSplit_v9_
 
static constexpr int kSplit_v9_Coarse_ = 0
 
static constexpr int kSplit_v9_Fine_ = 0xa
 
static constexpr int kSplit_v9_Individual_ = 0xf
 
static constexpr int kSplit_v9_Mid_ = 0x2
 
static const std::map< int, int > kSplit_v9_Scin_
 
static constexpr int kSplit_v9_Scin_Coarse_ = 0x1f9fc
 
static constexpr int kSplit_v9_Scin_Fine_ = 0x1fdfe
 
static constexpr int kSplit_v9_Scin_Individual_ = 0x1ffff
 
static constexpr int kSplit_v9_Scin_Mid_ = 0x1fdfc
 
static constexpr int kSplit_v9_Scin_VeryFine_ = 0x1fffe
 
static constexpr int kSplit_v9_VeryFine_ = 0xb
 
static constexpr int kSTCidMaskInv_ = ~0x3f
 
static constexpr int kSTCidMaskInv_v9_ = ~0xf
 
static constexpr int kUMask_ = 0x3
 
static constexpr int kUShift_ = 2
 
static constexpr int kVMask_ = 0x3
 
static constexpr int kVShift_ = 0
 

Detailed Description

Definition at line 9 of file HGCalCoarseTriggerCellMapping.h.

Constructor & Destructor Documentation

◆ HGCalCoarseTriggerCellMapping()

HGCalCoarseTriggerCellMapping::HGCalCoarseTriggerCellMapping ( const std::vector< unsigned > &  ctcSize)

Definition at line 4 of file HGCalCoarseTriggerCellMapping.cc.

5  : ctcSize_(!ctcSize.empty() ? ctcSize
6  : std::vector<unsigned>{kNHGCalLayersMax_ * kNThicknesses_, kCTCsizeVeryFine_}) {
7  if (ctcSize_.size() != (kNHGCalLayersMax_ + 1) * kNThicknesses_) {
8  throw cms::Exception("HGCTriggerParameterError")
9  << "Inconsistent size of coarse trigger cell size vector " << ctcSize_.size();
10  }
11 
12  for (auto ctc : ctcSize_)
13  checkSizeValidity(ctc);
14 }

References kCTCsizeVeryFine_, kNHGCalLayersMax_, and kNThicknesses_.

Member Function Documentation

◆ checkSizeValidity()

void HGCalCoarseTriggerCellMapping::checkSizeValidity ( int  ctcSize) const

Definition at line 38 of file HGCalCoarseTriggerCellMapping.cc.

38  {
41  throw cms::Exception("HGCTriggerParameterError")
42  << "Coarse Trigger Cell should be of size " << kCTCsizeIndividual_ << " or " << kCTCsizeVeryFine_ << " or "
43  << kCTCsizeFine_ << " or " << kCTCsizeMid_ << " or " << kCTCsizeCoarse_;
44  }
45 }

References hgcalConcentratorProducer_cfi::ctcSize, Exception, kCTCsizeCoarse_, kCTCsizeFine_, kCTCsizeIndividual_, kCTCsizeMid_, and kCTCsizeVeryFine_.

◆ eventSetup()

void HGCalCoarseTriggerCellMapping::eventSetup ( const edm::EventSetup es)
inline

◆ getCoarseTriggerCellId()

uint32_t HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId ( uint32_t  detid) const

Definition at line 60 of file HGCalCoarseTriggerCellMapping.cc.

60  {
61  unsigned int layer = triggerTools_.layerWithOffset(detid);
62  int thickness = triggerTools_.thicknessIndex(detid, true);
63 
64  int ctcSize = ctcSize_.at(thickness * kNHGCalLayersMax_ + layer);
65 
66  DetId tc_Id(detid);
67  if (tc_Id.det() == DetId::Forward) { //V8
68 
69  HGCalDetId tc_IdV8(detid);
70 
71  if (triggerTools_.isScintillator(detid)) {
72  return detid; //stc not available in scintillator for v8
73  } else {
74  int tcSplit = (tc_IdV8.cell() & kSplit_.at(ctcSize));
75  detid = (detid & ~(HGCalDetId::kHGCalCellMask)) | tcSplit;
76  return detid;
77  }
78 
79  }
80 
81  else if (tc_Id.det() == DetId::HGCalTrigger || tc_Id.det() == DetId::HGCalHSc) { //V9
82  if (triggerTools_.isScintillator(detid)) {
83  HGCScintillatorDetId tc_IdV9(detid);
84 
85  int tcSplit = (((tc_IdV9.ietaAbs() - 1) << HGCScintillatorDetId::kHGCalRadiusOffset) | (tc_IdV9.iphi() - 1)) &
87 
88  detid = (detid & kHGCalScinCellMaskInv_) | tcSplit;
89 
90  return detid;
91 
92  } else {
93  HGCalTriggerDetId tc_IdV9(detid);
94 
95  int uPrime = 0;
96  int vPrime = 0;
97  int rocnum = detIdToROC_.getROCNumber(tc_IdV9.triggerCellU(), tc_IdV9.triggerCellV(), 1);
98 
99  if (rocnum == kRoc0deg_) {
100  uPrime = tc_IdV9.triggerCellU();
101  vPrime = tc_IdV9.triggerCellV() - tc_IdV9.triggerCellU();
102 
103  } else if (rocnum == kRoc120deg_) {
104  uPrime = tc_IdV9.triggerCellU() - tc_IdV9.triggerCellV() - 1;
105  vPrime = tc_IdV9.triggerCellV();
106 
107  } else if (rocnum == kRoc240deg_) {
108  uPrime = tc_IdV9.triggerCellV() - kRotate4_;
109  vPrime = kRotate7_ - tc_IdV9.triggerCellU();
110  }
111 
112  int tcSplit = (rocnum << kRocShift_) | ((uPrime << kUShift_ | vPrime) & kSplit_v9_.at(ctcSize));
113  detid = (detid & kHGCalCellMaskV9Inv_) | tcSplit;
114  return detid;
115  }
116 
117  } else {
118  return 0;
119  }
120 }

References HGCalDetId::cell(), hgcalConcentratorProducer_cfi::ctcSize, ctcSize_, DetId::det(), detIdToROC_, DetId::Forward, HGCSiliconDetIdToROC::getROCNumber(), DetId::HGCalHSc, DetId::HGCalTrigger, HGCScintillatorDetId::ietaAbs(), HGCScintillatorDetId::iphi(), HGCalTriggerTools::isScintillator(), HGCalDetId::kHGCalCellMask, kHGCalCellMaskV9Inv_, HGCScintillatorDetId::kHGCalRadiusOffset, kHGCalScinCellMaskInv_, kNHGCalLayersMax_, kRoc0deg_, kRoc120deg_, kRoc240deg_, kRocShift_, kRotate4_, kRotate7_, kSplit_, kSplit_v9_, kSplit_v9_Scin_, kUShift_, HGCalTriggerTools::layerWithOffset(), Calorimetry_cff::thickness, HGCalTriggerTools::thicknessIndex(), HGCalTriggerDetId::triggerCellU(), HGCalTriggerDetId::triggerCellV(), and triggerTools_.

Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorCoarsenerImpl::coarsen(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), getRepresentativeDetId(), and HGCalConcentratorSuperTriggerCellImpl::select().

◆ getCoarseTriggerCellPosition()

GlobalPoint HGCalCoarseTriggerCellMapping::getCoarseTriggerCellPosition ( uint32_t  ctcId) const

Definition at line 196 of file HGCalCoarseTriggerCellMapping.cc.

196  {
197  std::vector<uint32_t> constituentTCs = getConstituentTriggerCells(ctcId);
198  Basic3DVector<float> average_vector(0., 0., 0.);
199 
200  for (const auto constituent : constituentTCs) {
201  average_vector += triggerTools_.getTCPosition(constituent).basicVector();
202  }
203 
204  GlobalPoint average_point(average_vector / constituentTCs.size());
205  return average_point;
206 }

References PV3DBase< T, PVType, FrameType >::basicVector(), getConstituentTriggerCells(), HGCalTriggerTools::getTCPosition(), and triggerTools_.

Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), and HGCalConcentratorCoarsenerImpl::coarsen().

◆ getConstituentTriggerCells()

std::vector< uint32_t > HGCalCoarseTriggerCellMapping::getConstituentTriggerCells ( uint32_t  ctcId) const

Definition at line 122 of file HGCalCoarseTriggerCellMapping.cc.

122  {
123  int thickness = triggerTools_.thicknessIndex(ctcId, true);
124  unsigned int layer = triggerTools_.layerWithOffset(ctcId);
125  int ctcSize = ctcSize_.at(thickness * kNHGCalLayersMax_ + layer);
126 
127  std::vector<uint32_t> output_ids;
128  DetId tc_Id(ctcId);
129 
130  if (tc_Id.det() == DetId::Forward) { //V8
131 
132  if (triggerTools_.isScintillator(ctcId)) {
133  output_ids.emplace_back(ctcId); //stc not available in scintillator for v8
134  } else {
135  int splitInv = ~(kSTCidMaskInv_ | kSplit_.at(ctcSize));
136  for (int i = 0; i < splitInv + 1; i++) {
137  if ((i & splitInv) != i)
138  continue;
139 
140  output_ids.emplace_back(ctcId | i);
141  }
142  }
143  } else if (tc_Id.det() == DetId::HGCalTrigger || tc_Id.det() == DetId::HGCalHSc) { //V9
144 
145  if (triggerTools_.isScintillator(ctcId)) {
146  int splitInv = ~(kHGCalScinCellMaskInv_ | kSplit_v9_Scin_.at(ctcSize));
147  for (int i = 0; i < splitInv + 1; i++) {
148  if ((i & splitInv) != i)
149  continue;
150 
151  HGCScintillatorDetId prime = (ctcId | i);
152  unsigned outid = (ctcId & kHGCalScinCellMaskInv_) |
153  (((prime.iradiusAbs() + 1) << HGCScintillatorDetId::kHGCalRadiusOffset) | (prime.iphi() + 1));
154 
156  output_ids.emplace_back(outid);
157  }
158  }
159 
160  } else {
161  int splitInv = ~(kSTCidMaskInv_v9_ | kSplit_v9_.at(ctcSize));
162  for (int i = 0; i < splitInv + 1; i++) {
163  if ((i & splitInv) != i)
164  continue;
165  int uPrime = ((ctcId | i) >> kUShift_) & kUMask_;
166  int vPrime = ((ctcId | i) >> kVShift_) & kVMask_;
167  int rocnum = (ctcId >> kRocShift_) & kRocMask_;
168 
169  int u = 0;
170  int v = 0;
171 
172  if (rocnum == kRoc0deg_) {
173  u = uPrime;
174  v = vPrime + u;
175  } else if (rocnum == kRoc120deg_) {
176  u = uPrime + vPrime + 1;
177  v = vPrime;
178  } else if (rocnum == kRoc240deg_) {
179  u = kRotate7_ - vPrime;
180  v = uPrime + kRotate4_;
181  }
182 
183  uint32_t outid = ctcId & kHGCalCellMaskV9Inv_;
186 
188  output_ids.emplace_back(outid);
189  }
190  }
191  }
192  }
193  return output_ids;
194 }

References hgcalConcentratorProducer_cfi::ctcSize, ctcSize_, DetId::det(), DetId::Forward, HGCalTriggerTools::getTriggerGeometry(), DetId::HGCalHSc, DetId::HGCalTrigger, mps_fire::i, HGCScintillatorDetId::iphi(), HGCScintillatorDetId::iradiusAbs(), HGCalTriggerTools::isScintillator(), kHGCalCellMaskV9Inv_, HGCalTriggerDetId::kHGCalCellUMask, HGCalTriggerDetId::kHGCalCellUOffset, HGCalTriggerDetId::kHGCalCellVMask, HGCalTriggerDetId::kHGCalCellVOffset, HGCScintillatorDetId::kHGCalRadiusOffset, kHGCalScinCellMaskInv_, kNHGCalLayersMax_, kRoc0deg_, kRoc120deg_, kRoc240deg_, kRocMask_, kRocShift_, kRotate4_, kRotate7_, kSplit_, kSplit_v9_, kSplit_v9_Scin_, kSTCidMaskInv_, kSTCidMaskInv_v9_, kUMask_, kUShift_, kVMask_, kVShift_, HGCalTriggerTools::layerWithOffset(), Calorimetry_cff::thickness, HGCalTriggerTools::thicknessIndex(), triggerTools_, findQualityFiles::v, and HGCalTriggerGeometryBase::validTriggerCell().

Referenced by HGCalConcentratorSuperTriggerCellImpl::assignSuperTriggerCellEnergyAndPosition(), HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells(), getCoarseTriggerCellPosition(), and getRepresentativeDetId().

◆ getRepresentativeDetId()

uint32_t HGCalCoarseTriggerCellMapping::getRepresentativeDetId ( uint32_t  tcid) const

Definition at line 47 of file HGCalCoarseTriggerCellMapping.cc.

47  {
48  uint32_t representativeid = 0;
49  //Firstly get coarse trigger cell Id
50  uint32_t ctcId = getCoarseTriggerCellId(tcid);
51  //Get list of the constituent TCs, and choose (arbitrarily) the first one
52  representativeid = getConstituentTriggerCells(ctcId).at(0);
53  if (triggerTools_.getTriggerGeometry()->validTriggerCell(representativeid)) {
54  return representativeid;
55  } else {
56  return tcid;
57  }
58 }

References getCoarseTriggerCellId(), getConstituentTriggerCells(), HGCalTriggerTools::getTriggerGeometry(), triggerTools_, and HGCalTriggerGeometryBase::validTriggerCell().

Referenced by HGCalConcentratorCoarsenerImpl::coarsen(), and HGCalConcentratorSuperTriggerCellImpl::createAllTriggerCells().

Member Data Documentation

◆ ctcSize_

std::vector<unsigned> HGCalCoarseTriggerCellMapping::ctcSize_
private

◆ detIdToROC_

HGCSiliconDetIdToROC HGCalCoarseTriggerCellMapping::detIdToROC_
private

Definition at line 67 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getCoarseTriggerCellId().

◆ kCTCsizeCoarse_

constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeCoarse_ = 16
staticconstexpr

Definition at line 19 of file HGCalCoarseTriggerCellMapping.h.

Referenced by checkSizeValidity().

◆ kCTCsizeFine_

constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeFine_ = 4
staticconstexpr

Definition at line 21 of file HGCalCoarseTriggerCellMapping.h.

Referenced by checkSizeValidity().

◆ kCTCsizeIndividual_

constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeIndividual_ = 1
staticconstexpr

Definition at line 23 of file HGCalCoarseTriggerCellMapping.h.

Referenced by checkSizeValidity().

◆ kCTCsizeMid_

constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeMid_ = 8
staticconstexpr

Definition at line 20 of file HGCalCoarseTriggerCellMapping.h.

Referenced by checkSizeValidity().

◆ kCTCsizeVeryFine_

constexpr int HGCalCoarseTriggerCellMapping::kCTCsizeVeryFine_ = 2
staticconstexpr

◆ kHGCalCellMaskV9Inv_

constexpr int HGCalCoarseTriggerCellMapping::kHGCalCellMaskV9Inv_ = ~0xff
staticconstexprprivate

◆ kHGCalScinCellMaskInv_

constexpr int HGCalCoarseTriggerCellMapping::kHGCalScinCellMaskInv_ = ~0x1ffff
staticconstexprprivate

◆ kNHGCalLayersMax_

constexpr int HGCalCoarseTriggerCellMapping::kNHGCalLayersMax_ = 52
staticconstexprprivate

◆ kNThicknesses_

constexpr int HGCalCoarseTriggerCellMapping::kNThicknesses_ = 4
staticconstexprprivate

Definition at line 36 of file HGCalCoarseTriggerCellMapping.h.

Referenced by HGCalCoarseTriggerCellMapping().

◆ kRoc0deg_

constexpr int HGCalCoarseTriggerCellMapping::kRoc0deg_ = 1
staticconstexprprivate

◆ kRoc120deg_

constexpr int HGCalCoarseTriggerCellMapping::kRoc120deg_ = 2
staticconstexprprivate

◆ kRoc240deg_

constexpr int HGCalCoarseTriggerCellMapping::kRoc240deg_ = 3
staticconstexprprivate

◆ kRocMask_

constexpr int HGCalCoarseTriggerCellMapping::kRocMask_ = 0xf
staticconstexprprivate

Definition at line 52 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getConstituentTriggerCells().

◆ kRocShift_

constexpr int HGCalCoarseTriggerCellMapping::kRocShift_ = 4
staticconstexprprivate

◆ kRotate4_

constexpr int HGCalCoarseTriggerCellMapping::kRotate4_ = 4
staticconstexprprivate

◆ kRotate7_

constexpr int HGCalCoarseTriggerCellMapping::kRotate7_ = 7
staticconstexprprivate

◆ kSplit_

const std::map< int, int > HGCalCoarseTriggerCellMapping::kSplit_
staticprivate

◆ kSplit_v8_Coarse_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Coarse_ = 0x30
staticconstexprprivate

Definition at line 31 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v8_Fine_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Fine_ = 0x3a
staticconstexprprivate

Definition at line 33 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v8_Individual_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Individual_ = 0x3f
staticconstexprprivate

Definition at line 35 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v8_Mid_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_Mid_ = 0x38
staticconstexprprivate

Definition at line 32 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v8_VeryFine_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v8_VeryFine_ = 0x3e
staticconstexprprivate

Definition at line 34 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_

const std::map< int, int > HGCalCoarseTriggerCellMapping::kSplit_v9_
staticprivate

◆ kSplit_v9_Coarse_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Coarse_ = 0
staticconstexprprivate

Definition at line 38 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Fine_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Fine_ = 0xa
staticconstexprprivate

Definition at line 40 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Individual_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Individual_ = 0xf
staticconstexprprivate

Definition at line 42 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Mid_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Mid_ = 0x2
staticconstexprprivate

Definition at line 39 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Scin_

const std::map< int, int > HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_
staticprivate

◆ kSplit_v9_Scin_Coarse_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Coarse_ = 0x1f9fc
staticconstexprprivate

Definition at line 44 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Scin_Fine_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Fine_ = 0x1fdfe
staticconstexprprivate

Definition at line 46 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Scin_Individual_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Individual_ = 0x1ffff
staticconstexprprivate

Definition at line 48 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Scin_Mid_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Mid_ = 0x1fdfc
staticconstexprprivate

Definition at line 45 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_Scin_VeryFine_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_VeryFine_ = 0x1fffe
staticconstexprprivate

Definition at line 47 of file HGCalCoarseTriggerCellMapping.h.

◆ kSplit_v9_VeryFine_

constexpr int HGCalCoarseTriggerCellMapping::kSplit_v9_VeryFine_ = 0xb
staticconstexprprivate

Definition at line 41 of file HGCalCoarseTriggerCellMapping.h.

◆ kSTCidMaskInv_

constexpr int HGCalCoarseTriggerCellMapping::kSTCidMaskInv_ = ~0x3f
staticconstexprprivate

Definition at line 29 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getConstituentTriggerCells().

◆ kSTCidMaskInv_v9_

constexpr int HGCalCoarseTriggerCellMapping::kSTCidMaskInv_v9_ = ~0xf
staticconstexprprivate

Definition at line 30 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getConstituentTriggerCells().

◆ kUMask_

constexpr int HGCalCoarseTriggerCellMapping::kUMask_ = 0x3
staticconstexprprivate

Definition at line 57 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getConstituentTriggerCells().

◆ kUShift_

constexpr int HGCalCoarseTriggerCellMapping::kUShift_ = 2
staticconstexprprivate

◆ kVMask_

constexpr int HGCalCoarseTriggerCellMapping::kVMask_ = 0x3
staticconstexprprivate

Definition at line 58 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getConstituentTriggerCells().

◆ kVShift_

constexpr int HGCalCoarseTriggerCellMapping::kVShift_ = 0
staticconstexprprivate

Definition at line 56 of file HGCalCoarseTriggerCellMapping.h.

Referenced by getConstituentTriggerCells().

◆ triggerTools_

HGCalTriggerTools HGCalCoarseTriggerCellMapping::triggerTools_
private
HGCSiliconDetIdToROC::getROCNumber
int getROCNumber(HGCalTriggerDetId const &id) const
Definition: HGCSiliconDetIdToROC.h:19
hgcalConcentratorProducer_cfi.ctcSize
ctcSize
Definition: hgcalConcentratorProducer_cfi.py:35
HGCalCoarseTriggerCellMapping::kSplit_v8_VeryFine_
static constexpr int kSplit_v8_VeryFine_
Definition: HGCalCoarseTriggerCellMapping.h:34
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Individual_
static constexpr int kSplit_v9_Scin_Individual_
Definition: HGCalCoarseTriggerCellMapping.h:48
HGCalCoarseTriggerCellMapping::kCTCsizeCoarse_
static constexpr int kCTCsizeCoarse_
Definition: HGCalCoarseTriggerCellMapping.h:19
HGCalTriggerTools::eventSetup
void eventSetup(const edm::EventSetup &)
Definition: HGCalTriggerTools.cc:35
HGCScintillatorDetId::iradiusAbs
int iradiusAbs() const
get the eta index
Definition: HGCScintillatorDetId.cc:43
DetId::HGCalTrigger
Definition: DetId.h:35
mps_fire.i
i
Definition: mps_fire.py:355
HGCScintillatorDetId::iphi
int iphi() const
get the phi index
Definition: HGCScintillatorDetId.cc:57
HGCalCoarseTriggerCellMapping::kUShift_
static constexpr int kUShift_
Definition: HGCalCoarseTriggerCellMapping.h:55
HGCalCoarseTriggerCellMapping::kCTCsizeVeryFine_
static constexpr int kCTCsizeVeryFine_
Definition: HGCalCoarseTriggerCellMapping.h:22
HGCalCoarseTriggerCellMapping::kSplit_
static const std::map< int, int > kSplit_
Definition: HGCalCoarseTriggerCellMapping.h:26
HGCalCoarseTriggerCellMapping::ctcSize_
std::vector< unsigned > ctcSize_
Definition: HGCalCoarseTriggerCellMapping.h:68
HGCalCoarseTriggerCellMapping::kRoc120deg_
static constexpr int kRoc120deg_
Definition: HGCalCoarseTriggerCellMapping.h:63
HGCalCoarseTriggerCellMapping::kSTCidMaskInv_
static constexpr int kSTCidMaskInv_
Definition: HGCalCoarseTriggerCellMapping.h:29
HGCalCoarseTriggerCellMapping::kHGCalScinCellMaskInv_
static constexpr int kHGCalScinCellMaskInv_
Definition: HGCalCoarseTriggerCellMapping.h:60
HGCalCoarseTriggerCellMapping::kSplit_v9_
static const std::map< int, int > kSplit_v9_
Definition: HGCalCoarseTriggerCellMapping.h:27
HGCalTriggerTools::thicknessIndex
int thicknessIndex(const DetId &, bool tc=false) const
Definition: HGCalTriggerTools.cc:233
HGCalCoarseTriggerCellMapping::getConstituentTriggerCells
std::vector< uint32_t > getConstituentTriggerCells(uint32_t ctcId) const
Definition: HGCalCoarseTriggerCellMapping.cc:122
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Coarse_
static constexpr int kSplit_v9_Scin_Coarse_
Definition: HGCalCoarseTriggerCellMapping.h:44
HGCalCoarseTriggerCellMapping::checkSizeValidity
void checkSizeValidity(int ctcSize) const
Definition: HGCalCoarseTriggerCellMapping.cc:38
HGCalCoarseTriggerCellMapping::kUMask_
static constexpr int kUMask_
Definition: HGCalCoarseTriggerCellMapping.h:57
HGCalTriggerTools::isScintillator
bool isScintillator(const DetId &id) const
Definition: HGCalTriggerTools.h:46
findQualityFiles.v
v
Definition: findQualityFiles.py:179
HGCalCoarseTriggerCellMapping::kNThicknesses_
static constexpr int kNThicknesses_
Definition: HGCalCoarseTriggerCellMapping.h:36
HGCalCoarseTriggerCellMapping::getCoarseTriggerCellId
uint32_t getCoarseTriggerCellId(uint32_t detid) const
Definition: HGCalCoarseTriggerCellMapping.cc:60
HGCalCoarseTriggerCellMapping::kRotate7_
static constexpr int kRotate7_
Definition: HGCalCoarseTriggerCellMapping.h:54
HGCalCoarseTriggerCellMapping::kCTCsizeFine_
static constexpr int kCTCsizeFine_
Definition: HGCalCoarseTriggerCellMapping.h:21
HGCalCoarseTriggerCellMapping::kSplit_v9_Mid_
static constexpr int kSplit_v9_Mid_
Definition: HGCalCoarseTriggerCellMapping.h:39
DetId
Definition: DetId.h:17
HGCalCoarseTriggerCellMapping::kSplit_v8_Fine_
static constexpr int kSplit_v8_Fine_
Definition: HGCalCoarseTriggerCellMapping.h:33
HGCalTriggerTools::getTriggerGeometry
const HGCalTriggerGeometryBase * getTriggerGeometry() const
Definition: HGCalTriggerTools.h:69
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_VeryFine_
static constexpr int kSplit_v9_Scin_VeryFine_
Definition: HGCalCoarseTriggerCellMapping.h:47
HGCalCoarseTriggerCellMapping::kSplit_v8_Mid_
static constexpr int kSplit_v8_Mid_
Definition: HGCalCoarseTriggerCellMapping.h:32
Calorimetry_cff.thickness
thickness
Definition: Calorimetry_cff.py:114
HGCalTriggerDetId::kHGCalCellVOffset
static const int kHGCalCellVOffset
Definition: HGCalTriggerDetId.h:93
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Fine_
static constexpr int kSplit_v9_Scin_Fine_
Definition: HGCalCoarseTriggerCellMapping.h:46
HGCalCoarseTriggerCellMapping::kRocMask_
static constexpr int kRocMask_
Definition: HGCalCoarseTriggerCellMapping.h:52
HGCalCoarseTriggerCellMapping::kVMask_
static constexpr int kVMask_
Definition: HGCalCoarseTriggerCellMapping.h:58
HGCalTriggerTools::layerWithOffset
unsigned layerWithOffset(const DetId &) const
Definition: HGCalTriggerTools.cc:134
Point3DBase< float, GlobalTag >
HGCalCoarseTriggerCellMapping::kSplit_v9_Coarse_
static constexpr int kSplit_v9_Coarse_
Definition: HGCalCoarseTriggerCellMapping.h:38
HGCalTriggerTools::getTCPosition
GlobalPoint getTCPosition(const DetId &id) const
Definition: HGCalTriggerTools.cc:54
HGCalCoarseTriggerCellMapping::kSplit_v8_Coarse_
static constexpr int kSplit_v8_Coarse_
Definition: HGCalCoarseTriggerCellMapping.h:31
HGCalTriggerDetId
Definition: HGCalTriggerDetId.h:26
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_
static const std::map< int, int > kSplit_v9_Scin_
Definition: HGCalCoarseTriggerCellMapping.h:28
HGCScintillatorDetId::kHGCalRadiusOffset
static const int kHGCalRadiusOffset
Definition: HGCScintillatorDetId.h:75
HGCalCoarseTriggerCellMapping::kCTCsizeIndividual_
static constexpr int kCTCsizeIndividual_
Definition: HGCalCoarseTriggerCellMapping.h:23
HGCalTriggerGeometryBase::validTriggerCell
virtual bool validTriggerCell(const unsigned trigger_cell_id) const =0
HGCalCoarseTriggerCellMapping::kCTCsizeMid_
static constexpr int kCTCsizeMid_
Definition: HGCalCoarseTriggerCellMapping.h:20
HGCalCoarseTriggerCellMapping::kRotate4_
static constexpr int kRotate4_
Definition: HGCalCoarseTriggerCellMapping.h:53
HGCalTriggerDetId::kHGCalCellVMask
static const int kHGCalCellVMask
Definition: HGCalTriggerDetId.h:94
HGCalCoarseTriggerCellMapping::kSplit_v9_VeryFine_
static constexpr int kSplit_v9_VeryFine_
Definition: HGCalCoarseTriggerCellMapping.h:41
PV3DBase::basicVector
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
HGCalDetId
Definition: HGCalDetId.h:8
HGCalDetId::kHGCalCellMask
static const int kHGCalCellMask
Definition: HGCalDetId.h:11
HGCScintillatorDetId
Definition: HGCScintillatorDetId.h:21
DetId::HGCalHSc
Definition: DetId.h:34
HGCalCoarseTriggerCellMapping::kRoc240deg_
static constexpr int kRoc240deg_
Definition: HGCalCoarseTriggerCellMapping.h:64
HGCalCoarseTriggerCellMapping::kHGCalCellMaskV9Inv_
static constexpr int kHGCalCellMaskV9Inv_
Definition: HGCalCoarseTriggerCellMapping.h:59
HGCalCoarseTriggerCellMapping::detIdToROC_
HGCSiliconDetIdToROC detIdToROC_
Definition: HGCalCoarseTriggerCellMapping.h:67
Exception
Definition: hltDiff.cc:246
HGCalCoarseTriggerCellMapping::triggerTools_
HGCalTriggerTools triggerTools_
Definition: HGCalCoarseTriggerCellMapping.h:66
HGCalCoarseTriggerCellMapping::kRoc0deg_
static constexpr int kRoc0deg_
Definition: HGCalCoarseTriggerCellMapping.h:62
HGCalCoarseTriggerCellMapping::kSplit_v8_Individual_
static constexpr int kSplit_v8_Individual_
Definition: HGCalCoarseTriggerCellMapping.h:35
HGCalTriggerDetId::kHGCalCellUMask
static const int kHGCalCellUMask
Definition: HGCalTriggerDetId.h:92
HGCalCoarseTriggerCellMapping::kRocShift_
static constexpr int kRocShift_
Definition: HGCalCoarseTriggerCellMapping.h:51
HGCalCoarseTriggerCellMapping::kSplit_v9_Fine_
static constexpr int kSplit_v9_Fine_
Definition: HGCalCoarseTriggerCellMapping.h:40
HGCalCoarseTriggerCellMapping::kSTCidMaskInv_v9_
static constexpr int kSTCidMaskInv_v9_
Definition: HGCalCoarseTriggerCellMapping.h:30
HGCalCoarseTriggerCellMapping::kNHGCalLayersMax_
static constexpr int kNHGCalLayersMax_
Definition: HGCalCoarseTriggerCellMapping.h:37
HGCalCoarseTriggerCellMapping::kVShift_
static constexpr int kVShift_
Definition: HGCalCoarseTriggerCellMapping.h:56
DetId::Forward
Definition: DetId.h:30
HGCalCoarseTriggerCellMapping::kSplit_v9_Individual_
static constexpr int kSplit_v9_Individual_
Definition: HGCalCoarseTriggerCellMapping.h:42
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Mid_
static constexpr int kSplit_v9_Scin_Mid_
Definition: HGCalCoarseTriggerCellMapping.h:45
Basic3DVector< float >
HGCalTriggerDetId::kHGCalCellUOffset
static const int kHGCalCellUOffset
Definition: HGCalTriggerDetId.h:91