#include <HcalText2DetIdConverter.h>
Public Member Functions | |
int | getField (int i) const |
const std::string & | getField1 () const |
const std::string & | getField2 () const |
const std::string & | getField3 () const |
const std::string & | getFlavor () const |
DetId | getId () const |
HcalText2DetIdConverter (const std::string &fFlavor="NA", const std::string &fField1="0", const std::string &fField2="0", const std::string &fField3="0") | |
HcalText2DetIdConverter (DetId fId) | |
bool | isHcalCalibDetId () const |
bool | isHcalDetId () const |
bool | isHcalTrigTowerDetId () const |
bool | isHcalZDCDetId () const |
std::string | toString () const |
Private Member Functions | |
bool | init (const std::string &fFlavor, const std::string &fField1, const std::string &fField2, const std::string &fField3) |
bool | init (DetId fId) |
void | setField (int i, int fValue) |
Private Attributes | |
std::string | field1 |
std::string | field2 |
std::string | field3 |
std::string | flavorName |
DetId | mId |
For Calibration DetIds:
Flavor = "CALIB_[HB|HE|HO|HF]" or "HOX"
fField1 is ieta (-2:2 for CALIB) fField2 is iphi fField3 is ctype (CALIB only)
Definition at line 21 of file HcalText2DetIdConverter.h.
HcalText2DetIdConverter::HcalText2DetIdConverter | ( | const std::string & | fFlavor = "NA" , |
const std::string & | fField1 = "0" , |
||
const std::string & | fField2 = "0" , |
||
const std::string & | fField3 = "0" |
||
) |
Definition at line 41 of file HcalText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, Exception, and init().
HcalText2DetIdConverter::HcalText2DetIdConverter | ( | DetId | fId | ) |
Definition at line 52 of file HcalText2DetIdConverter.cc.
References init().
int HcalText2DetIdConverter::getField | ( | int | i | ) | const |
Definition at line 253 of file HcalText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, field1, field2, field3, isHcalCalibDetId(), and mps_fire::result.
Referenced by init(), and XMLDocument::makeChId().
|
inline |
|
inline |
Definition at line 36 of file HcalText2DetIdConverter.h.
References field2.
Referenced by XMLDocument::makeChId().
|
inline |
Definition at line 37 of file HcalText2DetIdConverter.h.
References field3.
Referenced by XMLDocument::makeChId().
|
inline |
Definition at line 34 of file HcalText2DetIdConverter.h.
References flavorName.
Referenced by XMLDocument::makeChId().
|
inline |
|
private |
Definition at line 167 of file HcalText2DetIdConverter.cc.
References HcalCalibDetId::CastorRadFacility, ecal_dqm_sourceclient-live_cfg::cerr, HcalZDCDetId::EM, field1, field2, field3, flavorName, getField(), HcalZDCDetId::HAD, HcalBarrel, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalZDCDetId::LUM, mId, mps_fire::result, submit::rm, HcalZDCDetId::RPD, sd, vertexPlots::section, HcalCalibDetId::uMNqie, HcalDetId::Undefined, and HcalZDCDetId::Unknown.
Referenced by HcalText2DetIdConverter().
|
private |
Definition at line 72 of file HcalText2DetIdConverter.cc.
References HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::CastorRadFacility, HcalCalibDetId::cboxChannel(), ecal_dqm_sourceclient-live_cfg::cerr, HcalZDCDetId::channel(), HcalCalibDetId::channel(), HcalTrigTowerDetId::depth(), HcalDetId::depth(), HcalZDCDetId::EM, HcalCalibDetId::fiber(), flavorName, HcalGenericDetId::genericSubdet(), HcalZDCDetId::HAD, HcalBarrel, HcalEndcap, HcalForward, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HcalOuter, HcalCalibDetId::hcalSubdet(), HcalCalibDetId::HOCrosstalk, HcalTrigTowerDetId::ieta(), HcalDetId::ieta(), HcalCalibDetId::ieta(), HcalTrigTowerDetId::iphi(), HcalDetId::iphi(), HcalCalibDetId::iphi(), HcalGenericDetId::isHcalCalibDetId(), HcalGenericDetId::isHcalDetId(), HcalGenericDetId::isHcalTrigTowerDetId(), HcalGenericDetId::isHcalZDCDetId(), HcalZDCDetId::LUM, mId, DetId::rawId(), mps_fire::result, HcalCalibDetId::rm(), HcalZDCDetId::RPD, HcalZDCDetId::section(), setField(), HcalCalibDetId::uMNqie, HcalTrigTowerDetId::Undefined, HcalDetId::Undefined, HcalTrigTowerDetId::version(), and HcalZDCDetId::zside().
bool HcalText2DetIdConverter::isHcalCalibDetId | ( | ) | const |
Definition at line 60 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalCalibDetId(), and mId.
Referenced by getField().
bool HcalText2DetIdConverter::isHcalDetId | ( | ) | const |
Definition at line 56 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalDetId(), and mId.
bool HcalText2DetIdConverter::isHcalTrigTowerDetId | ( | ) | const |
Definition at line 64 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalTrigTowerDetId(), and mId.
bool HcalText2DetIdConverter::isHcalZDCDetId | ( | ) | const |
Definition at line 68 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalZDCDetId(), and mId.
|
private |
std::string HcalText2DetIdConverter::toString | ( | ) | const |
Definition at line 279 of file HcalText2DetIdConverter.cc.
References field1, field2, field3, and flavorName.
Referenced by HcalDbXml::dumpObject().
|
private |
Definition at line 48 of file HcalText2DetIdConverter.h.
Referenced by getField(), getField1(), init(), setField(), and toString().
|
private |
Definition at line 49 of file HcalText2DetIdConverter.h.
Referenced by getField(), getField2(), init(), setField(), and toString().
|
private |
Definition at line 50 of file HcalText2DetIdConverter.h.
Referenced by getField(), getField3(), init(), setField(), and toString().
|
private |
Definition at line 47 of file HcalText2DetIdConverter.h.
Referenced by getFlavor(), init(), and toString().
|
private |
Definition at line 51 of file HcalText2DetIdConverter.h.
Referenced by getId(), init(), isHcalCalibDetId(), isHcalDetId(), isHcalTrigTowerDetId(), and isHcalZDCDetId().