#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 MessageLogger_cfi::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 264 of file HcalText2DetIdConverter.cc.
References MessageLogger_cfi::cerr, field1, field2, field3, isHcalCalibDetId(), and mps_fire::result.
Referenced by getId(), init(), and XMLDocument::makeChId().
|
inline |
Definition at line 35 of file HcalText2DetIdConverter.h.
References field1.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >(), and splitStringToDoubleByComma().
|
inline |
Definition at line 36 of file HcalText2DetIdConverter.h.
References field2.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >(), XMLDocument::makeChId(), and splitStringToDoubleByComma().
|
inline |
Definition at line 37 of file HcalText2DetIdConverter.h.
References field3.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >(), XMLDocument::makeChId(), and splitStringToDoubleByComma().
|
inline |
Definition at line 34 of file HcalText2DetIdConverter.h.
References flavorName.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >(), XMLDocument::makeChId(), and splitStringToDoubleByComma().
|
inline |
Definition at line 38 of file HcalText2DetIdConverter.h.
References getField(), mps_fire::i, init(), mId, setField(), AlCaHLTBitMon_QueryRunRegistry::string, and toString().
Referenced by HcalDbASCIIIO::createObject< HcalDcsMap >(), HcalDbASCIIIO::createObject< HcalElectronicsMap >(), and splitStringToDoubleByComma().
|
private |
Definition at line 172 of file HcalText2DetIdConverter.cc.
References HcalCalibDetId::CastorRadFacility, MessageLogger_cfi::cerr, HcalZDCDetId::EM, field1, field2, field3, flavorName, getField(), HcalZDCDetId::HAD, HcalBarrel, HcalEndcap, HcalForward, HcalOther, HcalOuter, HcalCalibDetId::LASERMON, HcalZDCDetId::LUM, mId, mps_fire::result, submit::rm, HcalZDCDetId::RPD, sd, trackingPlots::section, digitizers_cfi::strip, HcalCalibDetId::uMNqie, HcalDetId::Undefined, and HcalZDCDetId::Unknown.
Referenced by getId(), and HcalText2DetIdConverter().
|
private |
Definition at line 72 of file HcalText2DetIdConverter.cc.
References HcalCalibDetId::calibFlavor(), HcalCalibDetId::CalibrationBox, HcalCalibDetId::CastorRadFacility, HcalCalibDetId::cboxChannel(), MessageLogger_cfi::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(), HcalCalibDetId::ieta(), HcalDetId::ieta(), HcalTrigTowerDetId::iphi(), HcalCalibDetId::iphi(), HcalDetId::iphi(), HcalGenericDetId::isHcalCalibDetId(), HcalGenericDetId::isHcalDetId(), HcalGenericDetId::isHcalTrigTowerDetId(), HcalGenericDetId::isHcalZDCDetId(), HcalCalibDetId::LASERMON, 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 HcalDbASCIIIO::createObject< HcalElectronicsMap >(), and getField().
bool HcalText2DetIdConverter::isHcalDetId | ( | ) | const |
Definition at line 56 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalDetId(), and mId.
Referenced by HcalDbASCIIIO::createObject< HcalDcsMap >(), and HcalDbASCIIIO::createObject< HcalElectronicsMap >().
bool HcalText2DetIdConverter::isHcalTrigTowerDetId | ( | ) | const |
Definition at line 64 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalTrigTowerDetId(), and mId.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >().
bool HcalText2DetIdConverter::isHcalZDCDetId | ( | ) | const |
Definition at line 68 of file HcalText2DetIdConverter.cc.
References HcalGenericDetId::isHcalZDCDetId(), and mId.
Referenced by HcalDbASCIIIO::createObject< HcalElectronicsMap >().
|
private |
Definition at line 282 of file HcalText2DetIdConverter.cc.
References edmScanValgrind::buffer, field1, field2, and field3.
Referenced by getId(), and init().
std::string HcalText2DetIdConverter::toString | ( | ) | const |
Definition at line 290 of file HcalText2DetIdConverter.cc.
References field1, field2, field3, and flavorName.
Referenced by HcalDbXml::dumpObject(), and getId().
|
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().