29 using namespace hcaldqm::constants;
126 _logger.set(
"Mapper",
debug);
128 virtual unsigned int index() {
return 0;}
129 virtual unsigned int index(
double) {
return 0;}
144 else if (_type==
fiphi)
146 else if (_type==
fieta)
163 i.
i2 = did.
ieta()>0 ? 1 : 0;
169 i.
i3 = did.
ieta()>0 ? 1 : 0;
174 i.
i2 = did.
ieta()>0 ? 1 : 0;
229 _logger.debug(_type);
239 sprintf(name,
"iphi%d",
248 sprintf(name,
"HFPiphi%d",
252 sprintf(name,
"HFMiphi%d",
265 sprintf(name,
"ieta%d", ieta);
272 sprintf(name,
"Depth%d",
id+1);
280 sprintf(name,
"HFiphi%d",
284 sprintf(name,
"HOiphi%d",
288 sprintf(name,
"HEiphi%d",
292 sprintf(name,
"HBiphi%d",
305 if (
id>=(2*(totalHB+totalHE+totalHO)+totalHF))
306 sprintf(name,
"HFPieta%d",
307 (
id-2*totalHB-2*totalHE-2*totalHO-totalHF) +
309 else if (
id>=(2*totalHB + 2*totalHE + 2*totalHO))
310 sprintf(name,
"HFMieta%d",
311 -((
id-2*totalHB-2*totalHE-2*totalHO) +
313 else if (
id>=(2*totalHB+2*totalHE+totalHO))
314 sprintf(name,
"HOPieta%d",
315 (
id-2*totalHB-2*totalHE-totalHO +
317 else if (
id>=(2*totalHB+2*totalHE))
318 sprintf(name,
"HOMieta%d",
319 -(
id-2*totalHB-2*totalHE + IETA_MIN_HO));
320 else if (
id>=(2*totalHB+totalHE))
321 sprintf(name,
"HEPieta%d",
322 (
id-2*totalHB-totalHE + IETA_MIN_HE));
323 else if (
id>=(2*totalHB))
324 sprintf(name,
"HEMieta%d",
325 -(
id-2*totalHB+IETA_MIN_HE));
326 else if (
id>=totalHB)
327 sprintf(name,
"HBPieta%d",
328 id-totalHB+IETA_MIN_HB);
330 sprintf(name,
"HBMieta%d",
340 sprintf(name,
"CRATE%d",
344 sprintf(name,
"CRATE%d",
354 sprintf(name,
"FED%d",
357 sprintf(name,
"FED%d",
370 sprintf(name,
"CRATE%dSLOT%d",
378 sprintf(name,
"CRATE%dSLOT%d",
382 sprintf(name,
"CRATE%dSLOT%d",
398 sprintf(name,
"HFiphi%d",
402 sprintf(name,
"HBHEiphi%d",
413 if (
id>=(2*totalHBHE+totalHF))
414 sprintf(name,
"HFPieta%d",
415 id - 2*totalHBHE-totalHF+IETA_MIN_HF);
416 else if (
id>=2*totalHBHE)
417 sprintf(name,
"HFMieta%d",
418 -(
id - 2*totalHBHE + IETA_MIN_HF));
419 else if (
id>=totalHBHE)
420 sprintf(name,
"HBHEPieta%d",
421 id-totalHBHE+IETA_MIN);
423 sprintf(name,
"HBHEMieta%d",
438 sprintf(name,
"HFPiphi%d",
443 sprintf(name,
"HFMiphi%d",
448 sprintf(name,
"HOPiphi%d",
452 sprintf(name,
"HOMiphi%d",
456 sprintf(name,
"HEPiphi%d",
460 sprintf(name,
"HEMiphi%d",
464 sprintf(name,
"HBPiphi%d",
467 sprintf(name,
"HBMiphi%d",
482 sprintf(name,
"HFPiphi%d",
486 sprintf(name,
"HFMiphi%d",
490 sprintf(name,
"HBHEPiphi%d",
493 sprintf(name,
"HBHEMiphi%d",
index_generator const vindex[nMapperType]
HcalSubdetector subdet() const
get the subdetector
std::string const TPSUBDETPM_NAME[2 *TPSUBDET_NUM]
unsigned int generate_fCrate(Input const &)
virtual unsigned int index()
unsigned int generate_fieta(Input const &)
unsigned int generate_fCrate_Slot(Input const &)
virtual std::string buildName(unsigned id)
int ieta() const
get the tower ieta
virtual unsigned int index(HcalDetId const &did)
int crateId() const
get the readout VME crate number
unsigned int(* index_generator)(Input const &)
unsigned int generate_fTPSubDet(Input const &)
int depth() const
get the tower depth
std::string const SUBDET_NAME[SUBDET_NUM]
unsigned int generate_fSubDetPM_iphi(Input const &)
unsigned int generate_fiphi(Input const &)
unsigned int generate_fdepth(Input const &)
unsigned int generate_fSubDet(Input const &)
int ieta() const
get the cell ieta
std::string const SUBDETPM_NAME[2 *SUBDET_NUM]
virtual unsigned index(HcalTrigTowerDetId const &tid)
unsigned int generate_fTPSubDet_ieta(Input const &)
int const IETA_MAX_TPHBHE
int iphi() const
get the cell iphi
virtual unsigned int index(HcalElectronicsId const &eid)
int const CRATE_VME_DELTA
unsigned int generate_fFED_Slot(Input const &)
unsigned int generate_fHBHEPartition(Input const &)
std::string const TPSUBDET_NAME[TPSUBDET_NUM]
int slot() const
get the htr or uHTR slot
unsigned int generate_fTPSubDet_iphi(Input const &)
unsigned int generate_fSubDet_ieta(Input const &)
virtual unsigned int index(int x)
unsigned int generate_fSubDetPM(Input const &)
unsigned int generate_fSubDet_iphi(Input const &)
unsigned int generate_fFED(Input const &)
int const CRATE_uTCA_DELTA
virtual unsigned int index(double)
int const IPHI_DELTA_TPHF
Readout chain identification for Hcal.
unsigned int generate_fHFPM_iphi(Input const &)
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi
unsigned int generate_fTPSubDetPM(Input const &)
unsigned int generate_fTPSubDetPM_iphi(Input const &)
virtual void initialize(MapperType type, int debug=0)