#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 MessageLogger_cfi::cerr, 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 MessageLogger_cfi::cerr, field1, field2, field3, and mps_fire::result.
Referenced by getId(), and init().
|
inline |
Definition at line 24 of file CastorText2DetIdConverter.h.
References field1.
Referenced by HcalDbASCIIIO::dumpId(), and CastorDbASCIIIO::dumpObject().
|
inline |
Definition at line 25 of file CastorText2DetIdConverter.h.
References field2.
Referenced by HcalDbASCIIIO::dumpId(), and CastorDbASCIIIO::dumpObject().
|
inline |
Definition at line 26 of file CastorText2DetIdConverter.h.
References field3.
Referenced by HcalDbASCIIIO::dumpId(), and CastorDbASCIIIO::dumpObject().
|
inline |
Definition at line 23 of file CastorText2DetIdConverter.h.
References flavorName.
Referenced by HcalDbASCIIIO::dumpId(), and CastorDbASCIIIO::dumpObject().
|
inline |
Definition at line 27 of file CastorText2DetIdConverter.h.
References getField(), mps_fire::i, init(), mId, setField(), AlCaHLTBitMon_QueryRunRegistry::string, and toString().
Referenced by CastorDbASCIIIO::dumpObject(), HcalDbASCIIIO::getId(), and CastorDbASCIIIO::getObject().
|
private |
Definition at line 74 of file CastorText2DetIdConverter.cc.
References MessageLogger_cfi::cerr, HcalCastorDetId::EM, field1, field2, field3, flavorName, getField(), HcalCastorDetId::HAD, mId, mps_fire::result, vertexPlots::section, digi_MixPreMix_cfi::strip, and HcalCastorDetId::Unknown.
Referenced by CastorText2DetIdConverter(), and getId().
|
private |
Definition at line 44 of file CastorText2DetIdConverter.cc.
References MessageLogger_cfi::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 40 of file CastorText2DetIdConverter.cc.
References HcalGenericDetId::isHcalCastorDetId(), and mId.
Referenced by CastorDbASCIIIO::getObject().
|
private |
std::string CastorText2DetIdConverter::toString | ( | ) | const |
Definition at line 117 of file CastorText2DetIdConverter.cc.
References field1, field2, field3, and flavorName.
Referenced by CastorDbXml::dumpObject(), and getId().
|
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().