CMS 3D CMS Logo

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  CastorText2DetIdConverter(const std::string& fFlavor = "NA",
15  const std::string& fField1 = "0",
16  const std::string& fField2 = "0",
17  const std::string& fField3 = "0");
18 
20 
21  // bool isHcalDetId () const;
22  bool isHcalCastorDetId() const;
23 
24  const std::string& getFlavor() const { return flavorName; }
25  const std::string& getField1() const { return field1; }
26  const std::string& getField2() const { return field2; }
27  const std::string& getField3() const { return field3; }
28  DetId getId() const { return mId; }
29  int getField(int i) const;
30  std::string toString() const;
31 
32 private:
33  bool init(const std::string& fFlavor,
34  const std::string& fField1,
35  const std::string& fField2,
36  const std::string& fField3);
37  bool init(DetId fId);
38  void setField(int i, int fValue);
44 };
45 
46 #endif
const std::string & getFlavor() const
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)
Definition: DetId.h:17
const std::string & getField2() const
const std::string & getField3() const
const std::string & getField1() const