CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalMappingEntry.h
Go to the documentation of this file.
1 #ifndef HcalMappingEntry_h
2 #define HcalMappingEntry_h
3 
11 
12 
13 /*****************************Classes****************************/
14 
16 
17  /****
18  * Class to hold the L-Map entries corresponding to HB, HE and HF
19  ****/
20 
21  public:
22 
23  // constructor from map information
26  int in_fi_ch, int in_htr_fi, int in_spig, int in_fed, int in_cr, int in_htr, std::string in_s_fpga,
27  std::string in_s_det, int in_sid, int in_et, int in_ph, int in_dep,
28  int in_dph, int in_wed, int in_rm, int in_rm_fi, int in_pix, int in_qie, int in_adc,
29  int in_slb, int in_rctcra, int in_rctcar, int in_rctcon,
30  std::string in_s_rbx, std::string in_s_slb, std::string in_s_slb2, std::string in_s_slnam, std::string in_s_rctnam
31  );
32 
34 
35  char* printLMapLine();
36  uint32_t getLinearIndex() const {return HcalElectronicsId(hcalEID_).linearIndex();}
38  const DetId getDetId() const {return DetId(hcalDetID_);}
40 
41  private:
42 
43  uint32_t hcalEID_;
44  uint32_t hcalDetID_;
45  uint32_t hcalFrontEndID_;
46 
47  // stored input data members
49 
51 
52 };
53 
55 
56  /****
57  * Class to hold the L-Map entries corresponding to HO and HX
58  ****/
59 
60  public:
61 
64  int in_fi_ch, int in_htr_fi, int in_spig, int in_fed, int in_cr, int in_htr, std::string in_s_fpga,
65  std::string in_s_det, int in_sid, int in_et, int in_ph, int in_dep,
66  int in_dph, int in_sec, int in_rm, int in_rm_fi, int in_pix, int in_qie, int in_adc,
67  std::string in_s_rbx, std::string in_s_let
68  );
69 
71 
72  char* printLMapLine();
73  const uint32_t getLinearIndex() const {return HcalElectronicsId(hcalEID_).linearIndex();}
75  const DetId getDetId() const {return DetId(hcalDetID_);}
77 
78  private:
79 
80  uint32_t hcalEID_;
81  uint32_t hcalDetID_;
82  uint32_t hcalFrontEndID_;
83 
84  // stored input data members
87 
88 };
89 
90 
92 
93  /****
94  * Class to hold the L-Map entries corresponding to the calibration channels
95  ****/
96 
97 
98  public:
99 
102  int in_fi_ch, int in_htr_fi, int in_spig, int in_fed, int in_cr, int in_htr, std::string in_s_fpga,
103  std::string in_s_det, int in_et, int in_ph, int in_ch_ty,
104  int in_sid, int in_dph, std::string in_s_rbx, int in_wed, int in_rm_fi,
105  std::string in_s_subdet
106  );
107 
109 
110  char* printLMapLine();
111  const uint32_t getLinearIndex() const {return HcalElectronicsId(hcalEID_).linearIndex();}
113  const DetId getDetId() const {return DetId(hcalCalibDetID_);}
115 
116  private:
117 
118  uint32_t hcalEID_;
119  uint32_t hcalCalibDetID_;
120  uint32_t hcalFrontEndID_;
121 
122  // input data members
125 
126 };
127 
128 
130 
131  /****
132  * Class to hold the L-Map entries corresponding to ZDC
133  ****/
134 
135  public:
136 
139  int in_fi_ch, int in_htr_fi, int in_spigot, int in_fed, int in_cr, int in_htr, std::string in_s_fpga,
140  std::string in_s_det, int in_sid, int in_dep,
141  int in_x, int in_y, int in_dx, int in_det_ch, int in_cab, int in_rm, int in_qie,
142  int in_adc, int in_rm_fi
143  );
144 
146 
147  char* printLMapLine();
148  const uint32_t getLinearIndex() const {return HcalElectronicsId(hcalEID_).linearIndex();}
150  const DetId getDetId() const {return DetId(hcalZDCDetID_);}
151 
152  private:
153 
154  uint32_t hcalEID_;
155  uint32_t hcalZDCDetID_;
156 
157  // input data members
159 
160 };
161 
162 
164 
165  /****
166  * Class to hold the L-Map entries corresponding to the Trigger channels
167  ****/
168 
169  public:
170 
173  int in_et, int in_ph,
174  int in_sid, int in_dph, int in_dep, std::string in_s_chDet, int in_wed, int in_cr, int in_htr, int in_tb,
175  int in_spig, int in_slb, std::string in_s_slb, std::string in_s_slb2, int in_ndat,
176  std::string in_s_slnam, int in_rctcra, int in_rctcar, int in_rctcon, std::string in_s_rctnam, int in_fed
177  );
178 
180 
181  char* printLMapLine();
182  const uint32_t getLinearIndex() const {return HcalElectronicsId(hcalTrigEID_).linearIndex();}
184  const DetId getDetId() const {return DetId(hcalTrigDetID_);}
185 
186  private:
187 
188  // no meaningful electronics id for the trigger towers, but it is possible to create one that stores various data members
189  uint32_t hcalTrigEID_;
190  uint32_t hcalTrigDetID_;
191 
192  // input data members
194  //int myspigot_, myslb_, myndat_, mycrate_, myhtr_, mytb_, myfedid_;
196  // string data members
198 
199 };
200 
201 /***************/
202 
203 #endif
const HcalFrontEndId getHcalFrontEndId() const
const HcalFrontEndId getHcalFrontEndId() const
const DetId getDetId() const
const uint32_t getLinearIndex() const
uint32_t getLinearIndex() const
const DetId getDetId() const
const HcalElectronicsId getHcalElectronicsId() const
const HcalFrontEndId getHcalFrontEndId() const
const DetId getDetId() const
const HcalElectronicsId getHcalTrigElectronicsId() const
const HcalElectronicsId getHcalElectronicsId() const
const uint32_t getLinearIndex() const
Definition: DetId.h:18
const uint32_t getLinearIndex() const
const DetId getDetId() const
const HcalElectronicsId getHcalElectronicsId() const
const uint32_t getLinearIndex() const
int linearIndex() const
get a fast, compact, unique index for linear lookups
const HcalElectronicsId getHcalElectronicsId() const
const DetId getDetId() const
Readout chain identification for Hcal.