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
mps_fire.i
i
Definition: mps_fire.py:428
CastorText2DetIdConverter::field1
std::string field1
Definition: CastorText2DetIdConverter.h:40
CastorText2DetIdConverter
Definition: CastorText2DetIdConverter.h:12
CastorText2DetIdConverter::field2
std::string field2
Definition: CastorText2DetIdConverter.h:41
CastorText2DetIdConverter::getField2
const std::string & getField2() const
Definition: CastorText2DetIdConverter.h:26
CastorText2DetIdConverter::getField
int getField(int i) const
Definition: CastorText2DetIdConverter.cc:101
CastorText2DetIdConverter::getId
DetId getId() const
Definition: CastorText2DetIdConverter.h:28
CastorText2DetIdConverter::setField
void setField(int i, int fValue)
Definition: CastorText2DetIdConverter.cc:115
DetId
Definition: DetId.h:17
CastorText2DetIdConverter::flavorName
std::string flavorName
Definition: CastorText2DetIdConverter.h:39
CastorText2DetIdConverter::getField3
const std::string & getField3() const
Definition: CastorText2DetIdConverter.h:27
CastorText2DetIdConverter::CastorText2DetIdConverter
CastorText2DetIdConverter(const std::string &fFlavor="NA", const std::string &fField1="0", const std::string &fField2="0", const std::string &fField3="0")
Definition: CastorText2DetIdConverter.cc:26
CastorText2DetIdConverter::getFlavor
const std::string & getFlavor() const
Definition: CastorText2DetIdConverter.h:24
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CastorText2DetIdConverter::field3
std::string field3
Definition: CastorText2DetIdConverter.h:42
CastorText2DetIdConverter::mId
DetId mId
Definition: CastorText2DetIdConverter.h:43
CastorText2DetIdConverter::getField1
const std::string & getField1() const
Definition: CastorText2DetIdConverter.h:25
CastorText2DetIdConverter::toString
std::string toString() const
Definition: CastorText2DetIdConverter.cc:126
DetId.h
CastorText2DetIdConverter::isHcalCastorDetId
bool isHcalCastorDetId() const
Definition: CastorText2DetIdConverter.cc:41
CastorText2DetIdConverter::init
bool init(const std::string &fFlavor, const std::string &fField1, const std::string &fField2, const std::string &fField3)
Definition: CastorText2DetIdConverter.cc:78