#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 22 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 42 of file HcalText2DetIdConverter.cc.
References dtNoiseDBValidation_cfg::cerr, edm::hlt::Exception, and init().
HcalText2DetIdConverter::HcalText2DetIdConverter | ( | DetId | fId | ) |
Definition at line 53 of file HcalText2DetIdConverter.cc.
References init().
int HcalText2DetIdConverter::getField | ( | int | i | ) | const |
Definition at line 198 of file HcalText2DetIdConverter.cc.
References dtNoiseDBValidation_cfg::cerr, field1, field2, field3, isHcalCalibDetId(), and query::result.
Referenced by init(), and XMLDocument::makeChId().
|
inline |
|
inline |
Definition at line 37 of file HcalText2DetIdConverter.h.
References field2.
Referenced by XMLDocument::makeChId().
|
inline |
Definition at line 38 of file HcalText2DetIdConverter.h.
References field3.
Referenced by XMLDocument::makeChId().
|
inline |
Definition at line 35 of file HcalText2DetIdConverter.h.
References flavorName.
Referenced by HcalDQMDbInterface::createChannel(), and XMLDocument::makeChId().
|
inline |
|
private |
Definition at line 144 of file HcalText2DetIdConverter.cc.
References dtNoiseDBValidation_cfg::cerr, HcalZDCDetId::EM, field1, field2, field3, flavorName, getField(), HcalZDCDetId::HAD, HcalBarrel, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalZDCDetId::LUM, mId, query::result, sd, strip(), HcalDetId::Undefined, and HcalZDCDetId::Unknown.
Referenced by HcalText2DetIdConverter().
|
private |
Definition at line 73 of file HcalText2DetIdConverter.cc.
References HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::cboxChannel(), dtNoiseDBValidation_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, HcalDetId::ieta(), HcalTrigTowerDetId::ieta(), HcalCalibDetId::ieta(), HcalDetId::iphi(), HcalTrigTowerDetId::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, and HcalZDCDetId::zside().
bool HcalText2DetIdConverter::isHcalCalibDetId | ( | ) | const |
Definition at line 61 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalCalibDetId(), and mId.
Referenced by getField().
bool HcalText2DetIdConverter::isHcalDetId | ( | ) | const |
Definition at line 57 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalDetId(), and mId.
bool HcalText2DetIdConverter::isHcalTrigTowerDetId | ( | ) | const |
Definition at line 65 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalTrigTowerDetId(), and mId.
bool HcalText2DetIdConverter::isHcalZDCDetId | ( | ) | const |
Definition at line 69 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalZDCDetId(), and mId.
|
private |
std::string HcalText2DetIdConverter::toString | ( | ) | const |
Definition at line 224 of file HcalText2DetIdConverter.cc.
References field1, field2, field3, and flavorName.
Referenced by HcalDbXml::dumpObject().
|
private |
Definition at line 49 of file HcalText2DetIdConverter.h.
Referenced by getField(), getField1(), init(), setField(), and toString().
|
private |
Definition at line 50 of file HcalText2DetIdConverter.h.
Referenced by getField(), getField2(), init(), setField(), and toString().
|
private |
Definition at line 51 of file HcalText2DetIdConverter.h.
Referenced by getField(), getField3(), init(), setField(), and toString().
|
private |
Definition at line 48 of file HcalText2DetIdConverter.h.
Referenced by getFlavor(), init(), and toString().
|
private |
Definition at line 52 of file HcalText2DetIdConverter.h.
Referenced by getId(), init(), isHcalCalibDetId(), isHcalDetId(), isHcalTrigTowerDetId(), and isHcalZDCDetId().