#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 26 of file CastorText2DetIdConverter.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, Exception, and init().
CastorText2DetIdConverter::CastorText2DetIdConverter | ( | DetId | fId | ) |
Definition at line 39 of file CastorText2DetIdConverter.cc.
References init().
int CastorText2DetIdConverter::getField | ( | int | i | ) | const |
Definition at line 101 of file CastorText2DetIdConverter.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, field1, field2, field3, and mps_fire::result.
Referenced by init().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 24 of file CastorText2DetIdConverter.h.
References flavorName.
|
inline |
|
private |
Definition at line 78 of file CastorText2DetIdConverter.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::cerr, HcalCastorDetId::EM, field1, field2, field3, flavorName, getField(), HcalCastorDetId::HAD, mId, mps_fire::result, vertexPlots::section, digitizers_cfi::strip, and HcalCastorDetId::Unknown.
Referenced by CastorText2DetIdConverter().
|
private |
Definition at line 43 of file CastorText2DetIdConverter.cc.
References EcnaPython_AdcPeg12_S1_10_R170298_1_0_150_Dee0::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().
bool CastorText2DetIdConverter::isHcalCastorDetId | ( | ) | const |
Definition at line 41 of file CastorText2DetIdConverter.cc.
References HcalGenericDetId::isHcalCastorDetId(), and mId.
|
private |
Definition at line 115 of file CastorText2DetIdConverter.cc.
References edmScanValgrind::buffer, field1, field2, and field3.
Referenced by init().
std::string CastorText2DetIdConverter::toString | ( | ) | const |
Definition at line 126 of file CastorText2DetIdConverter.cc.
References field1, field2, field3, and flavorName.
Referenced by CastorDbXml::dumpObject().
|
private |
Definition at line 40 of file CastorText2DetIdConverter.h.
Referenced by getField(), getField1(), init(), setField(), and toString().
|
private |
Definition at line 41 of file CastorText2DetIdConverter.h.
Referenced by getField(), getField2(), init(), setField(), and toString().
|
private |
Definition at line 42 of file CastorText2DetIdConverter.h.
Referenced by getField(), getField3(), init(), setField(), and toString().
|
private |
Definition at line 39 of file CastorText2DetIdConverter.h.
Referenced by getFlavor(), init(), and toString().
|
private |
Definition at line 43 of file CastorText2DetIdConverter.h.
Referenced by getId(), init(), and isHcalCastorDetId().