#include <CastorText2DetIdConverter.h>
Public Member Functions | |
CastorText2DetIdConverter (const std::string &fFlavor="NA", const std::string &fField1="0", const std::string &fField2="0", const std::string &fField3="0") | |
CastorText2DetIdConverter (DetId fId) | |
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 |
bool | isHcalCastorDetId () 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 |
Converts any flavour of HcalDetId to/from ascii strings
Definition at line 12 of file CastorText2DetIdConverter.h.
CastorText2DetIdConverter::CastorText2DetIdConverter | ( | const std::string & | fFlavor = "NA" , |
const std::string & | fField1 = "0" , |
||
const std::string & | fField2 = "0" , |
||
const std::string & | fField3 = "0" |
||
) |
Definition at line 25 of file CastorText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, edm::hlt::Exception, and init().
CastorText2DetIdConverter::CastorText2DetIdConverter | ( | DetId | fId | ) |
Definition at line 36 of file CastorText2DetIdConverter.cc.
References init().
int CastorText2DetIdConverter::getField | ( | int | i | ) | const |
Definition at line 95 of file CastorText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, field1, field2, field3, and query::result.
Referenced by init().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 23 of file CastorText2DetIdConverter.h.
References flavorName.
|
inline |
|
private |
Definition at line 74 of file CastorText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, HcalCastorDetId::EM, field1, field2, field3, flavorName, getField(), HcalCastorDetId::HAD, mId, query::result, and HcalCastorDetId::Unknown.
Referenced by CastorText2DetIdConverter().
|
private |
Definition at line 44 of file CastorText2DetIdConverter.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, HcalCastorDetId::EM, flavorName, HcalCastorDetId::HAD, HcalGenericDetId::isHcalCastorDetId(), mId, HcalCastorDetId::module(), DetId::rawId(), query::result, HcalCastorDetId::section(), HcalCastorDetId::sector(), setField(), HcalDetId::Undefined, and HcalCastorDetId::zside().
bool CastorText2DetIdConverter::isHcalCastorDetId | ( | ) | const |
Definition at line 40 of file CastorText2DetIdConverter.cc.
References HcalGenericDetId::isHcalCastorDetId(), and mId.
|
private |
std::string CastorText2DetIdConverter::toString | ( | ) | const |
Definition at line 117 of file CastorText2DetIdConverter.cc.
References field1, field2, field3, and flavorName.
Referenced by CastorDbXml::dumpObject().
|
private |
Definition at line 37 of file CastorText2DetIdConverter.h.
Referenced by getField(), getField1(), init(), setField(), and toString().
|
private |
Definition at line 38 of file CastorText2DetIdConverter.h.
Referenced by getField(), getField2(), init(), setField(), and toString().
|
private |
Definition at line 39 of file CastorText2DetIdConverter.h.
Referenced by getField(), getField3(), init(), setField(), and toString().
|
private |
Definition at line 36 of file CastorText2DetIdConverter.h.
Referenced by getFlavor(), init(), and toString().
|
private |
Definition at line 40 of file CastorText2DetIdConverter.h.
Referenced by getId(), init(), and isHcalCastorDetId().