CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalText2DetIdConverter.h
Go to the documentation of this file.
1 #ifndef HCALTEXT2DETIDCONVERTER_H
2 #define HCALTEXT2DETIDCONVERTER_H
3 
19 #include <string>
21 
23  public:
24 
25  HcalText2DetIdConverter (const std::string& fFlavor = "NA", const std::string& fField1 = "0",
26  const std::string& fField2 = "0", 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, const std::string& fField1,
45  const std::string& fField2, const std::string& fField3);
46  bool init (DetId fId);
47  void setField (int i, int fValue);
53 };
54 
55 #endif
const std::string & getField1() const
int i
Definition: DBlmapReader.cc:9
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:20
const std::string & getField2() const
const std::string & getFlavor() const