CMS 3D CMS Logo

HGCalCoarseTriggerCellMapping.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalCoarseTriggerCellMapping_h__
2 #define __L1Trigger_L1THGCal_HGCalCoarseTriggerCellMapping_h__
3 
8 
10 public:
11  HGCalCoarseTriggerCellMapping(const std::vector<unsigned>& ctcSize);
12  uint32_t getRepresentativeDetId(uint32_t tcid) const;
13  std::vector<uint32_t> getConstituentTriggerCells(uint32_t ctcId) const;
14  GlobalPoint getCoarseTriggerCellPosition(uint32_t ctcId) const;
15  uint32_t getCoarseTriggerCellId(uint32_t detid) const;
16  void checkSizeValidity(int ctcSize) const;
18 
19  static constexpr int kCTCsizeCoarse_ = 16;
20  static constexpr int kCTCsizeMid_ = 8;
21  static constexpr int kCTCsizeFine_ = 4;
22  static constexpr int kCTCsizeVeryFine_ = 2;
23  static constexpr int kCTCsizeIndividual_ = 1;
24 
25 private:
26  static const std::map<int, int> kSplit_;
27  static const std::map<int, int> kSplit_v9_;
28  static const std::map<int, int> kSplit_v9_Scin_;
29  static constexpr int kSTCidMaskInv_ = ~0x3f;
30  static constexpr int kSTCidMaskInv_v9_ = ~0xf;
31  static constexpr int kSplit_v8_Coarse_ = 0x30;
32  static constexpr int kSplit_v8_Mid_ = 0x38;
33  static constexpr int kSplit_v8_Fine_ = 0x3a;
34  static constexpr int kSplit_v8_VeryFine_ = 0x3e;
35  static constexpr int kSplit_v8_Individual_ = 0x3f;
36  static constexpr int kNThicknesses_ = 4;
37  static constexpr int kNHGCalLayersMax_ = 52;
38  static constexpr int kSplit_v9_Coarse_ = 0;
39  static constexpr int kSplit_v9_Mid_ = 0x2;
40  static constexpr int kSplit_v9_Fine_ = 0xa;
41  static constexpr int kSplit_v9_VeryFine_ = 0xb;
42  static constexpr int kSplit_v9_Individual_ = 0xf;
43 
44  static constexpr int kSplit_v9_Scin_Coarse_ = 0x1f9fc;
45  static constexpr int kSplit_v9_Scin_Mid_ = 0x1fdfc;
46  static constexpr int kSplit_v9_Scin_Fine_ = 0x1fdfe;
47  static constexpr int kSplit_v9_Scin_VeryFine_ = 0x1fffe;
48  static constexpr int kSplit_v9_Scin_Individual_ = 0x1ffff;
49 
50  //For coarse TCs
51  static constexpr int kRocShift_ = 4;
52  static constexpr int kRocMask_ = 0xf;
53  static constexpr int kRotate4_ = 4;
54  static constexpr int kRotate7_ = 7;
55  static constexpr int kUShift_ = 2;
56  static constexpr int kVShift_ = 0;
57  static constexpr int kUMask_ = 0x3;
58  static constexpr int kVMask_ = 0x3;
59  static constexpr int kHGCalCellMaskV9Inv_ = ~0xff;
60  static constexpr int kHGCalScinCellMaskInv_ = ~0x1ffff;
61 
62  static constexpr int kRoc0deg_ = 1;
63  static constexpr int kRoc120deg_ = 2;
64  static constexpr int kRoc240deg_ = 3;
65 
68  std::vector<unsigned> ctcSize_;
69 };
70 
71 #endif
hgcalConcentratorProducer_cfi.ctcSize
ctcSize
Definition: hgcalConcentratorProducer_cfi.py:35
HGCalCoarseTriggerCellMapping::kSplit_v8_VeryFine_
static constexpr int kSplit_v8_VeryFine_
Definition: HGCalCoarseTriggerCellMapping.h:34
HGCalTriggerTools.h
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
HGCalCoarseTriggerCellMapping::HGCalCoarseTriggerCellMapping
HGCalCoarseTriggerCellMapping(const std::vector< unsigned > &ctcSize)
Definition: HGCalCoarseTriggerCellMapping.cc:4
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
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
HGCalCoarseTriggerCellMapping::kNThicknesses_
static constexpr int kNThicknesses_
Definition: HGCalCoarseTriggerCellMapping.h:36
HGCalCoarseTriggerCellMapping::eventSetup
void eventSetup(const edm::EventSetup &es)
Definition: HGCalCoarseTriggerCellMapping.h:17
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
HGCalCoarseTriggerCellMapping::kSplit_v8_Fine_
static constexpr int kSplit_v8_Fine_
Definition: HGCalCoarseTriggerCellMapping.h:33
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
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
Point3DBase< float, GlobalTag >
HGCalCoarseTriggerCellMapping::kSplit_v9_Coarse_
static constexpr int kSplit_v9_Coarse_
Definition: HGCalCoarseTriggerCellMapping.h:38
HGCalCoarseTriggerCellMapping::kSplit_v8_Coarse_
static constexpr int kSplit_v8_Coarse_
Definition: HGCalCoarseTriggerCellMapping.h:31
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_
static const std::map< int, int > kSplit_v9_Scin_
Definition: HGCalCoarseTriggerCellMapping.h:28
HGCalCoarseTriggerCellMapping
Definition: HGCalCoarseTriggerCellMapping.h:9
HGCalCoarseTriggerCellMapping::kCTCsizeIndividual_
static constexpr int kCTCsizeIndividual_
Definition: HGCalCoarseTriggerCellMapping.h:23
HGCalCoarseTriggerCellMapping::kCTCsizeMid_
static constexpr int kCTCsizeMid_
Definition: HGCalCoarseTriggerCellMapping.h:20
HGCalCoarseTriggerCellMapping::kRotate4_
static constexpr int kRotate4_
Definition: HGCalCoarseTriggerCellMapping.h:53
edm::EventSetup
Definition: EventSetup.h:58
HGCalCoarseTriggerCellMapping::kSplit_v9_VeryFine_
static constexpr int kSplit_v9_VeryFine_
Definition: HGCalCoarseTriggerCellMapping.h:41
HGCalCoarseTriggerCellMapping::getCoarseTriggerCellPosition
GlobalPoint getCoarseTriggerCellPosition(uint32_t ctcId) const
Definition: HGCalCoarseTriggerCellMapping.cc:196
HGCSiliconDetIdToROC.h
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
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
HGCalCoarseTriggerCellMapping::kRocShift_
static constexpr int kRocShift_
Definition: HGCalCoarseTriggerCellMapping.h:51
HGCalCoarseTriggerCellMapping::kSplit_v9_Fine_
static constexpr int kSplit_v9_Fine_
Definition: HGCalCoarseTriggerCellMapping.h:40
HGCalTriggerTools
Definition: HGCalTriggerTools.h:32
HGCalTriggerCell.h
HGCalCoarseTriggerCellMapping::kSTCidMaskInv_v9_
static constexpr int kSTCidMaskInv_v9_
Definition: HGCalCoarseTriggerCellMapping.h:30
ParameterSet.h
HGCalCoarseTriggerCellMapping::kNHGCalLayersMax_
static constexpr int kNHGCalLayersMax_
Definition: HGCalCoarseTriggerCellMapping.h:37
HGCalCoarseTriggerCellMapping::kVShift_
static constexpr int kVShift_
Definition: HGCalCoarseTriggerCellMapping.h:56
HGCalCoarseTriggerCellMapping::kSplit_v9_Individual_
static constexpr int kSplit_v9_Individual_
Definition: HGCalCoarseTriggerCellMapping.h:42
HGCSiliconDetIdToROC
Definition: HGCSiliconDetIdToROC.h:14
HGCalCoarseTriggerCellMapping::kSplit_v9_Scin_Mid_
static constexpr int kSplit_v9_Scin_Mid_
Definition: HGCalCoarseTriggerCellMapping.h:45
HGCalCoarseTriggerCellMapping::getRepresentativeDetId
uint32_t getRepresentativeDetId(uint32_t tcid) const
Definition: HGCalCoarseTriggerCellMapping.cc:47