#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 222 of file HcalText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, field1, field2, field3, isHcalCalibDetId(), and query::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 HcalDQMDbInterface::createChannel(), and XMLDocument::makeChId().
|
inline |
|
private |
Definition at line 151 of file HcalText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, HLT_25ns14e33_v1_cff::depth, HcalZDCDetId::EM, field1, field2, field3, flavorName, getField(), HcalZDCDetId::HAD, HcalBarrel, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalZDCDetId::LUM, mId, query::result, sd, HcalDetId::Undefined, HcalZDCDetId::Unknown, and relval_steps::version.
Referenced by HcalText2DetIdConverter().
|
private |
Definition at line 72 of file HcalText2DetIdConverter.cc.
References HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::cboxChannel(), ecal_dqm_sourceclient-live_cfg::cerr, HcalZDCDetId::channel(), HcalDetId::depth(), HcalZDCDetId::EM, 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(), query::result, HcalZDCDetId::section(), setField(), 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 248 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().