CMS 3D CMS Logo

HcalText2DetIdConverter.h
Go to the documentation of this file.
1 #ifndef HCALTEXT2DETIDCONVERTER_H
2 #define HCALTEXT2DETIDCONVERTER_H
3 
18 #include <string>
20 
22 public:
23  HcalText2DetIdConverter(const std::string& fFlavor = "NA",
24  const std::string& fField1 = "0",
25  const std::string& fField2 = "0",
26  const std::string& fField3 = "0");
27 
29 
30  bool isHcalDetId() const;
31  bool isHcalCalibDetId() const;
32  bool isHcalTrigTowerDetId() const;
33  bool isHcalZDCDetId() const;
34 
35  const std::string& getFlavor() const { return flavorName; }
36  const std::string& getField1() const { return field1; }
37  const std::string& getField2() const { return field2; }
38  const std::string& getField3() const { return field3; }
39  DetId getId() const { return mId; }
40  int getField(int i) const;
41  std::string toString() const;
42 
43 private:
44  bool init(const std::string& fFlavor,
45  const std::string& fField1,
46  const std::string& fField2,
47  const std::string& fField3);
48  bool init(DetId fId);
49  void setField(int i, int fValue);
55 };
56 
57 #endif
mps_fire.i
i
Definition: mps_fire.py:428
HcalText2DetIdConverter::field3
std::string field3
Definition: HcalText2DetIdConverter.h:53
HcalText2DetIdConverter::isHcalCalibDetId
bool isHcalCalibDetId() const
Definition: HcalText2DetIdConverter.cc:58
HcalText2DetIdConverter::mId
DetId mId
Definition: HcalText2DetIdConverter.h:54
HcalText2DetIdConverter::field1
std::string field1
Definition: HcalText2DetIdConverter.h:51
HcalText2DetIdConverter::field2
std::string field2
Definition: HcalText2DetIdConverter.h:52
DetId
Definition: DetId.h:17
HcalText2DetIdConverter::getField1
const std::string & getField1() const
Definition: HcalText2DetIdConverter.h:36
HcalText2DetIdConverter::HcalText2DetIdConverter
HcalText2DetIdConverter(const std::string &fFlavor="NA", const std::string &fField1="0", const std::string &fField2="0", const std::string &fField3="0")
Definition: HcalText2DetIdConverter.cc:41
HcalText2DetIdConverter::isHcalTrigTowerDetId
bool isHcalTrigTowerDetId() const
Definition: HcalText2DetIdConverter.cc:60
HcalText2DetIdConverter::setField
void setField(int i, int fValue)
Definition: HcalText2DetIdConverter.cc:297
HcalText2DetIdConverter::getField3
const std::string & getField3() const
Definition: HcalText2DetIdConverter.h:38
HcalText2DetIdConverter::flavorName
std::string flavorName
Definition: HcalText2DetIdConverter.h:50
HcalText2DetIdConverter::init
bool init(const std::string &fFlavor, const std::string &fField1, const std::string &fField2, const std::string &fField3)
Definition: HcalText2DetIdConverter.cc:187
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
HcalText2DetIdConverter::getField2
const std::string & getField2() const
Definition: HcalText2DetIdConverter.h:37
HcalText2DetIdConverter::getField
int getField(int i) const
Definition: HcalText2DetIdConverter.cc:278
HcalText2DetIdConverter::toString
std::string toString() const
Definition: HcalText2DetIdConverter.cc:308
DetId.h
HcalText2DetIdConverter::getFlavor
const std::string & getFlavor() const
Definition: HcalText2DetIdConverter.h:35
HcalText2DetIdConverter::isHcalZDCDetId
bool isHcalZDCDetId() const
Definition: HcalText2DetIdConverter.cc:62
HcalText2DetIdConverter
Definition: HcalText2DetIdConverter.h:21
HcalText2DetIdConverter::isHcalDetId
bool isHcalDetId() const
Definition: HcalText2DetIdConverter.cc:56
HcalText2DetIdConverter::getId
DetId getId() const
Definition: HcalText2DetIdConverter.h:39