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
const std::string & getFlavor() const
const std::string & getField1() const
void setField(int i, int fValue)
const std::string & getField3() const
HcalText2DetIdConverter(const std::string &fFlavor="NA", const std::string &fField1="0", const std::string &fField2="0", const std::string &fField3="0")
bool init(const std::string &fFlavor, const std::string &fField1, const std::string &fField2, const std::string &fField3)
Definition: DetId.h:17
const std::string & getField2() const