CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorText2DetIdConverter.h
Go to the documentation of this file.
1 #ifndef CASTORTEXT2DETIDCONVERTER_H
2 #define CASTORTEXT2DETIDCONVERTER_H
3 
9 #include <string>
11 
13  public:
14 
15  CastorText2DetIdConverter (const std::string& fFlavor = "NA", const std::string& fField1 = "0",
16  const std::string& fField2 = "0", const std::string& fField3 = "0");
17 
19 
20  // bool isHcalDetId () const;
21  bool isHcalCastorDetId () const;
22 
23  const std::string& getFlavor () const {return flavorName;}
24  const std::string& getField1 () const {return field1;}
25  const std::string& getField2 () const {return field2;}
26  const std::string& getField3 () const {return field3;}
27  DetId getId () const {return mId;}
28  int getField (int i) const;
29  std::string toString () const;
30 
31  private:
32  bool init (const std::string& fFlavor, const std::string& fField1,
33  const std::string& fField2, const std::string& fField3);
34  bool init (DetId fId);
35  void setField (int i, int fValue);
41 };
42 
43 #endif
const std::string & getField2() const
int i
Definition: DBlmapReader.cc:9
CastorText2DetIdConverter(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)
const std::string & getField1() const
Definition: DetId.h:20
const std::string & getField3() const
const std::string & getFlavor() const