CMS 3D CMS Logo

Classes | Enumerations | Functions
ecaldqm::binning Namespace Reference

Classes

struct  AxisSpecs
 

Enumerations

enum  BinningType {
  kCrystal, kTriggerTower, kSuperCrystal, kPseudoStrip,
  kTCC, kDCC, kProjEta, kProjPhi,
  kRCT, kUser, kReport, kTrend,
  nBinType
}
 
enum  Constants {
  nPresetBinnings = kRCT + 1, nEBSMEta = 85, nEBSMPhi = 20, nEESMX = 40,
  nEESMXRed = 30, nEESMXExt = 45, nEESMY = 40, nEESMYRed = 35,
  nEBEtaBins = 34, nEEEtaBins = 20, nPhiBins = 36
}
 
enum  ObjectType {
  kEB, kEE, kEEm, kEEp,
  kSM, kEBSM, kEESM, kSMMEM,
  kEBSMMEM, kEESMMEM, kEcal, kMEM,
  kEBMEM, kEEMEM, kEcal2P, kEcal3P,
  kEE2P, kMEM2P, kChannel, nObjType
}
 

Functions

std::string channelName (uint32_t, BinningType _btype=kDCC)
 
void fillAxisDescriptions (edm::ParameterSetDescription &)
 
int findBin1D (ObjectType, BinningType, DetId const &)
 
int findBin1D (ObjectType, BinningType, EcalElectronicsId const &)
 
int findBin1D (ObjectType, BinningType, int)
 
int findBin2D (ObjectType, BinningType, DetId const &)
 
int findBin2D (ObjectType, BinningType, EcalElectronicsId const &)
 
int findBin2D (ObjectType, BinningType, int)
 
int findBinCrystal_ (ObjectType, DetId const &, int=-1)
 
int findBinCrystal_ (ObjectType, EcalElectronicsId const &)
 
int findBinPseudoStrip_ (ObjectType, DetId const &)
 
int findBinRCT_ (ObjectType, DetId const &)
 
int findBinSuperCrystal_ (ObjectType, DetId const &, int=-1)
 
int findBinSuperCrystal_ (ObjectType, EcalElectronicsId const &)
 
int findBinTriggerTower_ (ObjectType, DetId const &)
 
unsigned findPlotIndex (ObjectType, DetId const &)
 
unsigned findPlotIndex (ObjectType, EcalElectronicsId const &)
 
unsigned findPlotIndex (ObjectType, int, BinningType _btype=kDCC)
 
AxisSpecs formAxis (edm::ParameterSet const &)
 
AxisSpecs getBinning (ObjectType, BinningType, bool, int, unsigned)
 
AxisSpecs getBinningEB_ (BinningType, bool, int)
 
AxisSpecs getBinningEcal_ (BinningType, bool, int)
 
AxisSpecs getBinningEE_ (BinningType, bool, int, int)
 
AxisSpecs getBinningMEM_ (BinningType, bool, int, int)
 
AxisSpecs getBinningSM_ (BinningType, bool, unsigned, int)
 
AxisSpecs getBinningSMMEM_ (BinningType, bool, unsigned, int)
 
unsigned getNObjects (ObjectType)
 
ObjectType getObject (ObjectType, unsigned)
 
uint32_t idFromBin (ObjectType, BinningType, unsigned, int)
 
uint32_t idFromName (std::string const &)
 
bool isValidIdBin (ObjectType, BinningType, unsigned, int)
 
BinningType translateBinningType (std::string const &)
 
dqm::legacy::MonitorElement::Kind translateKind (std::string const &)
 
ObjectType translateObjectType (std::string const &)
 
int xlow_ (int)
 
int ylow_ (int)
 

Enumeration Type Documentation

◆ BinningType

Enumerator
kCrystal 
kTriggerTower 
kSuperCrystal 
kPseudoStrip 
kTCC 
kDCC 
kProjEta 
kProjPhi 
kRCT 
kUser 
kReport 
kTrend 
nBinType 

Definition at line 40 of file MESetBinningUtils.h.

40  {
41  kCrystal,
45  kTCC,
46  kDCC,
47  kProjEta,
48  kProjPhi,
49  kRCT,
50  kUser,
51  kReport,
52  kTrend,
53  nBinType
54  };

◆ Constants

Enumerator
nPresetBinnings 
nEBSMEta 
nEBSMPhi 
nEESMX 
nEESMXRed 
nEESMXExt 
nEESMY 
nEESMYRed 
nEBEtaBins 
nEEEtaBins 
nPhiBins 

Definition at line 56 of file MESetBinningUtils.h.

56  {
57  nPresetBinnings = kRCT + 1,
58 
59  nEBSMEta = 85,
60  nEBSMPhi = 20,
61  nEESMX = 40,
62  nEESMXRed = 30, // for EE+-01&05&09
63  nEESMXExt = 45, // for EE+-02&08
64  nEESMY = 40,
65  nEESMYRed = 35, // for EE+-03&07
66 
67  nEBEtaBins = 34,
68  nEEEtaBins = 20,
69  nPhiBins = 36
70  };

◆ ObjectType

Enumerator
kEB 
kEE 
kEEm 
kEEp 
kSM 
kEBSM 
kEESM 
kSMMEM 
kEBSMMEM 
kEESMMEM 
kEcal 
kMEM 
kEBMEM 
kEEMEM 
kEcal2P 
kEcal3P 
kEE2P 
kMEM2P 
kChannel 
nObjType 

Definition at line 17 of file MESetBinningUtils.h.

17  {
18  kEB,
19  kEE,
20  kEEm,
21  kEEp,
22  kSM,
23  kEBSM,
24  kEESM,
25  kSMMEM,
26  kEBSMMEM,
27  kEESMMEM,
28  kEcal,
29  kMEM,
30  kEBMEM,
31  kEEMEM,
32  kEcal2P,
33  kEcal3P,
34  kEE2P,
35  kMEM2P,
36  kChannel,
37  nObjType
38  };

Function Documentation

◆ channelName()

std::string ecaldqm::binning::channelName ( uint32_t  _rawId,
BinningType  _btype = kDCC 
)

Definition at line 591 of file MESetBinningUtils.cc.

591  {
592  // assume the following IDs for respective binning types:
593  // Crystal: EcalElectronicsId
594  // TriggerTower: EcalTriggerElectronicsId (pstrip and channel ignored)
595  // SuperCrystal: EcalElectronicsId (strip and crystal ignored)
596  // TCC: TCC ID
597  // DCC: DCC ID
598 
599  std::stringstream ss;
600 
601  switch (_btype) {
602  case kCrystal: {
603  // EB-03 DCC 12 CCU 12 strip 3 xtal 1 (EB ieta -13 iphi 60) (TCC 39 TT 12
604  // pstrip 3 chan 1)
605  EcalElectronicsId eid(_rawId);
606  if (eid.towerId() >= 69)
607  ss << smName(eid.dccId()) << " DCC " << eid.dccId() << " CCU " << eid.towerId() << " PN " << eid.xtalId();
608  else {
609  ss << smName(eid.dccId()) << " DCC " << eid.dccId() << " CCU " << eid.towerId() << " strip "
610  << eid.stripId() << " xtal " << eid.xtalId();
611 
612  if (eid.dccId() >= kEBmLow + 1 && eid.dccId() <= kEBpHigh + 1) {
613  EBDetId ebid(getElectronicsMap()->getDetId(eid));
614  ss << " (EB ieta " << std::showpos << ebid.ieta() << std::noshowpos << " iphi " << ebid.iphi() << ")";
615  } else {
616  EEDetId eeid(getElectronicsMap()->getDetId(eid));
617  ss << " (EE ix " << eeid.ix() << " iy " << eeid.iy() << ")";
618  }
619  EcalTriggerElectronicsId teid(getElectronicsMap()->getTriggerElectronicsId(eid));
620  ss << " (TCC " << teid.tccId() << " TT " << teid.ttId() << " pstrip " << teid.pseudoStripId() << " chan "
621  << teid.channelId() << ")";
622  break;
623  }
624  }
625  [[fallthrough]];
626  case kTriggerTower: {
627  // EB-03 DCC 12 TCC 18 TT 3
628  EcalTriggerElectronicsId teid(_rawId);
629  EcalElectronicsId eid(getElectronicsMap()->getElectronicsId(teid));
630  ss << smName(eid.dccId()) << " DCC " << eid.dccId() << " TCC " << teid.tccId() << " TT " << teid.ttId();
631  break;
632  }
633  case kSuperCrystal: {
634  // EB-03 DCC 12 CCU 18 (EBTT ieta -13 iphi 60)
635  EcalElectronicsId eid(_rawId);
636  ss << smName(eid.dccId()) << " DCC " << eid.dccId() << " CCU " << eid.towerId();
637  if (eid.dccId() >= kEBmLow + 1 && eid.dccId() <= kEBpHigh + 1) {
638  EcalTrigTowerDetId ttid(EBDetId(getElectronicsMap()->getDetId(eid)).tower());
639  ss << " (EBTT ieta " << std::showpos << ttid.ieta() << std::noshowpos << " iphi " << ttid.iphi() << ")";
640  } else {
641  EcalScDetId scid(EEDetId(getElectronicsMap()->getDetId(eid)).sc());
642  ss << " (EESC ix " << scid.ix() << " iy " << scid.iy() << ")";
643  }
644  break;
645  }
646  case kTCC: {
647  // EB-03 TCC 12
648  int tccid(_rawId - nDCC);
649  int dccid(getElectronicsMap()->DCCid(getElectronicsMap()->getTrigTowerDetId(tccid, 1)));
650  ss << smName(dccid) << " TCC " << (_rawId - nDCC);
651  break;
652  }
653  case kDCC:
654  ss << smName(_rawId);
655  break;
656  default:
657  break;
658  }
659 
660  return ss.str();
661  }

References EcalTriggerElectronicsId::channelId(), runTauDisplay::eid, ecaldqm::getElectronicsMap(), EcalTrigTowerDetId::ieta(), EBDetId::ieta(), EBDetId::iphi(), EcalTrigTowerDetId::iphi(), EcalScDetId::ix(), EEDetId::ix(), EcalScDetId::iy(), EEDetId::iy(), kCrystal, kDCC, ecaldqm::kEBmLow, ecaldqm::kEBpHigh, kSuperCrystal, kTCC, kTriggerTower, ecaldqm::nDCC, EcalTriggerElectronicsId::pseudoStripId(), ecaldqm::smName(), contentValuesCheck::ss, EcalTriggerElectronicsId::tccId(), hgcalTowerProducer_cfi::tower, and EcalTriggerElectronicsId::ttId().

Referenced by ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), ecaldqm::MESetEcal::generatePaths(), and DTNoiseCalibration::getChannelName().

◆ fillAxisDescriptions()

void ecaldqm::binning::fillAxisDescriptions ( edm::ParameterSetDescription _desc)

Definition at line 840 of file MESetBinningUtils.cc.

840  {
841  _desc.addUntracked<std::string>("title", "");
842  _desc.addUntracked<int>("nbins", 0);
843  _desc.addUntracked<double>("low", 0.);
844  _desc.addOptionalNode(edm::ParameterDescription<double>("high", 0., false) ^
845  edm::ParameterDescription<double>("unitsPerBin", 0., false),
846  false);
847  _desc.addOptionalUntracked<std::vector<double>>("edges");
848  _desc.addOptionalUntracked<std::vector<std::string>>("labels");
849  }

References edm::ParameterSetDescription::addOptionalNode(), edm::ParameterSetDescription::addOptionalUntracked(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by ecaldqm::fillMESetDescriptions().

◆ findBin1D() [1/3]

int ecaldqm::binning::findBin1D ( ObjectType  _otype,
BinningType  _btype,
DetId const &  _id 
)

Definition at line 58 of file MESetBinningUtils.cc.

58  {
59  switch (_otype) {
60  case kSM:
61  case kEBSM:
62  case kEESM:
63  if (_btype == kSuperCrystal)
64  return towerId(_id);
65  else if (_btype == kTriggerTower) {
66  unsigned tccid(tccId(_id));
67  if (tccid <= 36 || tccid >= 73) { // EE
68  unsigned bin(ttId(_id));
69  bool outer((tccid >= 19 && tccid <= 36) || (tccid >= 73 && tccid <= 90));
70  // For the following, the constants nTTInner and nTTOuter are defined in
71  // EcalDQMCommonUtils.h.
72  if (outer)
73  bin += 2 * nTTInner; // For outer TCCs, sets bin number to increment
74  // by twice the number of TTs in inner TCCs, because numbering of bins
75  // is in the order (inner1, inner2, outer1, outer2).
76  // ("inner"" := closer to the beam)
77  bin += (tccid % 2) * (outer ? nTTOuter : nTTInner); // Yields x-axis bin number
78  // in the format above; TTs in even-numbered TCCs are filled in inner1
79  // or outer1, and those in odd-numbered TCC are filled in inner2 and
80  // outer2.
81  return bin;
82  } else
83  return ttId(_id);
84  } else
85  break;
86  case kEcal:
87  if (_btype == kDCC)
88  return dccId(_id);
89  else if (_btype == kTCC)
90  return tccId(_id);
91  else
92  break;
93  case kEB:
94  if (_btype == kDCC)
95  return dccId(_id) - 9;
96  else if (_btype == kTCC)
97  return tccId(_id) - 36;
98  else
99  break;
100  case kEEm:
101  if (_btype == kDCC)
102  return dccId(_id);
103  else if (_btype == kTCC)
104  return tccId(_id);
105  else
106  break;
107  case kEEp:
108  if (_btype == kDCC)
109  return dccId(_id) - 45;
110  else if (_btype == kTCC)
111  return tccId(_id) - 72;
112  else
113  break;
114  case kEE:
115  if (_btype == kDCC) {
116  int bin(dccId(_id));
117  if (bin >= 46)
118  bin -= 36;
119  return bin;
120  } else if (_btype == kTCC) {
121  int bin(tccId(_id));
122  if (bin >= 72)
123  bin -= 36;
124  return bin;
125  } else
126  break;
127  case kSMMEM:
128  case kEBSMMEM:
129  case kEESMMEM:
130  if (_btype == kCrystal)
131  return EcalPnDiodeDetId(_id).iPnId();
132  else
133  break;
134  default:
135  break;
136  }
137 
138  return 0;
139  }

References newFWLiteAna::bin, ecaldqm::dccId(), EcalPnDiodeDetId::iPnId(), kCrystal, kDCC, kEB, kEBSM, kEBSMMEM, kEcal, kEE, kEEm, kEEp, kEESM, kEESMMEM, kSM, kSMMEM, kSuperCrystal, kTCC, kTriggerTower, ecaldqm::nTTInner, ecaldqm::nTTOuter, SurfaceOrientation::outer, ecaldqm::tccId(), ecaldqm::towerId(), and ecaldqm::ttId().

Referenced by ecaldqm::MESetDet1D::fill(), ecaldqm::MESetDet1D::findBin(), ecaldqm::MESetDet1D::getBinContent(), ecaldqm::MESetDet1D::getBinEntries(), ecaldqm::MESetDet1D::getBinError(), ecaldqm::MESetDet1D::setBinContent(), ecaldqm::MESetDet1D::setBinEntries(), and ecaldqm::MESetDet1D::setBinError().

◆ findBin1D() [2/3]

int ecaldqm::binning::findBin1D ( ObjectType  _otype,
BinningType  _btype,
EcalElectronicsId const &  _id 
)

Definition at line 141 of file MESetBinningUtils.cc.

141  {
142  switch (_otype) {
143  case kSM:
144  case kEBSM:
145  case kEESM:
146  if (_btype == kSuperCrystal)
147  return towerId(_id);
148  else if (_btype == kTriggerTower) {
149  unsigned tccid(tccId(_id));
150  if (tccid <= 36 || tccid >= 73) { // EE
151  unsigned bin(ttId(_id));
152  bool outer((tccid >= 19 && tccid <= 36) || (tccid >= 73 && tccid <= 90));
153  // For the following, the constants nTTInner and nTTOuter are defined in
154  // EcalDQMCommonUtils.h.
155  if (outer)
156  bin += 2 * nTTInner; // For outer TCCs, sets bin number to increment
157  // by twice the number of TTs in inner TCCs, because numbering of bins
158  // is in the order (inner1, inner2, outer1, outer2).
159  // ("inner"" := closer to the beam)
160  bin += (tccid % 2) * (outer ? nTTOuter : nTTInner); // Yields x-axis bin number
161  // in the format above; TTs in even-numbered TCCs are filled in inner1
162  // or outer1, and those in odd-numbered TCC are filled in inner2 and
163  // outer2.
164  return bin;
165  } else
166  return ttId(_id);
167  } else
168  break;
169  case kEcal:
170  if (_btype == kDCC)
171  return dccId(_id);
172  else if (_btype == kTCC)
173  return tccId(_id);
174  else
175  break;
176  case kEB:
177  if (_btype == kDCC)
178  return dccId(_id) - 9;
179  else if (_btype == kTCC)
180  return tccId(_id) - 36;
181  else
182  break;
183  case kEEm:
184  if (_btype == kDCC)
185  return dccId(_id);
186  else if (_btype == kTCC)
187  return tccId(_id);
188  else
189  break;
190  case kEEp:
191  if (_btype == kDCC)
192  return dccId(_id) - 45;
193  else if (_btype == kTCC)
194  return tccId(_id) - 72;
195  else
196  break;
197  case kEE:
198  if (_btype == kDCC) {
199  int bin(dccId(_id));
200  if (bin >= 46)
201  bin -= 36;
202  return bin;
203  } else if (_btype == kTCC) {
204  int bin(tccId(_id));
205  if (bin >= 72)
206  bin -= 36;
207  return bin;
208  } else
209  break;
210  default:
211  break;
212  }
213 
214  return 0;
215  }

References newFWLiteAna::bin, ecaldqm::dccId(), kDCC, kEB, kEBSM, kEcal, kEE, kEEm, kEEp, kEESM, kSM, kSuperCrystal, kTCC, kTriggerTower, ecaldqm::nTTInner, ecaldqm::nTTOuter, SurfaceOrientation::outer, ecaldqm::tccId(), ecaldqm::towerId(), and ecaldqm::ttId().

◆ findBin1D() [3/3]

int ecaldqm::binning::findBin1D ( ObjectType  _otype,
BinningType  _btype,
int  _dcctccid 
)

Definition at line 217 of file MESetBinningUtils.cc.

217  {
218  if (_otype == kEcal && _btype == kDCC)
219  return _dcctccid;
220  else if (_otype == kEcal && _btype == kTCC)
221  return _dcctccid;
222  if (_otype == kEB && _btype == kDCC)
223  return _dcctccid - 9;
224  else if (_otype == kEB && _btype == kTCC)
225  return _dcctccid - 36;
226  else if (_otype == kEEm && _btype == kDCC)
227  return _dcctccid;
228  else if (_otype == kEEm && _btype == kTCC)
229  return _dcctccid;
230  else if (_otype == kEEp && _btype == kDCC)
231  return _dcctccid - 45;
232  else if (_otype == kEEp && _btype == kTCC)
233  return _dcctccid - 72;
234  else if (_otype == kEE && _btype == kDCC)
235  return _dcctccid <= 9 ? _dcctccid : _dcctccid - 36;
236  else if (_otype == kEE && _btype == kTCC)
237  return _dcctccid <= 36 ? _dcctccid : _dcctccid - 36;
238 
239  return 0;
240  }

References kDCC, kEB, kEcal, kEE, kEEm, kEEp, and kTCC.

◆ findBin2D() [1/3]

int ecaldqm::binning::findBin2D ( ObjectType  _otype,
BinningType  _btype,
DetId const &  _id 
)

Definition at line 242 of file MESetBinningUtils.cc.

242  {
243  if (_otype >= nObjType || _btype >= unsigned(nPresetBinnings))
244  return 0;
245 
246  switch (_btype) {
247  case kCrystal:
248  return findBinCrystal_(_otype, _id);
249  break;
250  case kTriggerTower:
251  return findBinTriggerTower_(_otype, _id);
252  break;
253  case kSuperCrystal:
254  return findBinSuperCrystal_(_otype, _id);
255  break;
256  case kPseudoStrip:
257  return findBinPseudoStrip_(_otype, _id);
258  break;
259  case kRCT:
260  return findBinRCT_(_otype, _id);
261  break;
262  default:
263  return 0;
264  }
265  }

References findBinCrystal_(), findBinPseudoStrip_(), findBinRCT_(), findBinSuperCrystal_(), findBinTriggerTower_(), kCrystal, kPseudoStrip, kRCT, kSuperCrystal, kTriggerTower, nObjType, and nPresetBinnings.

Referenced by ecaldqm::MESet::const_iterator::const_iterator(), ecaldqm::MESetDet2D::fill(), ecaldqm::MESetDet2D::findBin(), ecaldqm::MESetDet2D::getBinContent(), ecaldqm::MESetDet2D::getBinEntries(), ecaldqm::MESetDet2D::getBinError(), ecaldqm::MESetDet2D::setBinContent(), ecaldqm::MESetDet2D::setBinEntries(), and ecaldqm::MESetDet2D::setBinError().

◆ findBin2D() [2/3]

int ecaldqm::binning::findBin2D ( ObjectType  _otype,
BinningType  _btype,
EcalElectronicsId const &  _id 
)

Definition at line 267 of file MESetBinningUtils.cc.

267  {
268  if (_otype >= nObjType || _btype >= unsigned(nPresetBinnings))
269  return 0;
270 
271  switch (_btype) {
272  case kCrystal:
273  return findBinCrystal_(_otype, _id);
274  break;
275  case kSuperCrystal:
276  return findBinSuperCrystal_(_otype, _id);
277  break;
278  default:
279  return 0;
280  }
281  }

References findBinCrystal_(), findBinSuperCrystal_(), kCrystal, kSuperCrystal, nObjType, and nPresetBinnings.

◆ findBin2D() [3/3]

int ecaldqm::binning::findBin2D ( ObjectType  _otype,
BinningType  _btype,
int  _dccid 
)

Definition at line 283 of file MESetBinningUtils.cc.

283  {
284  if (_otype != kEcal || _btype != kDCC)
285  return 0;
286 
287  int nbinsX(9);
288  unsigned iDCC(_dccid - 1);
289  int xbin(0);
290  if (iDCC <= kEEmHigh || iDCC >= kEEpLow)
291  xbin = (iDCC + 6) % nbinsX + 1;
292  else
293  xbin = iDCC % nbinsX + 1;
294  int ybin(6 - iDCC / nbinsX);
295 
296  return (nbinsX + 2) * ybin + xbin;
297  }

References kDCC, kEcal, ecaldqm::kEEpLow, and hlt_dqm_clientPB-live_cfg::nbinsX.

◆ findBinCrystal_() [1/2]

int ecaldqm::binning::findBinCrystal_ ( ObjectType  _otype,
DetId const &  _id,
int  _iSM = -1 
)

Definition at line 429 of file MESetBinningUtils2.cc.

429  {
430  int xbin(0), ybin(0);
431  int nbinsX(0);
432  int subdet(_id.subdetId());
433 
434  if (subdet == EcalBarrel) {
435  EBDetId ebid(_id);
436  int iphi(ebid.iphi());
437  int ieta(ebid.ieta());
438  switch (_otype) {
439  case kEB:
440  xbin = iphi;
441  ybin = ieta < 0 ? ieta + 86 : ieta + 85;
442  nbinsX = 360;
443  break;
444  case kSM:
445  case kEBSM:
446  xbin = ieta < 0 ? -ieta : ieta;
447  ybin = ieta < 0 ? (iphi - 1) % 20 + 1 : 20 - (iphi - 1) % 20;
448  nbinsX = nEBSMEta;
449  break;
450  default:
451  break;
452  }
453  } else if (subdet == EcalEndcap) {
454  EEDetId eeid(_id);
455  int ix(eeid.ix());
456  int iy(eeid.iy());
457  switch (_otype) {
458  case kEE:
459  xbin = eeid.zside() < 0 ? ix : ix + 100;
460  ybin = iy;
461  nbinsX = 200;
462  break;
463  case kEEm:
464  case kEEp:
465  xbin = ix;
466  ybin = iy;
467  nbinsX = 100;
468  break;
469  case kSM:
470  case kEESM: {
471  int iSM(_iSM >= 0 ? _iSM : dccId(_id) - 1);
472  xbin = ix - xlow_(iSM);
473  ybin = iy - ylow_(iSM);
474  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
475  nbinsX = nEESMXExt;
476  else if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 || iSM == kEEp09)
477  nbinsX = nEESMXRed;
478  else
479  nbinsX = nEESMX;
480  } break;
481  default:
482  break;
483  }
484  } else if (subdet == EcalLaserPnDiode) {
485  EcalPnDiodeDetId pnid(_id);
486  switch (_otype) {
487  case kSMMEM:
488  case kEBSMMEM:
489  case kEESMMEM:
490  xbin = pnid.iPnId();
491  ybin = 1;
492  nbinsX = 10;
493  break;
494  case kMEM:
495  xbin = memDCCIndex(dccId(_id)) + 1;
496  ybin = pnid.iPnId();
497  nbinsX = 44;
498  break;
499  case kEBMEM:
500  xbin = memDCCIndex(dccId(_id)) - 3;
501  ybin = pnid.iPnId();
502  nbinsX = 36;
503  break;
504  case kEEMEM:
505  xbin = memDCCIndex(dccId(_id)) + 1;
506  if (xbin > kEEmHigh + 1)
507  xbin -= 36;
508  ybin = pnid.iPnId();
509  nbinsX = 8;
510  break;
511  default:
512  break;
513  }
514  }
515 
516  return (nbinsX + 2) * ybin + xbin;
517  }

References ecaldqm::dccId(), EcalBarrel, EcalEndcap, EcalLaserPnDiode, EBDetId::ieta(), LEDCalibrationChannels::ieta, EBDetId::iphi(), LEDCalibrationChannels::iphi, EcalPnDiodeDetId::iPnId(), EEDetId::ix(), EEDetId::iy(), kEB, kEBMEM, kEBSM, kEBSMMEM, kEE, kEEm, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm05, ecaldqm::kEEm08, ecaldqm::kEEm09, kEEMEM, ecaldqm::kEEmHigh, kEEp, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp05, ecaldqm::kEEp08, ecaldqm::kEEp09, kEESM, kEESMMEM, kMEM, kSM, kSMMEM, ecaldqm::memDCCIndex(), hlt_dqm_clientPB-live_cfg::nbinsX, nEBSMEta, nEESMX, nEESMXExt, nEESMXRed, DetId::subdetId(), xlow_(), ylow_(), and EEDetId::zside().

Referenced by findBin2D(), findBinCrystal_(), findBinPseudoStrip_(), and findBinTriggerTower_().

◆ findBinCrystal_() [2/2]

int ecaldqm::binning::findBinCrystal_ ( ObjectType  _otype,
EcalElectronicsId const &  _id 
)

Definition at line 519 of file MESetBinningUtils2.cc.

519  {
520  return findBinCrystal_(_otype, getElectronicsMap()->getDetId(_id));
521  }

References findBinCrystal_(), and ecaldqm::getElectronicsMap().

◆ findBinPseudoStrip_()

int ecaldqm::binning::findBinPseudoStrip_ ( ObjectType  _otype,
DetId const &  _id 
)

Definition at line 582 of file MESetBinningUtils2.cc.

582  {
583  int xbin(0);
584  int ybin(0);
585  int nbinsX(0);
586  int subdet(_id.subdetId());
587 
588  if ((subdet == EcalTriggerTower && !isEndcapTTId(_id)) || subdet == EcalBarrel) {
589  return findBinTriggerTower_(_otype, _id);
590  } else if (subdet == EcalEndcap) {
591  unsigned tccid(tccId(_id));
592  unsigned iSM(tccid <= 36 ? tccid % 18 / 2 : (tccid - 72) % 18 / 2);
593  return findBinCrystal_(_otype, _id, iSM);
594  }
595 
596  return (nbinsX + 2) * ybin + xbin;
597  }

References EcalBarrel, EcalEndcap, EcalTriggerTower, findBinCrystal_(), findBinTriggerTower_(), ecaldqm::isEndcapTTId(), hlt_dqm_clientPB-live_cfg::nbinsX, DetId::subdetId(), and ecaldqm::tccId().

Referenced by findBin2D().

◆ findBinRCT_()

int ecaldqm::binning::findBinRCT_ ( ObjectType  _otype,
DetId const &  _id 
)

Definition at line 523 of file MESetBinningUtils2.cc.

523  {
524  int xbin(0);
525  int ybin(0);
526  int nbinsX(0);
527 
528  EcalTrigTowerDetId ttid(_id);
529  int ieta(ttid.ieta());
530  int iphi((ttid.iphi() + 1) % 72 + 1);
531 
532  xbin = ieta < 0 ? ieta + 33 : ieta + 32;
533  ybin = iphi;
534  nbinsX = 64;
535 
536  return (nbinsX + 2) * ybin + xbin;
537  }

References EcalTrigTowerDetId::ieta(), LEDCalibrationChannels::ieta, EcalTrigTowerDetId::iphi(), LEDCalibrationChannels::iphi, and hlt_dqm_clientPB-live_cfg::nbinsX.

Referenced by findBin2D().

◆ findBinSuperCrystal_() [1/2]

int ecaldqm::binning::findBinSuperCrystal_ ( ObjectType  _otype,
DetId const &  _id,
int  _iSM = -1 
)

Definition at line 599 of file MESetBinningUtils2.cc.

599  {
600  int xbin(0);
601  int ybin(0);
602  int nbinsX(0);
603  int subdet(_id.subdetId());
604 
605  if (subdet == EcalBarrel) {
606  EBDetId ebid(_id);
607  int iphi(ebid.iphi());
608  int ieta(ebid.ieta());
609  switch (_otype) {
610  case kEB:
611  xbin = (iphi - 1) / 5 + 1;
612  ybin = (ieta < 0 ? ieta + 85 : ieta + 84) / 5 + 1;
613  nbinsX = 72;
614  break;
615  case kSM:
616  case kEBSM:
617  xbin = (ieta < 0 ? -ieta - 1 : ieta - 1) / 5 + 1;
618  ybin = (ieta < 0 ? (iphi - 1) % 20 : 19 - (iphi - 1) % 20) / 5 + 1;
619  nbinsX = nEBSMEta / 5;
620  break;
621  default:
622  break;
623  }
624  } else if (subdet == EcalEndcap) {
625  if (isEcalScDetId(_id)) {
626  EcalScDetId scid(_id);
627  int ix(scid.ix());
628  int iy(scid.iy());
629  switch (_otype) {
630  case kEE: {
631  int zside(scid.zside());
632  xbin = zside < 0 ? ix : ix + 20;
633  ybin = iy;
634  nbinsX = 40;
635  } break;
636  case kEEm:
637  case kEEp:
638  xbin = ix;
639  ybin = iy;
640  nbinsX = 20;
641  break;
642  case kSM:
643  case kEESM: {
644  int iSM(_iSM >= 0 ? _iSM : dccId(_id) - 1);
645  xbin = ix - xlow_(iSM) / 5;
646  ybin = iy - ylow_(iSM) / 5;
647  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
648  nbinsX = nEESMXExt / 5;
649  else if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 ||
650  iSM == kEEp09)
651  nbinsX = nEESMXRed / 5;
652  else
653  nbinsX = nEESMX / 5;
654  } break;
655  default:
656  break;
657  }
658  } else {
659  EEDetId eeid(_id);
660  int ix(eeid.ix());
661  int iy(eeid.iy());
662  switch (_otype) {
663  case kEE:
664  xbin = (eeid.zside() < 0 ? ix - 1 : ix + 99) / 5 + 1;
665  ybin = (iy - 1) / 5 + 1;
666  nbinsX = 40;
667  break;
668  case kEEm:
669  case kEEp:
670  xbin = (ix - 1) / 5 + 1;
671  ybin = (iy - 1) / 5 + 1;
672  nbinsX = 20;
673  break;
674  case kSM:
675  case kEESM: {
676  int iSM(_iSM >= 0 ? _iSM : dccId(_id) - 1);
677  xbin = (ix - xlow_(iSM) - 1) / 5 + 1;
678  ybin = (iy - ylow_(iSM) - 1) / 5 + 1;
679  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
680  nbinsX = nEESMXExt / 5;
681  else if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 ||
682  iSM == kEEp09)
683  nbinsX = nEESMXRed / 5;
684  else
685  nbinsX = nEESMX / 5;
686  } break;
687  default:
688  break;
689  }
690  }
691  } else if (subdet == EcalTriggerTower && !isEndcapTTId(_id)) {
692  EcalTrigTowerDetId ttid(_id);
693  int ieta(ttid.ieta());
694  int iphi((ttid.iphi() + 1) % 72 + 1);
695  switch (_otype) {
696  case kEB:
697  xbin = iphi;
698  ybin = ieta < 0 ? ieta + 18 : ieta + 17;
699  nbinsX = 72;
700  break;
701  case kSM:
702  case kEBSM:
703  xbin = ieta < 0 ? -ieta : ieta;
704  ybin = ieta < 0 ? (iphi - 1) % 4 + 1 : 4 - (iphi - 1) % 4;
705  nbinsX = nEBSMEta / 5;
706  break;
707  default:
708  break;
709  }
710  }
711 
712  return (nbinsX + 2) * ybin + xbin;
713  }

References ecaldqm::dccId(), EcalBarrel, EcalEndcap, EcalTriggerTower, EcalTrigTowerDetId::ieta(), EBDetId::ieta(), LEDCalibrationChannels::ieta, EBDetId::iphi(), EcalTrigTowerDetId::iphi(), LEDCalibrationChannels::iphi, ecaldqm::isEcalScDetId(), ecaldqm::isEndcapTTId(), EcalScDetId::ix(), EEDetId::ix(), EcalScDetId::iy(), EEDetId::iy(), kEB, kEBSM, kEE, kEEm, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm05, ecaldqm::kEEm08, ecaldqm::kEEm09, kEEp, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp05, ecaldqm::kEEp08, ecaldqm::kEEp09, kEESM, kSM, hlt_dqm_clientPB-live_cfg::nbinsX, nEBSMEta, nEESMX, nEESMXExt, nEESMXRed, DetId::subdetId(), xlow_(), ylow_(), EcalScDetId::zside(), EEDetId::zside(), and ecaldqm::zside().

Referenced by findBin2D(), and findBinSuperCrystal_().

◆ findBinSuperCrystal_() [2/2]

int ecaldqm::binning::findBinSuperCrystal_ ( ObjectType  _otype,
EcalElectronicsId const &  _id 
)

Definition at line 715 of file MESetBinningUtils2.cc.

715  {
716  int xbin(0);
717  int ybin(0);
718  int nbinsX(0);
719  int iDCC(_id.dccId() - 1);
720 
721  if (iDCC >= kEBmLow && iDCC <= kEBpHigh) {
722  unsigned towerid(_id.towerId());
723  bool isEBm(iDCC <= kEBmHigh);
724  switch (_otype) {
725  case kEB:
726  xbin = 4 * ((iDCC - 9) % 18) + (isEBm ? towerid - 1 : 68 - towerid) % 4 + 1;
727  ybin = (towerid - 1) / 4 * (isEBm ? -1 : 1) + (isEBm ? 18 : 17);
728  nbinsX = 72;
729  break;
730  case kSM:
731  case kEBSM:
732  xbin = (towerid - 1) / 4 + 1;
733  //In by SM plots, using towerid, the ybinning always increases from 1 to 4,
734  //whereas using iphi it flips for EB- and EB+
735  ybin = (towerid - 1) % 4 + 1;
736  nbinsX = 17;
737  break;
738  default:
739  break;
740  }
741  } else {
742  return findBinSuperCrystal_(_otype, EEDetId(getElectronicsMap()->getDetId(_id)).sc());
743  }
744 
745  return (nbinsX + 2) * ybin + xbin;
746  }

References EcalElectronicsId::dccId(), findBinSuperCrystal_(), ecaldqm::getElectronicsMap(), kEB, ecaldqm::kEBmHigh, ecaldqm::kEBmLow, ecaldqm::kEBpHigh, kEBSM, kSM, hlt_dqm_clientPB-live_cfg::nbinsX, and EcalElectronicsId::towerId().

◆ findBinTriggerTower_()

int ecaldqm::binning::findBinTriggerTower_ ( ObjectType  _otype,
DetId const &  _id 
)

Definition at line 539 of file MESetBinningUtils2.cc.

539  {
540  int xbin(0);
541  int ybin(0);
542  int nbinsX(0);
543  int subdet(_id.subdetId());
544 
545  if ((subdet == EcalTriggerTower && !isEndcapTTId(_id)) || subdet == EcalBarrel) {
546  EcalTrigTowerDetId ttid;
547  if (subdet == EcalBarrel)
548  ttid = EBDetId(_id).tower();
549  else
550  ttid = _id;
551 
552  int ieta(ttid.ieta());
553  int iphi((ttid.iphi() + 1) % 72 + 1);
554  switch (_otype) {
555  case kEB:
556  xbin = iphi;
557  ybin = ieta < 0 ? ieta + 18 : ieta + 17;
558  nbinsX = 72;
559  break;
560  case kSM:
561  case kEBSM:
562  xbin = ieta < 0 ? -ieta : ieta;
563  ybin = ieta < 0 ? (iphi - 1) % 4 + 1 : 4 - (iphi - 1) % 4;
564  nbinsX = 17;
565  break;
566  case kEcal:
567  xbin = ieta < 0 ? ieta + 33 : ieta + 32;
568  ybin = iphi > 70 ? iphi - 70 : iphi + 2;
569  nbinsX = 64;
570  default:
571  break;
572  }
573  } else if (subdet == EcalEndcap) {
574  unsigned tccid(tccId(_id));
575  unsigned iSM(tccid <= 36 ? tccid % 18 / 2 : (tccid - 72) % 18 / 2);
576  return findBinCrystal_(_otype, _id, iSM);
577  }
578 
579  return (nbinsX + 2) * ybin + xbin;
580  }

References EcalBarrel, EcalEndcap, EcalTriggerTower, findBinCrystal_(), EcalTrigTowerDetId::ieta(), LEDCalibrationChannels::ieta, EcalTrigTowerDetId::iphi(), LEDCalibrationChannels::iphi, ecaldqm::isEndcapTTId(), kEB, kEBSM, kEcal, kSM, hlt_dqm_clientPB-live_cfg::nbinsX, DetId::subdetId(), ecaldqm::tccId(), and EBDetId::tower().

Referenced by findBin2D(), and findBinPseudoStrip_().

◆ findPlotIndex() [1/3]

unsigned ecaldqm::binning::findPlotIndex ( ObjectType  _otype,
DetId const &  _id 
)

Definition at line 299 of file MESetBinningUtils.cc.

299  {
300  if (getNObjects(_otype) == 1)
301  return 0;
302 
303  switch (_otype) {
304  case kEcal3P:
305  if (_id.subdetId() == EcalBarrel)
306  return 1;
307  else if (_id.subdetId() == EcalEndcap && zside(_id) > 0)
308  return 2;
309  else if (_id.subdetId() == EcalTriggerTower) {
310  if (!isEndcapTTId(_id))
311  return 1;
312  else {
313  if (zside(_id) > 0)
314  return 2;
315  else
316  return 0;
317  }
318  } else
319  return 0;
320 
321  case kEcal2P:
322  if (_id.subdetId() == EcalBarrel)
323  return 1;
324  else if (_id.subdetId() == EcalTriggerTower && !isEndcapTTId(_id))
325  return 1;
326  else
327  return 0;
328 
329  case kEE2P:
330  if (zside(_id) > 0)
331  return 1;
332  else
333  return 0;
334 
335  case kMEM2P:
336  if (_id.subdetId() == EcalLaserPnDiode) {
337  unsigned iDCC(dccId(_id) - 1);
338  if (iDCC >= kEBmLow && iDCC <= kEBpHigh)
339  return 1;
340  else
341  return 0;
342  } else
343  return -1;
344 
345  default:
346  return findPlotIndex(_otype, dccId(_id));
347  }
348  }

References ecaldqm::dccId(), EcalBarrel, EcalEndcap, EcalLaserPnDiode, EcalTriggerTower, getNObjects(), ecaldqm::isEndcapTTId(), ecaldqm::kEBmLow, ecaldqm::kEBpHigh, kEcal2P, kEcal3P, kEE2P, kMEM2P, DetId::subdetId(), and ecaldqm::zside().

Referenced by ecaldqm::MESet::const_iterator::const_iterator(), ecaldqm::MESetDet0D::fill(), ecaldqm::MESetProjection::fill(), ecaldqm::MESetDet2D::fill(), ecaldqm::MESetDet1D::fill(), ecaldqm::MESetTrend::fill(), ecaldqm::MESetEcal::fill(), ecaldqm::MESetTrend::findBin(), ecaldqm::MESetDet2D::findBin(), ecaldqm::MESetDet1D::findBin(), ecaldqm::MESetEcal::findBin(), findPlotIndex(), ecaldqm::MESetDet0D::getBinContent(), ecaldqm::MESetProjection::getBinContent(), ecaldqm::MESetDet2D::getBinContent(), ecaldqm::MESetEcal::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), ecaldqm::MESetProjection::getBinEntries(), ecaldqm::MESetDet2D::getBinEntries(), ecaldqm::MESetDet1D::getBinEntries(), ecaldqm::MESetEcal::getBinEntries(), ecaldqm::MESetProjection::getBinError(), ecaldqm::MESetDet2D::getBinError(), ecaldqm::MESetEcal::getBinError(), ecaldqm::MESetDet1D::getBinError(), ecaldqm::MESetProjection::setBinContent(), ecaldqm::MESetDet2D::setBinContent(), ecaldqm::MESetDet1D::setBinContent(), ecaldqm::MESetEcal::setBinContent(), ecaldqm::MESetProjection::setBinEntries(), ecaldqm::MESetDet2D::setBinEntries(), ecaldqm::MESetDet1D::setBinEntries(), ecaldqm::MESetEcal::setBinEntries(), ecaldqm::MESetProjection::setBinError(), ecaldqm::MESetDet2D::setBinError(), ecaldqm::MESetDet1D::setBinError(), and ecaldqm::MESetEcal::setBinError().

◆ findPlotIndex() [2/3]

unsigned ecaldqm::binning::findPlotIndex ( ObjectType  _otype,
EcalElectronicsId const &  _id 
)

Definition at line 350 of file MESetBinningUtils.cc.

350  {
351  if (getNObjects(_otype) == 1)
352  return 0;
353 
354  return findPlotIndex(_otype, _id.dccId());
355  }

References EcalElectronicsId::dccId(), findPlotIndex(), and getNObjects().

◆ findPlotIndex() [3/3]

unsigned ecaldqm::binning::findPlotIndex ( ObjectType  _otype,
int  _dcctccid,
BinningType  _btype = kDCC 
)

Definition at line 357 of file MESetBinningUtils.cc.

357  {
358  if (getNObjects(_otype) == 1)
359  return 0;
360 
361  int iSM(_dcctccid - 1);
362 
363  switch (_otype) {
364  case kSM:
365  if (_btype == kPseudoStrip) {
366  iSM = iSM <= kEEmTCCHigh ? (iSM + 1) % 18 / 2
367  : iSM >= kEEpTCCLow ? (iSM + 1 - 72) % 18 / 2 + 45 : (iSM + 1) - kEEmTCCHigh;
368  return iSM;
369  } else
370  return iSM;
371 
372  case kEBSM:
373  return iSM - 9;
374 
375  case kEESM:
376  if (iSM <= kEEmHigh)
377  return iSM;
378  else
379  return iSM - nEBDCC;
380 
381  case kSMMEM:
382  return memDCCIndex(_dcctccid);
383 
384  case kEBSMMEM:
385  return memDCCIndex(_dcctccid) - nEEDCCMEM / 2;
386 
387  case kEESMMEM:
388  if (iSM <= kEEmHigh)
389  return memDCCIndex(_dcctccid);
390  else
391  return memDCCIndex(_dcctccid) - nEBDCC;
392 
393  case kEcal2P:
394  if (_btype == kDCC) {
395  if (iSM <= kEEmHigh || iSM >= kEEpLow)
396  return 0;
397  else
398  return 1;
399  } else if (_btype == kTCC) {
400  if (iSM <= kEEmTCCHigh || iSM >= kEEpTCCLow)
401  return 0;
402  else
403  return 1;
404  } else {
405  if (iSM == EcalBarrel - 1)
406  return 1;
407  else
408  return 0;
409  }
410 
411  case kEcal3P:
412  if (_btype == kDCC) {
413  if (iSM <= kEEmHigh)
414  return 0;
415  else if (iSM <= kEBpHigh)
416  return 1;
417  else
418  return 2;
419  } else if (_btype == kTCC) {
420  if (iSM <= kEEmTCCHigh)
421  return 0;
422  else if (iSM <= kEBTCCHigh)
423  return 1;
424  else
425  return 2;
426  } else {
427  if (iSM == -EcalEndcap - 1)
428  return 0;
429  else if (iSM == EcalBarrel - 1)
430  return 1;
431  else
432  return 2;
433  }
434 
435  case kEE2P:
436  if (_btype == kDCC) {
437  if (iSM >= kEEpLow)
438  return 1;
439  else
440  return 0;
441  } else {
442  if (iSM >= kEEpTCCLow)
443  return 1;
444  else
445  return 0;
446  }
447 
448  case kMEM2P:
449  if (_btype == kDCC) {
450  if (iSM <= kEEmHigh || iSM >= kEEpLow)
451  return 0;
452  else
453  return 1;
454  } else if (_btype == kTCC)
455  return -1;
456  else {
457  if (iSM == kEB)
458  return 1;
459  else
460  return 0;
461  }
462  default:
463  return -1;
464  }
465  }

References EcalBarrel, EcalEndcap, getNObjects(), kDCC, kEB, ecaldqm::kEBpHigh, kEBSM, kEBSMMEM, ecaldqm::kEBTCCHigh, kEcal2P, kEcal3P, kEE2P, ecaldqm::kEEmHigh, ecaldqm::kEEmTCCHigh, ecaldqm::kEEpLow, ecaldqm::kEEpTCCLow, kEESM, kEESMMEM, kMEM2P, kPseudoStrip, kSM, kSMMEM, kTCC, ecaldqm::memDCCIndex(), ecaldqm::nEBDCC, and ecaldqm::nEEDCCMEM.

◆ formAxis()

AxisSpecs ecaldqm::binning::formAxis ( edm::ParameterSet const &  _axisParams)

Definition at line 803 of file MESetBinningUtils.cc.

803  {
804  AxisSpecs axis;
805 
806  if (_axisParams.existsAs<std::vector<double>>("edges", false)) {
807  std::vector<double> const &vEdges(_axisParams.getUntrackedParameter<std::vector<double>>("edges"));
808  axis.nbins = vEdges.size() - 1;
809  axis.edges = new float[vEdges.size()];
810  std::copy(vEdges.begin(), vEdges.end(), axis.edges);
811  } else {
812  axis.nbins = _axisParams.getUntrackedParameter<int>("nbins");
813  axis.low = _axisParams.getUntrackedParameter<double>("low");
814  bool highSet(_axisParams.existsAs<double>("high", false));
815  bool perBinSet(_axisParams.existsAs<double>("unitsPerBin", false));
816  if (highSet) {
817  if (perBinSet)
818  edm::LogWarning("EcalDQM") << "Maximum and bin width both set in an axis; using the former";
819  axis.high = _axisParams.getUntrackedParameter<double>("high");
820  } else if (perBinSet)
821  axis.high = axis.low + _axisParams.getUntrackedParameter<double>("unitsPerBin") * axis.nbins;
822  else
823  axis.high = 0.;
824  }
825 
826  if (_axisParams.existsAs<std::vector<std::string>>("labels", false)) {
827  std::vector<std::string> const &labels(_axisParams.getUntrackedParameter<std::vector<std::string>>("labels"));
828  if (int(labels.size()) == axis.nbins) {
829  axis.labels = new std::string[axis.nbins];
830  for (int iB(0); iB != axis.nbins; ++iB)
831  axis.labels[iB] = labels[iB];
832  }
833  }
834 
835  axis.title = _axisParams.getUntrackedParameter<std::string>("title");
836 
837  return axis;
838  }

References filterCSVwithJSON::copy, ecaldqm::binning::AxisSpecs::edges, edm::ParameterSet::existsAs(), edm::ParameterSet::getUntrackedParameter(), ecaldqm::binning::AxisSpecs::high, SummaryClient_cfi::labels, ecaldqm::binning::AxisSpecs::labels, ecaldqm::binning::AxisSpecs::low, ecaldqm::binning::AxisSpecs::nbins, AlCaHLTBitMon_QueryRunRegistry::string, and ecaldqm::binning::AxisSpecs::title.

Referenced by ecaldqm::createMESet().

◆ getBinning()

AxisSpecs ecaldqm::binning::getBinning ( ObjectType  _otype,
BinningType  _btype,
bool  _isMap,
int  _axis,
unsigned  _iME 
)

Definition at line 14 of file MESetBinningUtils.cc.

14  {
15  if (_otype >= nObjType || _btype >= unsigned(nPresetBinnings))
16  return AxisSpecs(); // you are on your own
17 
18  switch (_otype) {
19  case kEB:
20  return getBinningEB_(_btype, _isMap, _axis);
21  case kEE:
22  return getBinningEE_(_btype, _isMap, 0, _axis);
23  case kEEm:
24  return getBinningEE_(_btype, _isMap, -1, _axis);
25  case kEEp:
26  return getBinningEE_(_btype, _isMap, 1, _axis);
27  case kSM:
28  return getBinningSM_(_btype, _isMap, _iME, _axis);
29  case kEBSM:
30  return getBinningSM_(_btype, _isMap, _iME + 9, _axis);
31  case kEESM:
32  if (_iME <= kEEmHigh)
33  return getBinningSM_(_btype, _isMap, _iME, _axis);
34  else
35  return getBinningSM_(_btype, _isMap, _iME + nEBDCC, _axis);
36  case kSMMEM:
37  return getBinningSMMEM_(_btype, _isMap, _iME, _axis);
38  case kEBSMMEM:
39  return getBinningSMMEM_(_btype, _isMap, _iME + nEEDCCMEM / 2, _axis);
40  case kEESMMEM:
41  if (_iME <= kEEmHigh)
42  return getBinningSMMEM_(_btype, _isMap, _iME, _axis);
43  else
44  return getBinningSMMEM_(_btype, _isMap, _iME + nEBDCC, _axis);
45  case kEcal:
46  return getBinningEcal_(_btype, _isMap, _axis);
47  case kMEM:
48  return getBinningMEM_(_btype, _isMap, -1, _axis);
49  case kEBMEM:
50  return getBinningMEM_(_btype, _isMap, EcalBarrel, _axis);
51  case kEEMEM:
52  return getBinningMEM_(_btype, _isMap, EcalEndcap, _axis);
53  default:
54  return AxisSpecs();
55  }
56  }

References EcalBarrel, EcalEndcap, getBinningEB_(), getBinningEcal_(), getBinningEE_(), getBinningMEM_(), getBinningSM_(), getBinningSMMEM_(), kEB, kEBMEM, kEBSM, kEBSMMEM, kEcal, kEE, kEEm, kEEMEM, ecaldqm::kEEmHigh, kEEp, kEESM, kEESMMEM, kMEM, kSM, kSMMEM, ecaldqm::nEBDCC, ecaldqm::nEEDCCMEM, nObjType, and nPresetBinnings.

Referenced by ecaldqm::MESetEcal::book().

◆ getBinningEB_()

AxisSpecs ecaldqm::binning::getBinningEB_ ( BinningType  _btype,
bool  _isMap,
int  _axis 
)

Definition at line 89 of file MESetBinningUtils2.cc.

89  {
90  AxisSpecs specs;
91 
92  if (!_isMap) {
93  switch (_btype) {
94  case kTCC:
95  specs.nbins = 36;
96  specs.low = 9.;
97  specs.high = 45.;
98  specs.title = "iTCC";
99  break;
100  case kDCC:
101  specs.nbins = 36;
102  specs.low = 9.;
103  specs.high = 45.;
104  break;
105  case kProjEta:
106  specs.nbins = nEBEtaBins;
107  specs.low = -etaBound;
108  specs.high = etaBound;
109  specs.title = "eta";
110  break;
111  case kProjPhi:
112  specs.nbins = nPhiBins;
113  specs.low = -TMath::Pi() / 18.;
114  specs.high = TMath::Pi() * 35. / 18.;
115  specs.title = "phi";
116  break;
117  default:
118  break;
119  }
120  } else {
121  switch (_btype) {
122  case kCrystal:
123  if (_axis == 1)
124  specs.nbins = 360;
125  else if (_axis == 2)
126  specs.nbins = 170;
127  break;
128  case kSuperCrystal:
129  case kTriggerTower:
130  case kPseudoStrip:
131  if (_axis == 1)
132  specs.nbins = 72;
133  else if (_axis == 2)
134  specs.nbins = 34;
135  break;
136  default:
137  return specs;
138  }
139 
140  if (_axis == 1) {
141  specs.low = 0.;
142  specs.high = 360.;
143  specs.title = "iphi";
144  } else if (_axis == 2) {
145  specs.low = -85.;
146  specs.high = 85.;
147  specs.title = "ieta";
148  }
149  }
150 
151  return specs;
152  }

References ecaldqm::etaBound, kCrystal, kDCC, kProjEta, kProjPhi, kPseudoStrip, kSuperCrystal, kTCC, kTriggerTower, nEBEtaBins, nPhiBins, Pi, and HistogramManager_cfi::specs.

Referenced by getBinning().

◆ getBinningEcal_()

AxisSpecs ecaldqm::binning::getBinningEcal_ ( BinningType  _btype,
bool  _isMap,
int  _axis 
)

Definition at line 332 of file MESetBinningUtils2.cc.

332  {
333  AxisSpecs specs;
334 
335  if (!_isMap) {
336  switch (_btype) {
337  case kTCC:
338  specs.nbins = 108;
339  specs.low = 0.;
340  specs.high = 108.;
341  specs.title = "iTCC";
342  break;
343  case kDCC:
344  specs.nbins = 54;
345  specs.low = 0.;
346  specs.high = 54.;
347  specs.title = "iDCC";
348  break;
349  case kProjEta:
350  specs.nbins = nEBEtaBins + 2 * nEEEtaBins;
351  specs.edges = new float[specs.nbins + 1];
352  for (int i(0); i <= nEEEtaBins; i++)
353  specs.edges[i] = -3. + (3. - etaBound) / nEEEtaBins * i;
354  for (int i(1); i <= nEBEtaBins; i++)
355  specs.edges[i + nEEEtaBins] = -etaBound + 2. * etaBound / nEBEtaBins * i;
356  for (int i(1); i <= nEEEtaBins; i++)
357  specs.edges[i + nEEEtaBins + nEBEtaBins] = etaBound + (3. - etaBound) / nEEEtaBins * i;
358  specs.title = "eta";
359  break;
360  case kProjPhi:
361  specs.nbins = nPhiBins;
362  specs.low = -TMath::Pi() / 18.;
363  specs.high = TMath::Pi() * 35. / 18.;
364  specs.title = "phi";
365  break;
366  default:
367  break;
368  }
369  } else {
370  switch (_btype) {
371  case kDCC:
372  if (_axis == 1) {
373  specs.nbins = 9;
374  specs.low = 0.;
375  specs.high = 9.;
376  } else if (_axis == 2) {
377  specs.nbins = 6;
378  specs.low = 0.;
379  specs.high = 6.;
380  }
381  break;
382  case kRCT:
383  if (_axis == 1) {
384  specs.nbins = 64;
385  specs.low = -32.;
386  specs.high = 32.;
387  specs.title = "RCT iEta";
388  } else if (_axis == 2) {
389  specs.nbins = 72;
390  specs.low = 0.;
391  specs.high = 72.;
392  specs.title = "RCT Phi";
393  }
394  break;
395  default:
396  break;
397  }
398  }
399 
400  return specs;
401  }

References ecaldqm::etaBound, cms::cuda::for(), mps_fire::i, kDCC, kProjEta, kProjPhi, kRCT, kTCC, nEBEtaBins, nEEEtaBins, nPhiBins, Pi, and HistogramManager_cfi::specs.

Referenced by getBinning().

◆ getBinningEE_()

AxisSpecs ecaldqm::binning::getBinningEE_ ( BinningType  _btype,
bool  _isMap,
int  _zside,
int  _axis 
)

Definition at line 154 of file MESetBinningUtils2.cc.

154  {
155  AxisSpecs specs;
156 
157  if (!_isMap) {
158  switch (_btype) {
159  case kTCC:
160  specs.nbins = _zside ? 36 : 72;
161  specs.low = 0.;
162  specs.high = _zside ? 36. : 72.;
163  specs.title = "iTCC";
164  break;
165  case kDCC:
166  specs.nbins = _zside ? 9 : 18;
167  specs.low = 0.;
168  specs.high = _zside ? 9. : 18.;
169  break;
170  case kProjEta:
171  if (_zside == 0) {
172  specs.nbins = nEEEtaBins / (3. - etaBound) * 6.;
173  specs.low = -3.;
174  specs.high = 3.;
175  } else {
176  specs.nbins = nEEEtaBins;
177  specs.low = _zside < 0 ? -3. : etaBound;
178  specs.high = _zside < 0 ? -etaBound : 3.;
179  }
180  specs.title = "eta";
181  break;
182  case kProjPhi:
183  specs.nbins = nPhiBins;
184  specs.low = -TMath::Pi() / 18.;
185  specs.high = TMath::Pi() * 35. / 18.;
186  specs.title = "phi";
187  break;
188  default:
189  break;
190  }
191  } else {
192  switch (_btype) {
193  case kCrystal:
194  case kTriggerTower:
195  case kPseudoStrip:
196  if (_axis == 1)
197  specs.nbins = _zside ? 100 : 200;
198  if (_axis == 2)
199  specs.nbins = 100;
200  break;
201  case kSuperCrystal:
202  if (_axis == 1)
203  specs.nbins = _zside ? 20 : 40;
204  if (_axis == 2)
205  specs.nbins = 20;
206  break;
207  default:
208  return specs;
209  }
210 
211  if (_axis == 1) {
212  specs.low = 0.;
213  specs.high = _zside ? 100. : 200.;
214  specs.title = "ix";
215  } else if (_axis == 2) {
216  specs.low = 0.;
217  specs.high = 100.;
218  specs.title = "iy";
219  }
220  }
221 
222  return specs;
223  }

References ecaldqm::etaBound, kCrystal, kDCC, kProjEta, kProjPhi, kPseudoStrip, kSuperCrystal, kTCC, kTriggerTower, nEEEtaBins, nPhiBins, Pi, and HistogramManager_cfi::specs.

Referenced by getBinning().

◆ getBinningMEM_()

AxisSpecs ecaldqm::binning::getBinningMEM_ ( BinningType  _btype,
bool  _isMap,
int  _subdet,
int  _axis 
)

Definition at line 403 of file MESetBinningUtils2.cc.

403  {
404  AxisSpecs specs;
405 
406  if (_btype != kCrystal)
407  return specs;
408 
409  int nbins(44);
410  if (_subdet == EcalBarrel)
411  nbins = 36;
412  else if (_subdet == EcalEndcap)
413  nbins = 8;
414 
415  if (_axis == 1) {
416  specs.nbins = nbins;
417  specs.low = 0.;
418  specs.high = nbins;
419  } else if (_axis == 2) {
420  specs.nbins = 10;
421  specs.low = 0.;
422  specs.high = 10.;
423  specs.title = "iPN";
424  }
425 
426  return specs;
427  }

References EcalBarrel, EcalEndcap, kCrystal, LaserClient_cfi::nbins, and HistogramManager_cfi::specs.

Referenced by getBinning().

◆ getBinningSM_()

AxisSpecs ecaldqm::binning::getBinningSM_ ( BinningType  _btype,
bool  _isMap,
unsigned  _iObj,
int  _axis 
)

Definition at line 225 of file MESetBinningUtils2.cc.

225  {
226  AxisSpecs specs;
227 
228  unsigned iSM(_iObj);
229 
230  const bool isBarrel(iSM >= kEBmLow && iSM <= kEBpHigh);
231 
232  if (!_isMap) {
233  switch (_btype) {
234  case kCrystal:
235  specs.nbins = isBarrel ? 1700 : getElectronicsMap()->dccConstituents(iSM + 1).size();
236  specs.low = 0.;
237  specs.high = specs.nbins;
238  specs.title = "crystal";
239  break;
240  case kTriggerTower:
241  case kPseudoStrip:
242  specs.nbins = isBarrel ? 68 : (2 * nTTOuter + 2 * nTTInner); // For EE: numbering of bins
243  // is in the order (inner1, inner2, outer1, outer2). ("inner"" := closer
244  // to the beam)
245  specs.low = 1.;
246  specs.high = specs.nbins + specs.low;
247  specs.title = "tower";
248  break;
249  case kSuperCrystal:
250  specs.nbins = isBarrel ? 68 : nSuperCrystals(iSM + 1);
251  specs.low = 1.;
252  specs.high = specs.nbins + specs.low;
253  specs.title = "tower";
254  break;
255  default:
256  break;
257  }
258  } else {
259  int nEEX(nEESMX);
260  int nEEY(nEESMY);
261  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
262  nEEX = nEESMXExt;
263  if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 || iSM == kEEp09)
264  nEEX = nEESMXRed;
265  if (iSM == kEEm03 || iSM == kEEm07 || iSM == kEEp03 || iSM == kEEp07)
266  nEEY = nEESMYRed;
267 
268  switch (_btype) {
269  case kCrystal:
270  if (_axis == 1)
271  specs.nbins = isBarrel ? nEBSMEta : nEEX;
272  else if (_axis == 2)
273  specs.nbins = isBarrel ? nEBSMPhi : nEEY;
274  break;
275  case kTriggerTower:
276  case kPseudoStrip:
277  if (_axis == 1)
278  specs.nbins = isBarrel ? nEBSMEta / 5 : nEEX;
279  else if (_axis == 2)
280  specs.nbins = isBarrel ? nEBSMPhi / 5 : nEEY;
281  break;
282  case kSuperCrystal:
283  if (_axis == 1)
284  specs.nbins = isBarrel ? nEBSMEta / 5 : nEEX / 5;
285  else if (_axis == 2)
286  specs.nbins = isBarrel ? nEBSMPhi / 5 : nEEY / 5;
287  break;
288  default:
289  return specs;
290  }
291 
292  if (_axis == 1) {
293  specs.low = xlow_(iSM);
294  specs.high = specs.low + (isBarrel ? nEBSMEta : nEEX);
295  specs.title = isBarrel ? (iSM < kEBpLow ? "-ieta" : "ieta") : "ix";
296  } else if (_axis == 2) {
297  specs.low = ylow_(iSM);
298  specs.high = specs.low + (isBarrel ? nEBSMPhi : nEEY);
299  specs.title = isBarrel ? "iphi" : "iy";
300  }
301  }
302 
303  return specs;
304  }

References EcalElectronicsMapping::dccConstituents(), ecaldqm::getElectronicsMap(), PixelPluginsPhase0_cfi::isBarrel, kCrystal, ecaldqm::kEBmLow, ecaldqm::kEBpHigh, ecaldqm::kEBpLow, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm03, ecaldqm::kEEm05, ecaldqm::kEEm07, ecaldqm::kEEm08, ecaldqm::kEEm09, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp03, ecaldqm::kEEp05, ecaldqm::kEEp07, ecaldqm::kEEp08, ecaldqm::kEEp09, kPseudoStrip, kSuperCrystal, kTriggerTower, nEBSMEta, nEBSMPhi, nEESMX, nEESMXExt, nEESMXRed, nEESMY, nEESMYRed, ecaldqm::nSuperCrystals(), ecaldqm::nTTInner, ecaldqm::nTTOuter, HistogramManager_cfi::specs, xlow_(), and ylow_().

Referenced by getBinning().

◆ getBinningSMMEM_()

AxisSpecs ecaldqm::binning::getBinningSMMEM_ ( BinningType  _btype,
bool  _isMap,
unsigned  _iObj,
int  _axis 
)

Definition at line 306 of file MESetBinningUtils2.cc.

306  {
307  AxisSpecs specs;
308 
309  unsigned iSM(memDCCId(_iObj) - 1);
310 
311  if (iSM == unsigned(-1) || _btype != kCrystal)
312  return specs;
313 
314  if (_axis == 1) {
315  specs.nbins = 10;
316  specs.low = 0.;
317  specs.high = 10.;
318  if (_isMap)
319  specs.title = "pseudo-strip";
320  else
321  specs.title = "iPN";
322  } else if (_axis == 2) {
323  specs.nbins = 1;
324  specs.low = 0.;
325  specs.high = 5.;
326  specs.title = "channel";
327  }
328 
329  return specs;
330  }

References kCrystal, ecaldqm::memDCCId(), and HistogramManager_cfi::specs.

Referenced by getBinning().

◆ getNObjects()

unsigned ecaldqm::binning::getNObjects ( ObjectType  _otype)

Definition at line 512 of file MESetBinningUtils.cc.

512  {
513  switch (_otype) {
514  case kSM:
515  return nDCC;
516  case kEBSM:
517  return nEBDCC;
518  case kEESM:
519  return nEEDCC;
520  case kSMMEM:
521  return nDCCMEM;
522  case kEBSMMEM:
523  return nEBDCC;
524  case kEESMMEM:
525  return nEEDCCMEM;
526  case kEcal2P:
527  return 2;
528  case kEcal3P:
529  return 3;
530  case kEE2P:
531  return 2;
532  case kMEM2P:
533  return 2;
534  default:
535  return 1;
536  }
537  }

References kEBSM, kEBSMMEM, kEcal2P, kEcal3P, kEE2P, kEESM, kEESMMEM, kMEM2P, kSM, kSMMEM, ecaldqm::nDCC, ecaldqm::nDCCMEM, ecaldqm::nEBDCC, ecaldqm::nEEDCC, and ecaldqm::nEEDCCMEM.

Referenced by findPlotIndex(), ecaldqm::MESetEcal::generatePaths(), ecaldqm::MESetDet2D::reset(), and ecaldqm::MESetDet1D::reset().

◆ getObject()

ObjectType ecaldqm::binning::getObject ( ObjectType  _otype,
unsigned  _iObj 
)

Definition at line 467 of file MESetBinningUtils.cc.

467  {
468  switch (_otype) {
469  case kEcal3P:
470  switch (_iObj) {
471  case 0:
472  return kEEm;
473  case 1:
474  return kEB;
475  case 2:
476  return kEEp;
477  default:
478  return nObjType;
479  }
480  case kEcal2P:
481  switch (_iObj) {
482  case 0:
483  return kEE;
484  case 1:
485  return kEB;
486  default:
487  return nObjType;
488  }
489  case kEE2P:
490  switch (_iObj) {
491  case 0:
492  return kEEm;
493  case 1:
494  return kEEp;
495  default:
496  return nObjType;
497  }
498  case kMEM2P:
499  switch (_iObj) {
500  case 0:
501  return kEEMEM;
502  case 1:
503  return kEBMEM;
504  default:
505  return nObjType;
506  }
507  default:
508  return _otype;
509  }
510  }

References kEB, kEBMEM, kEcal2P, kEcal3P, kEE, kEE2P, kEEm, kEEMEM, kEEp, kMEM2P, and nObjType.

Referenced by ecaldqm::MESetDet2D::book(), ecaldqm::MESetDet1D::book(), ecaldqm::MESetEcal::book(), ecaldqm::MESet::ConstBin::ConstBin(), ecaldqm::MESetDet2D::fill(), ecaldqm::MESetDet1D::fill(), ecaldqm::MESetDet2D::findBin(), ecaldqm::MESetDet1D::findBin(), ecaldqm::MESetEcal::generatePaths(), ecaldqm::MESetDet2D::getBinContent(), ecaldqm::MESetDet1D::getBinContent(), ecaldqm::MESetDet2D::getBinEntries(), ecaldqm::MESetDet1D::getBinEntries(), ecaldqm::MESetDet2D::getBinError(), ecaldqm::MESetDet1D::getBinError(), ecaldqm::MESet::const_iterator::operator++(), ecaldqm::MESetDet2D::reset(), ecaldqm::MESetDet2D::setBinContent(), ecaldqm::MESetDet1D::setBinContent(), ecaldqm::MESetDet2D::setBinEntries(), ecaldqm::MESetDet1D::setBinEntries(), ecaldqm::MESetDet2D::setBinError(), and ecaldqm::MESetDet1D::setBinError().

◆ idFromBin()

uint32_t ecaldqm::binning::idFromBin ( ObjectType  _otype,
BinningType  _btype,
unsigned  _iME,
int  _bin 
)

Definition at line 726 of file MESetBinningUtils.cc.

726  {
727  if (_otype == kEB) {
728  if (_btype == kCrystal) {
729  int ieta(_bin / 362 - 86);
730  if (ieta >= 0)
731  ++ieta;
732  return EBDetId(ieta, _bin % 362);
733  } else if (_btype == kTriggerTower || _btype == kSuperCrystal) {
734  int ieta(_bin / 74 - 17);
735  int z(1);
736  if (ieta <= 0) {
737  z = -1;
738  ieta = -ieta + 1;
739  }
740  return EcalTrigTowerDetId(z, EcalBarrel, ieta, (_bin % 74 + 69) % 72 + 1);
741  }
742  } else if (_otype == kEEm || _otype == kEEp) {
743  int z(_otype == kEEm ? -1 : 1);
744  if (_btype == kCrystal || _btype == kTriggerTower)
745  return EEDetId(_bin % 102, _bin / 102, z).rawId();
746  else if (_btype == kSuperCrystal)
747  return EcalScDetId(_bin % 22, _bin / 22, z).rawId();
748  } else if (_otype == kEE) {
749  if (_btype == kCrystal || _btype == kTriggerTower) {
750  int ix(_bin % 202);
751  int z(ix > 100 ? 1 : -1);
752  if (z > 0)
753  ix = (ix - 100) % 101;
754  return EEDetId(ix, _bin / 202, z).rawId();
755  } else if (_btype == kSuperCrystal) {
756  int ix(_bin % 42);
757  int z(ix > 20 ? 1 : -1);
758  if (z > 0)
759  ix = (ix - 20) % 21;
760  return EcalScDetId(ix, _bin / 42, z).rawId();
761  }
762  } else if (_otype == kSM || _otype == kEBSM || _otype == kEESM) {
763  unsigned iSM(_iME);
764  if (_otype == kEBSM)
765  iSM += 9;
766  else if (_otype == kEESM && iSM > kEEmHigh)
767  iSM += nEBDCC;
768 
769  int z(iSM <= kEBmHigh ? -1 : 1);
770 
771  if ((iSM >= kEBmLow && iSM <= kEBmHigh) || (iSM >= kEBpLow && iSM <= kEBpHigh)) {
772  if (_btype == kCrystal) {
773  int iphi(((iSM - 9) % 18) * 20 + (z < 0 ? _bin / 87 : 21 - _bin / 87));
774  int ieta((_bin % 87) * z);
775  return EBDetId(ieta, iphi).rawId();
776  } else if (_btype == kTriggerTower || _btype == kSuperCrystal) {
777  int iphi((((iSM - 9) % 18) * 4 + (z < 0 ? _bin / 19 : 5 - _bin / 19) + 69) % 72 + 1);
778  int ieta(_bin % 19);
780  }
781  } else {
782  if (_btype == kCrystal || _btype == kTriggerTower) {
783  int nX(nEESMX);
784  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
785  nX = nEESMXExt;
786  if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 || iSM == kEEp09)
787  nX = nEESMXRed;
788  return EEDetId(_bin % (nX + 2) + xlow_(iSM), _bin / (nX + 2) + ylow_(iSM), z).rawId();
789  } else if (_btype == kSuperCrystal) {
790  int nX(nEESMX / 5);
791  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
792  nX = nEESMXExt / 5;
793  if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 || iSM == kEEp09)
794  nX = nEESMXRed / 5;
795  return EcalScDetId(_bin % (nX + 2) + xlow_(iSM) / 5, _bin / (nX + 2) + ylow_(iSM) / 5, z).rawId();
796  }
797  }
798  }
799 
800  return 0;
801  }

References EcalBarrel, LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, kCrystal, kEB, ecaldqm::kEBmHigh, ecaldqm::kEBmLow, ecaldqm::kEBpHigh, ecaldqm::kEBpLow, kEBSM, kEE, kEEm, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm05, ecaldqm::kEEm08, ecaldqm::kEEm09, ecaldqm::kEEmHigh, kEEp, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp05, ecaldqm::kEEp08, ecaldqm::kEEp09, kEESM, kSM, kSuperCrystal, kTriggerTower, ecaldqm::nEBDCC, nEESMX, nEESMXExt, nEESMXRed, DetId::rawId(), xlow_(), and ylow_().

Referenced by ecaldqm::MESet::ConstBin::getId().

◆ idFromName()

uint32_t ecaldqm::binning::idFromName ( std::string const &  _name)

Definition at line 663 of file MESetBinningUtils.cc.

663  {
664  TString name(_name);
665  TPRegexp re(
666  "(EB|EE)([+-][0-9][0-9])(?: TCC ([0-9]+)| DCC ([0-9]+) (CCU|TCC) "
667  "([0-9]+)(?: (TT|strip|PN) ([0-9]+)(?: xtal ([0-9]+)|)|)|)");
668  // 1 2 3 4 5 6 7 8 9
669  uint32_t rawId(0);
670 
671  TObjArray *matches(re.MatchS(name));
672  matches->SetOwner(true);
673  if (matches->GetEntries() == 0)
674  return 0;
675  else if (matches->GetEntries() == 3) {
676  TString subdet(static_cast<TObjString *>(matches->At(1))->GetString());
677  if (subdet == "EB") {
678  int dccid(static_cast<TObjString *>(matches->At(2))->GetString().Atoi());
679  unsigned offset(0);
680  if (dccid < 0) {
681  dccid *= -1;
682  offset = kEEmLow;
683  } else
684  offset = kEEpLow;
685  rawId = (dccid + 2) % 9 + 1 + offset;
686  } else {
687  int dccid(static_cast<TObjString *>(matches->At(2))->GetString().Atoi());
688  if (dccid < 0)
689  dccid *= -1;
690  else
691  dccid += 18;
692  rawId = kEBmLow + dccid;
693  }
694  } else if (matches->GetEntries() == 4)
695  rawId = static_cast<TObjString *>(matches->At(3))->GetString().Atoi() + nDCC;
696  else {
697  TString subtype(static_cast<TObjString *>(matches->At(5))->GetString());
698  if (subtype == "TCC") {
699  int tccid(static_cast<TObjString *>(matches->At(6))->GetString().Atoi());
700  int ttid(static_cast<TObjString *>(matches->At(8))->GetString().Atoi());
701  rawId = EcalTriggerElectronicsId(tccid, ttid, 1, 1).rawId();
702  } else {
703  int dccid(static_cast<TObjString *>(matches->At(4))->GetString().Atoi());
704  int towerid(static_cast<TObjString *>(matches->At(6))->GetString().Atoi());
705  if (matches->GetEntries() == 7)
706  rawId = EcalElectronicsId(dccid, towerid, 1, 1).rawId();
707  else {
708  TString chType(static_cast<TObjString *>(matches->At(7))->GetString());
709  int stripOrPNid(static_cast<TObjString *>(matches->At(8))->GetString().Atoi());
710  if (chType == "PN")
711  rawId = EcalElectronicsId(dccid, towerid, 1, stripOrPNid).rawId();
712  else if (chType == "strip") {
713  int xtalid(static_cast<TObjString *>(matches->At(9))->GetString().Atoi());
714  rawId = EcalElectronicsId(dccid, towerid, stripOrPNid, xtalid).rawId();
715  }
716  // case "TT" is already taken care of
717  }
718  }
719  }
720 
721  delete matches;
722 
723  return rawId;
724  }

References ecaldqm::kEBmLow, ecaldqm::kEEmLow, ecaldqm::kEEpLow, patCandidatesForDimuonsSequences_cff::matches, Skims_PA_cff::name, ecaldqm::nDCC, hltrates_dqm_sourceclient-live_cfg::offset, EcalTriggerElectronicsId::rawId(), and EcalElectronicsId::rawId().

◆ isValidIdBin()

bool ecaldqm::binning::isValidIdBin ( ObjectType  _otype,
BinningType  _btype,
unsigned  _iME,
int  _bin 
)

Definition at line 539 of file MESetBinningUtils.cc.

539  {
540  if (_otype == kEEm || _otype == kEEp) {
541  if (_btype == kCrystal || _btype == kTriggerTower)
542  return EEDetId::validDetId(_bin % 102, _bin / 102, 1);
543  else if (_btype == kSuperCrystal)
544  return EcalScDetId::validDetId(_bin % 22, _bin / 22, 1);
545  } else if (_otype == kEE) {
546  if (_btype == kCrystal || _btype == kTriggerTower) {
547  int ix(_bin % 202);
548  if (ix > 100)
549  ix = (ix - 100) % 101;
550  return EEDetId::validDetId(ix, _bin / 202, 1);
551  } else if (_btype == kSuperCrystal) {
552  int ix(_bin % 42);
553  if (ix > 20)
554  ix = (ix - 20) % 21;
555  return EcalScDetId::validDetId(ix, _bin / 42, 1);
556  }
557  } else if (_otype == kSM || _otype == kEESM) {
558  unsigned iSM(_iME);
559  if (_otype == kEESM && iSM > kEEmHigh)
560  iSM += nEBDCC;
561 
562  if (iSM >= kEBmLow && iSM <= kEBpHigh)
563  return true;
564 
565  if (_btype == kCrystal || _btype == kTriggerTower) {
566  int nX(nEESMX);
567  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
568  nX = nEESMXExt;
569  if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 || iSM == kEEp09)
570  nX = nEESMXRed;
571  int ix(_bin % (nX + 2) + xlow_(iSM));
572  int iy(_bin / (nX + 2) + ylow_(iSM));
573  int z(iSM <= kEEmHigh ? -1 : 1);
574  return EEDetId::validDetId(ix, iy, 1) && iSM == dccId(EEDetId(ix, iy, z)) - 1;
575  } else if (_btype == kSuperCrystal) {
576  int nX(nEESMX / 5);
577  if (iSM == kEEm02 || iSM == kEEm08 || iSM == kEEp02 || iSM == kEEp08)
578  nX = nEESMXExt / 5;
579  if (iSM == kEEm01 || iSM == kEEm05 || iSM == kEEm09 || iSM == kEEp01 || iSM == kEEp05 || iSM == kEEp09)
580  nX = nEESMXRed / 5;
581  int ix(_bin % (nX + 2) + xlow_(iSM) / 5);
582  int iy(_bin / (nX + 2) + ylow_(iSM) / 5);
583  int z(iSM <= kEEmHigh ? -1 : 1);
584  return EcalScDetId::validDetId(ix, iy, z) && iSM == dccId(EcalScDetId(ix, iy, z)) - 1;
585  }
586  }
587 
588  return true;
589  }

References ecaldqm::dccId(), kCrystal, ecaldqm::kEBmLow, ecaldqm::kEBpHigh, kEE, kEEm, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm05, ecaldqm::kEEm08, ecaldqm::kEEm09, ecaldqm::kEEmHigh, kEEp, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp05, ecaldqm::kEEp08, ecaldqm::kEEp09, kEESM, kSM, kSuperCrystal, kTriggerTower, ecaldqm::nEBDCC, nEESMX, nEESMXExt, nEESMXRed, EcalScDetId::validDetId(), EEDetId::validDetId(), xlow_(), and ylow_().

Referenced by ecaldqm::MESet::ConstBin::isChannel(), and ecaldqm::MESetDet2D::reset().

◆ translateBinningType()

BinningType ecaldqm::binning::translateBinningType ( std::string const &  _btypeName)

Definition at line 896 of file MESetBinningUtils.cc.

896  {
897  if (_btypeName == "Crystal")
898  return kCrystal;
899  else if (_btypeName == "TriggerTower")
900  return kTriggerTower;
901  else if (_btypeName == "SuperCrystal")
902  return kSuperCrystal;
903  else if (_btypeName == "PseudoStrip")
904  return kPseudoStrip;
905  else if (_btypeName == "TCC")
906  return kTCC;
907  else if (_btypeName == "DCC")
908  return kDCC;
909  else if (_btypeName == "ProjEta")
910  return kProjEta;
911  else if (_btypeName == "ProjPhi")
912  return kProjPhi;
913  else if (_btypeName == "RCT")
914  return kRCT;
915  else if (_btypeName == "User")
916  return kUser;
917  else if (_btypeName == "Report")
918  return kReport;
919  else if (_btypeName == "Trend")
920  return kTrend;
921 
922  throw cms::Exception("InvalidConfiguration") << "No binning type " << _btypeName << " defined";
923  }

References Exception, kCrystal, kDCC, kProjEta, kProjPhi, kPseudoStrip, kRCT, kReport, kSuperCrystal, kTCC, kTrend, kTriggerTower, and kUser.

Referenced by ecaldqm::createMESet().

◆ translateKind()

dqm::reco::MonitorElement::Kind ecaldqm::binning::translateKind ( std::string const &  _kindName)

Definition at line 925 of file MESetBinningUtils.cc.

925  {
926  if (_kindName == "REAL")
928  else if (_kindName == "TH1F")
930  else if (_kindName == "TProfile")
932  else if (_kindName == "TH2F")
934  else if (_kindName == "TProfile2D")
936  else
938  }

References MonitorElementData::INVALID, MonitorElementData::REAL, MonitorElementData::TH1F, MonitorElementData::TH2F, MonitorElementData::TPROFILE, and MonitorElementData::TPROFILE2D.

Referenced by ecaldqm::createMESet().

◆ translateObjectType()

ObjectType ecaldqm::binning::translateObjectType ( std::string const &  _otypeName)

Definition at line 851 of file MESetBinningUtils.cc.

851  {
852  if (_otypeName == "EB")
853  return kEB;
854  else if (_otypeName == "EE")
855  return kEE;
856  else if (_otypeName == "EEm")
857  return kEEm;
858  else if (_otypeName == "EEp")
859  return kEEp;
860  else if (_otypeName == "SM")
861  return kSM;
862  else if (_otypeName == "EBSM")
863  return kEBSM;
864  else if (_otypeName == "EESM")
865  return kEESM;
866  else if (_otypeName == "SMMEM")
867  return kSMMEM;
868  else if (_otypeName == "EBSMMEM")
869  return kEBSMMEM;
870  else if (_otypeName == "EESMMEM")
871  return kEESMMEM;
872  else if (_otypeName == "Ecal")
873  return kEcal;
874  else if (_otypeName == "MEM")
875  return kMEM;
876  else if (_otypeName == "EBMEM")
877  return kEBMEM;
878  else if (_otypeName == "EEMEM")
879  return kEEMEM;
880  else if (_otypeName == "Ecal2P")
881  return kEcal2P;
882  else if (_otypeName == "Ecal3P")
883  return kEcal3P;
884  else if (_otypeName == "EE2P")
885  return kEE2P;
886  else if (_otypeName == "MEM2P")
887  return kMEM2P;
888  else if (_otypeName == "Channel")
889  return kChannel;
890  else if (_otypeName == "None")
891  return nObjType;
892 
893  throw cms::Exception("InvalidConfiguration") << "No object type " << _otypeName << " defined";
894  }

References Exception, kChannel, kEB, kEBMEM, kEBSM, kEBSMMEM, kEcal, kEcal2P, kEcal3P, kEE, kEE2P, kEEm, kEEMEM, kEEp, kEESM, kEESMMEM, kMEM, kMEM2P, kSM, kSMMEM, and nObjType.

Referenced by ecaldqm::createMESet().

◆ xlow_()

int ecaldqm::binning::xlow_ ( int  _iSM)

Definition at line 13 of file MESetBinningUtils2.cc.

13  {
14  switch (_iSM) {
15  case kEEm01:
16  case kEEp01:
17  return 20;
18  case kEEm02:
19  case kEEp02:
20  return 0;
21  case kEEm03:
22  case kEEp03:
23  return 0;
24  case kEEm04:
25  case kEEp04:
26  return 5;
27  case kEEm05:
28  case kEEp05:
29  return 35;
30  case kEEm06:
31  case kEEp06:
32  return 55;
33  case kEEm07:
34  case kEEp07:
35  return 60;
36  case kEEm08:
37  case kEEp08:
38  return 55;
39  case kEEm09:
40  case kEEp09:
41  return 50;
42  default:
43  break;
44  }
45 
46  if (_iSM >= kEBmLow && _iSM <= kEBpHigh)
47  return 0;
48 
49  return 0;
50  }

References ecaldqm::kEBmLow, ecaldqm::kEBpHigh, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm03, ecaldqm::kEEm04, ecaldqm::kEEm05, ecaldqm::kEEm06, ecaldqm::kEEm07, ecaldqm::kEEm08, ecaldqm::kEEm09, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp03, ecaldqm::kEEp04, ecaldqm::kEEp05, ecaldqm::kEEp06, ecaldqm::kEEp07, ecaldqm::kEEp08, and ecaldqm::kEEp09.

Referenced by findBinCrystal_(), findBinSuperCrystal_(), getBinningSM_(), idFromBin(), and isValidIdBin().

◆ ylow_()

int ecaldqm::binning::ylow_ ( int  _iSM)

Definition at line 52 of file MESetBinningUtils2.cc.

52  {
53  switch (_iSM) {
54  case kEEm01:
55  case kEEp01:
56  case kEEm09:
57  case kEEp09:
58  return 60;
59  case kEEm02:
60  case kEEp02:
61  case kEEm08:
62  case kEEp08:
63  return 50;
64  case kEEm03:
65  case kEEp03:
66  case kEEm07:
67  case kEEp07:
68  return 25;
69  case kEEm04:
70  case kEEp04:
71  case kEEm06:
72  case kEEp06:
73  return 5;
74  case kEEm05:
75  case kEEp05:
76  return 0;
77  default:
78  break;
79  }
80 
81  if (_iSM >= kEBmLow && _iSM <= kEBmHigh)
82  return ((_iSM - kEBmLow) % 18) * 20;
83  if (_iSM >= kEBpLow && _iSM <= kEBpHigh)
84  return (-1 - ((_iSM - kEBpLow) % 18)) * 20;
85 
86  return 0;
87  }

References ecaldqm::kEBmHigh, ecaldqm::kEBmLow, ecaldqm::kEBpHigh, ecaldqm::kEBpLow, ecaldqm::kEEm01, ecaldqm::kEEm02, ecaldqm::kEEm03, ecaldqm::kEEm04, ecaldqm::kEEm05, ecaldqm::kEEm06, ecaldqm::kEEm07, ecaldqm::kEEm08, ecaldqm::kEEm09, ecaldqm::kEEp01, ecaldqm::kEEp02, ecaldqm::kEEp03, ecaldqm::kEEp04, ecaldqm::kEEp05, ecaldqm::kEEp06, ecaldqm::kEEp07, ecaldqm::kEEp08, and ecaldqm::kEEp09.

Referenced by findBinCrystal_(), findBinSuperCrystal_(), getBinningSM_(), idFromBin(), and isValidIdBin().

ecaldqm::binning::getBinningEcal_
AxisSpecs getBinningEcal_(BinningType, bool, int)
Definition: MESetBinningUtils2.cc:332
SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
ecaldqm::binning::findBinPseudoStrip_
int findBinPseudoStrip_(ObjectType, DetId const &)
Definition: MESetBinningUtils2.cc:582
ecaldqm::kEBmHigh
Definition: EcalDQMCommonUtils.h:86
ecaldqm::tccId
unsigned tccId(DetId const &)
Definition: EcalDQMCommonUtils.cc:56
mps_fire.i
i
Definition: mps_fire.py:428
EcalTrigTowerDetId::iphi
int iphi() const
get the tower iphi
Definition: EcalTrigTowerDetId.h:52
ecaldqm::binning::kSuperCrystal
Definition: MESetBinningUtils.h:43
ecaldqm::kEEm09
Definition: EcalDQMCommonUtils.h:29
ecaldqm::kEEp09
Definition: EcalDQMCommonUtils.h:74
ecaldqm::binning::kEE2P
Definition: MESetBinningUtils.h:34
filterCSVwithJSON.copy
copy
Definition: filterCSVwithJSON.py:36
EcalTriggerElectronicsId
Ecal trigger electronics identification [32:20] Unused (so far) [19:13] TCC id [12:6] TT id [5:3] pse...
Definition: EcalTriggerElectronicsId.h:18
detailsBasic3DVector::z
float float float z
Definition: extBasic3DVector.h:14
ecaldqm::zside
int zside(DetId const &)
Definition: EcalDQMCommonUtils.cc:189
MonitorElementData::Kind::TH1F
EBDetId
Definition: EBDetId.h:17
ecaldqm::kEEm04
Definition: EcalDQMCommonUtils.h:33
EcalLaserPnDiode
Definition: EcalSubdetector.h:10
ecaldqm::binning::kEEp
Definition: MESetBinningUtils.h:21
ecaldqm::nSuperCrystals
unsigned nSuperCrystals(unsigned)
Definition: EcalDQMCommonUtils.cc:369
ecaldqm::binning::kEB
Definition: MESetBinningUtils.h:18
HistogramManager_cfi.specs
specs
Definition: HistogramManager_cfi.py:80
EcalScDetId::validDetId
static bool validDetId(int ix, int iy, int iz)
Definition: EcalScDetId.cc:59
hgcalTowerProducer_cfi.tower
tower
Definition: hgcalTowerProducer_cfi.py:4
ecaldqm::ttId
unsigned ttId(DetId const &)
Definition: EcalDQMCommonUtils.cc:101
ecaldqm::memDCCIndex
unsigned memDCCIndex(unsigned)
Definition: EcalDQMCommonUtils.cc:48
ecaldqm::nEBDCC
Definition: EcalDQMCommonUtils.h:93
EcalPnDiodeDetId::iPnId
int iPnId() const
get the PnId
Definition: EcalPnDiodeDetId.h:46
ecaldqm::binning::findBinRCT_
int findBinRCT_(ObjectType, DetId const &)
Definition: MESetBinningUtils2.cc:523
hlt_dqm_clientPB-live_cfg.nbinsX
nbinsX
Definition: hlt_dqm_clientPB-live_cfg.py:65
ecaldqm::binning::kEcal2P
Definition: MESetBinningUtils.h:32
ecaldqm::kEEm07
Definition: EcalDQMCommonUtils.h:27
ecaldqm::isEndcapTTId
bool isEndcapTTId(DetId const &)
Definition: EcalDQMCommonUtils.cc:270
ecaldqm::kEEp07
Definition: EcalDQMCommonUtils.h:72
ecaldqm::kEEmLow
Definition: EcalDQMCommonUtils.h:81
ecaldqm::kEEm01
Definition: EcalDQMCommonUtils.h:30
ecaldqm::binning::kProjEta
Definition: MESetBinningUtils.h:47
ecaldqm::binning::kEBMEM
Definition: MESetBinningUtils.h:30
EcalPnDiodeDetId
Definition: EcalPnDiodeDetId.h:22
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
ecaldqm::etaBound
const double etaBound
ecaldqm::binning::nEBSMEta
Definition: MESetBinningUtils.h:59
ecaldqm::binning::kEE
Definition: MESetBinningUtils.h:19
edm::LogWarning
Log< level::Warning, false > LogWarning
Definition: MessageLogger.h:122
ecaldqm::binning::nEBSMPhi
Definition: MESetBinningUtils.h:60
EcalBarrel
Definition: EcalSubdetector.h:10
edm::ParameterSetDescription::addOptionalUntracked
ParameterDescriptionBase * addOptionalUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:110
ecaldqm::binning::kReport
Definition: MESetBinningUtils.h:51
edm::ParameterSetDescription::addOptionalNode
ParameterDescriptionNode * addOptionalNode(ParameterDescriptionNode const &node, bool writeToCfi)
Definition: ParameterSetDescription.cc:50
MonitorElementData::Kind::TH2F
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
ecaldqm::binning::kProjPhi
Definition: MESetBinningUtils.h:48
contentValuesCheck.ss
ss
Definition: contentValuesCheck.py:33
ecaldqm::binning::getNObjects
unsigned getNObjects(ObjectType)
Definition: MESetBinningUtils.cc:512
ecaldqm::binning::kCrystal
Definition: MESetBinningUtils.h:41
EBDetId::tower
EcalTrigTowerDetId tower() const
get the HCAL/trigger iphi of this crystal
Definition: EBDetId.h:57
ecaldqm::binning::nEESMYRed
Definition: MESetBinningUtils.h:65
ecaldqm::binning::kEcal3P
Definition: MESetBinningUtils.h:33
ecaldqm::kEBTCCHigh
Definition: EcalDQMCommonUtils.h:112
EcalScDetId
Definition: EcalScDetId.h:24
ecaldqm::binning::nEESMY
Definition: MESetBinningUtils.h:64
ecaldqm::kEEp02
Definition: EcalDQMCommonUtils.h:76
LaserClient_cfi.nbins
nbins
Definition: LaserClient_cfi.py:51
ecaldqm::kEEm03
Definition: EcalDQMCommonUtils.h:32
ecaldqm::kEBpHigh
Definition: EcalDQMCommonUtils.h:88
ecaldqm::binning::nEESMX
Definition: MESetBinningUtils.h:61
ecaldqm::binning::findBinSuperCrystal_
int findBinSuperCrystal_(ObjectType, DetId const &, int=-1)
Definition: MESetBinningUtils2.cc:599
ecaldqm::kEEmHigh
Definition: EcalDQMCommonUtils.h:82
ecaldqm::memDCCId
unsigned memDCCId(unsigned)
Definition: EcalDQMCommonUtils.cc:40
EcalElectronicsId
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
Definition: EcalElectronicsId.h:18
ecaldqm::kEEm08
Definition: EcalDQMCommonUtils.h:28
ecaldqm::nEEDCC
Definition: EcalDQMCommonUtils.h:94
ecaldqm::kEEp01
Definition: EcalDQMCommonUtils.h:75
EEDetId
Definition: EEDetId.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalEndcap
Definition: EcalSubdetector.h:10
ecaldqm::binning::getBinningSM_
AxisSpecs getBinningSM_(BinningType, bool, unsigned, int)
Definition: MESetBinningUtils2.cc:225
PixelPluginsPhase0_cfi.isBarrel
isBarrel
Definition: PixelPluginsPhase0_cfi.py:17
edm::ParameterSetDescription::addUntracked
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:100
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
ecaldqm::nEEDCCMEM
Definition: EcalDQMCommonUtils.h:96
ecaldqm::binning::getBinningSMMEM_
AxisSpecs getBinningSMMEM_(BinningType, bool, unsigned, int)
Definition: MESetBinningUtils2.cc:306
ecaldqm::binning::kEBSM
Definition: MESetBinningUtils.h:23
ecaldqm::binning::kEESM
Definition: MESetBinningUtils.h:24
ecaldqm::isEcalScDetId
bool isEcalScDetId(DetId const &)
Definition: EcalDQMCommonUtils.cc:266
ecaldqm::binning::getBinningEB_
AxisSpecs getBinningEB_(BinningType, bool, int)
Definition: MESetBinningUtils2.cc:89
ecaldqm::nTTOuter
Definition: EcalDQMCommonUtils.h:98
ecaldqm::kEEp05
Definition: EcalDQMCommonUtils.h:79
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
ecaldqm::binning::findPlotIndex
unsigned findPlotIndex(ObjectType, DetId const &)
Definition: MESetBinningUtils.cc:299
ecaldqm::kEEmTCCHigh
Definition: EcalDQMCommonUtils.h:108
ecaldqm::kEBmLow
Definition: EcalDQMCommonUtils.h:85
EcalElectronicsId::rawId
uint32_t rawId() const
Definition: EcalElectronicsId.h:28
ecaldqm::kEEm05
Definition: EcalDQMCommonUtils.h:34
ecaldqm::nTTInner
Definition: EcalDQMCommonUtils.h:99
cms::cuda::for
for(int i=first, nt=offsets[nh];i< nt;i+=gridDim.x *blockDim.x)
Definition: HistoContainer.h:27
EcalTrigTowerDetId::ieta
int ieta() const
get the tower ieta
Definition: EcalTrigTowerDetId.h:44
ecaldqm::binning::nEESMXExt
Definition: MESetBinningUtils.h:63
ecaldqm::binning::kUser
Definition: MESetBinningUtils.h:50
newFWLiteAna.bin
bin
Definition: newFWLiteAna.py:161
ecaldqm::kEEp04
Definition: EcalDQMCommonUtils.h:78
ecaldqm::binning::nEESMXRed
Definition: MESetBinningUtils.h:62
ecaldqm::binning::kPseudoStrip
Definition: MESetBinningUtils.h:44
ecaldqm::towerId
unsigned towerId(DetId const &)
Definition: EcalDQMCommonUtils.cc:79
ecaldqm::binning::kMEM
Definition: MESetBinningUtils.h:29
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
EcalTriggerTower
Definition: EcalSubdetector.h:10
MonitorElementData::Kind::TPROFILE2D
EcalElectronicsMapping::dccConstituents
std::vector< DetId > dccConstituents(int dccId) const
Get the constituent detids for this dccId.
Definition: EcalElectronicsMapping.cc:561
MonitorElementData::Kind::INVALID
ecaldqm::binning::nObjType
Definition: MESetBinningUtils.h:37
ecaldqm::binning::nEBEtaBins
Definition: MESetBinningUtils.h:67
ecaldqm::kEEpLow
Definition: EcalDQMCommonUtils.h:83
Exception
Definition: hltDiff.cc:246
ecaldqm::binning::kDCC
Definition: MESetBinningUtils.h:46
ecaldqm::binning::nEEEtaBins
Definition: MESetBinningUtils.h:68
ecaldqm::binning::nBinType
Definition: MESetBinningUtils.h:53
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
ecaldqm::smName
std::string smName(unsigned)
Definition: EcalDQMCommonUtils.cc:289
ecaldqm::binning::kEcal
Definition: MESetBinningUtils.h:28
ecaldqm::binning::getBinningMEM_
AxisSpecs getBinningMEM_(BinningType, bool, int, int)
Definition: MESetBinningUtils2.cc:403
patCandidatesForDimuonsSequences_cff.matches
matches
Definition: patCandidatesForDimuonsSequences_cff.py:131
EEDetId::validDetId
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
Definition: EEDetId.h:248
ecaldqm::kEEpTCCLow
Definition: EcalDQMCommonUtils.h:109
ecaldqm::nDCC
Definition: EcalDQMCommonUtils.h:92
Pi
const double Pi
Definition: CosmicMuonParameters.h:18
ecaldqm::binning::kEBSMMEM
Definition: MESetBinningUtils.h:26
ecaldqm::binning::kTrend
Definition: MESetBinningUtils.h:52
ecaldqm::binning::kMEM2P
Definition: MESetBinningUtils.h:35
ecaldqm::binning::findBinTriggerTower_
int findBinTriggerTower_(ObjectType, DetId const &)
Definition: MESetBinningUtils2.cc:539
ecaldqm::kEEp03
Definition: EcalDQMCommonUtils.h:77
ecaldqm::binning::kEEMEM
Definition: MESetBinningUtils.h:31
ecaldqm::binning::nPhiBins
Definition: MESetBinningUtils.h:69
ecaldqm::binning::ylow_
int ylow_(int)
Definition: MESetBinningUtils2.cc:52
SurfaceOrientation::outer
Definition: Surface.h:19
ecaldqm::kEEp06
Definition: EcalDQMCommonUtils.h:80
ecaldqm::binning::getBinningEE_
AxisSpecs getBinningEE_(BinningType, bool, int, int)
Definition: MESetBinningUtils2.cc:154
ecaldqm::getElectronicsMap
const EcalElectronicsMapping * getElectronicsMap()
Definition: EcalDQMCommonUtils.cc:438
hltrates_dqm_sourceclient-live_cfg.offset
offset
Definition: hltrates_dqm_sourceclient-live_cfg.py:82
ecaldqm::binning::kSM
Definition: MESetBinningUtils.h:22
ecaldqm::kEBpLow
Definition: EcalDQMCommonUtils.h:87
ecaldqm::binning::kSMMEM
Definition: MESetBinningUtils.h:25
ecaldqm::binning::kTriggerTower
Definition: MESetBinningUtils.h:42
ecaldqm::nDCCMEM
Definition: EcalDQMCommonUtils.h:95
ecaldqm::kEEm02
Definition: EcalDQMCommonUtils.h:31
ecaldqm::kEEm06
Definition: EcalDQMCommonUtils.h:35
ecaldqm::binning::kEEm
Definition: MESetBinningUtils.h:20
ecaldqm::binning::kTCC
Definition: MESetBinningUtils.h:45
MonitorElementData::Kind::TPROFILE
edm::ParameterDescription
Definition: ParameterDescription.h:110
EcalTriggerElectronicsId::rawId
uint32_t rawId() const
Definition: EcalTriggerElectronicsId.h:28
ecaldqm::binning::findBinCrystal_
int findBinCrystal_(ObjectType, DetId const &, int=-1)
Definition: MESetBinningUtils2.cc:429
ecaldqm::binning::kRCT
Definition: MESetBinningUtils.h:49
MonitorElementData::Kind::REAL
ecaldqm::binning::kEESMMEM
Definition: MESetBinningUtils.h:27
ecaldqm::binning::xlow_
int xlow_(int)
Definition: MESetBinningUtils2.cc:13
ecaldqm::binning::nPresetBinnings
Definition: MESetBinningUtils.h:57
ecaldqm::binning::kChannel
Definition: MESetBinningUtils.h:36
ecaldqm::kEEp08
Definition: EcalDQMCommonUtils.h:73
ecaldqm::dccId
unsigned dccId(DetId const &)
Definition: EcalDQMCommonUtils.cc:16