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 
24  HcalText2DetIdConverter (const std::string& fFlavor = "NA", const std::string& fField1 = "0",
25  const std::string& fField2 = "0", const std::string& fField3 = "0");
26 
28 
29  bool isHcalDetId () const;
30  bool isHcalCalibDetId () const;
31  bool isHcalTrigTowerDetId () const;
32  bool isHcalZDCDetId () const;
33 
34  const std::string& getFlavor () const {return flavorName;}
35  const std::string& getField1 () const {return field1;}
36  const std::string& getField2 () const {return field2;}
37  const std::string& getField3 () const {return field3;}
38  DetId getId () const {return mId;}
39  int getField (int i) const;
40  std::string toString () const;
41 
42  private:
43  bool init (const std::string& fFlavor, const std::string& fField1,
44  const std::string& fField2, const std::string& fField3);
45  bool init (DetId fId);
46  void setField (int i, int fValue);
52 };
53 
54 #endif
const std::string & getField1() const
const std::string & getField3() const
void setField(int i, int fValue)
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:18
const std::string & getField2() const
const std::string & getFlavor() const