#include <CastorText2DetIdConverter.h>
|
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) |
|
Converts any flavour of HcalDetId to/from ascii strings
Definition at line 12 of file CastorText2DetIdConverter.h.
◆ CastorText2DetIdConverter() [1/2]
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 26 of file CastorText2DetIdConverter.cc.
30 if (!
init(fFlavor, fField1, fField2, fField3)) {
31 std::cerr <<
"CastorText2DetIdConverter::CastorText2DetIdConverter-> Can not initiate detId from items: " << fFlavor
32 <<
'/' << fField1 <<
'/' << fField2 <<
'/' << fField3 << std::endl;
34 <<
" Can not initiate detId from items: " << fFlavor <<
'/' << fField1 <<
'/' << fField2 <<
'/' << fField3
References beam_dqm_sourceclient-live_cfg::cerr, Exception, and init().
◆ CastorText2DetIdConverter() [2/2]
CastorText2DetIdConverter::CastorText2DetIdConverter |
( |
DetId |
fId | ) |
|
◆ getField()
int CastorText2DetIdConverter::getField |
( |
int |
i | ) |
const |
◆ getField1()
const std::string& CastorText2DetIdConverter::getField1 |
( |
| ) |
const |
|
inline |
◆ getField2()
const std::string& CastorText2DetIdConverter::getField2 |
( |
| ) |
const |
|
inline |
◆ getField3()
const std::string& CastorText2DetIdConverter::getField3 |
( |
| ) |
const |
|
inline |
◆ getFlavor()
const std::string& CastorText2DetIdConverter::getFlavor |
( |
| ) |
const |
|
inline |
◆ getId()
DetId CastorText2DetIdConverter::getId |
( |
| ) |
const |
|
inline |
◆ init() [1/2]
bool CastorText2DetIdConverter::init |
( |
const std::string & |
fFlavor, |
|
|
const std::string & |
fField1, |
|
|
const std::string & |
fField2, |
|
|
const std::string & |
fField3 |
|
) |
| |
|
private |
Definition at line 78 of file CastorText2DetIdConverter.cc.
95 std::cerr <<
"CastorText2DetIdConverter::init-> Unknown DetId flavor: " <<
flavorName << std::endl;
References beam_dqm_sourceclient-live_cfg::cerr, HcalCastorDetId::EM, field1, field2, field3, flavorName, getField(), HcalCastorDetId::HAD, mId, mps_fire::result, trackingPlots::section, digitizers_cfi::strip, and HcalCastorDetId::Unknown.
Referenced by CastorText2DetIdConverter().
◆ init() [2/2]
bool CastorText2DetIdConverter::init |
( |
DetId |
fId | ) |
|
|
private |
Definition at line 43 of file CastorText2DetIdConverter.cc.
52 else if (genId.isHcalCastorDetId()) {
54 switch (castorId.section()) {
71 std::cerr <<
"CastorText2DetIdConverter::init-> Unknown detId: " << std::hex << std::showbase <<
mId.
rawId()
References beam_dqm_sourceclient-live_cfg::cerr, HcalCastorDetId::EM, flavorName, HcalCastorDetId::HAD, HcalGenericDetId::isHcalCastorDetId(), mId, HcalCastorDetId::module(), DetId::rawId(), mps_fire::result, HcalCastorDetId::section(), HcalCastorDetId::sector(), setField(), HcalDetId::Undefined, and HcalCastorDetId::zside().
◆ isHcalCastorDetId()
bool CastorText2DetIdConverter::isHcalCastorDetId |
( |
| ) |
const |
◆ setField()
void CastorText2DetIdConverter::setField |
( |
int |
i, |
|
|
int |
fValue |
|
) |
| |
|
private |
◆ toString()
std::string CastorText2DetIdConverter::toString |
( |
| ) |
const |
◆ field1
std::string CastorText2DetIdConverter::field1 |
|
private |
◆ field2
std::string CastorText2DetIdConverter::field2 |
|
private |
◆ field3
std::string CastorText2DetIdConverter::field3 |
|
private |
◆ flavorName
std::string CastorText2DetIdConverter::flavorName |
|
private |
◆ mId
DetId CastorText2DetIdConverter::mId |
|
private |
int getField(int i) const
void setField(int i, int fValue)
bool init(const std::string &fFlavor, const std::string &fField1, const std::string &fField2, const std::string &fField3)