ATLAS Offline Software
CaloDivision.h
Go to the documentation of this file.
1 // channelMappings/CaloDivision.h
2 // NB do not edit this file! It was created automatically
3 // by enumgen.pl on 09-Mar-2022 at 10:30:23.
4 // This class was generated using the list of enum values
5 // directly specified in the control file enumgen_direct.dat
6 
7 #ifndef CALODIVISION_H
8 #define CALODIVISION_H
9 
10 #include <iostream>
11 #include <string>
12 #include <vector>
13 
14 class CaloDivision {
15 public:
16 
17  // Allowed enum values.
19  LArFCAL1C = 0,
35  Invalid
36  };
37 
38  // Construction
40  CaloDivision(const std::string& s) { this->setEnum(s); }
42  CaloDivision& operator=(const CaloDivisionEnum e) { m_enum = e; return *this; }
43  CaloDivision& operator=(const std::string& s) { this->setEnum(s); return *this; }
44  CaloDivision& operator=(const CaloDivision& c) { if (&c != this) { m_enum = c.getEnum(); } return *this; }
45  virtual ~CaloDivision() {}
46 
47  // Information
48  static unsigned int numValues() { return 17; }
49  unsigned int getNumValues() const { return numValues(); }
50  const std::vector<std::string> listEnums() const;
51  const std::string className() const;
52  const std::string toString() const;
53 
54  // Access to data member
55  CaloDivisionEnum getEnum() const { return m_enum; }
56 
57  // Comparison
58  bool operator==(const CaloDivisionEnum e) const { return this->getEnum() == e; }
59  bool operator==(const CaloDivision& c) const { return this->getEnum() == c.getEnum(); }
60  bool operator!=(const CaloDivisionEnum e) const { return !(*this == e); }
61  bool operator!=(const CaloDivision& c) const { return !(*this == c); }
62  bool operator<(const CaloDivision& c) const { return this->getEnum() < c.getEnum(); }
63 
64 private:
65  // Set data member from string
66  void setEnum(const std::string& s);
67 
68  // Data members
70 };
71 
72 // Related global operators
73 std::ostream& operator<< (std::ostream& s, const CaloDivision& c);
74 
75 #endif // CALODIVISION_H
CaloDivision::LArEMBA
@ LArEMBA
Definition: CaloDivision.h:23
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
CaloDivision::className
const std::string className() const
CaloDivision::TileLBC
@ TileLBC
Definition: CaloDivision.h:30
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloDivision::CaloDivision
CaloDivision(const std::string &s)
Definition: CaloDivision.h:40
CaloDivision::getNumValues
unsigned int getNumValues() const
Definition: CaloDivision.h:49
CaloDivision::operator<
bool operator<(const CaloDivision &c) const
Definition: CaloDivision.h:62
CaloDivision::LArEMECC
@ LArEMECC
Definition: CaloDivision.h:20
CaloDivision::LArOverlapA
@ LArOverlapA
Definition: CaloDivision.h:24
CaloDivision::setEnum
void setEnum(const std::string &s)
CaloDivision::LArFCAL1C
@ LArFCAL1C
Definition: CaloDivision.h:19
CaloDivision::CaloDivision
CaloDivision(const CaloDivision &c)
Definition: CaloDivision.h:41
CaloDivision::operator!=
bool operator!=(const CaloDivisionEnum e) const
Definition: CaloDivision.h:60
CaloDivision::LArEMBC
@ LArEMBC
Definition: CaloDivision.h:22
CaloDivision::operator==
bool operator==(const CaloDivision &c) const
Definition: CaloDivision.h:59
CaloDivision::TileEBC
@ TileEBC
Definition: CaloDivision.h:29
CaloDivision::m_enum
CaloDivisionEnum m_enum
Definition: CaloDivision.h:69
CaloDivision::LArHECC
@ LArHECC
Definition: CaloDivision.h:28
CaloDivision::TileLBA
@ TileLBA
Definition: CaloDivision.h:31
CaloDivision::CaloDivisionEnum
CaloDivisionEnum
Definition: CaloDivision.h:18
CaloDivision::LArEMECA
@ LArEMECA
Definition: CaloDivision.h:25
CaloDivision::TileEBA
@ TileEBA
Definition: CaloDivision.h:32
CaloDivision::listEnums
const std::vector< std::string > listEnums() const
CaloDivision::operator=
CaloDivision & operator=(const CaloDivision &c)
Definition: CaloDivision.h:44
operator<<
std::ostream & operator<<(std::ostream &s, const CaloDivision &c)
CaloDivision::operator!=
bool operator!=(const CaloDivision &c) const
Definition: CaloDivision.h:61
CaloDivision::getEnum
CaloDivisionEnum getEnum() const
Definition: CaloDivision.h:55
CaloDivision::toString
const std::string toString() const
CaloDivision::LArOverlapC
@ LArOverlapC
Definition: CaloDivision.h:21
CaloDivision::CaloDivision
CaloDivision(const CaloDivisionEnum e)
Definition: CaloDivision.h:39
CaloDivision::operator=
CaloDivision & operator=(const CaloDivisionEnum e)
Definition: CaloDivision.h:42
CaloDivision::numValues
static unsigned int numValues()
Definition: CaloDivision.h:48
CaloDivision::operator=
CaloDivision & operator=(const std::string &s)
Definition: CaloDivision.h:43
CaloDivision::LArFCAL23C
@ LArFCAL23C
Definition: CaloDivision.h:27
CaloDivision
Definition: CaloDivision.h:14
CaloDivision::LArFCAL1A
@ LArFCAL1A
Definition: CaloDivision.h:26
CaloDivision::LArHECA
@ LArHECA
Definition: CaloDivision.h:33
CaloDivision::Invalid
@ Invalid
Definition: CaloDivision.h:35
CaloDivision::~CaloDivision
virtual ~CaloDivision()
Definition: CaloDivision.h:45
python.compressB64.c
def c
Definition: compressB64.py:93
CaloDivision::LArFCAL23A
@ LArFCAL23A
Definition: CaloDivision.h:34
CaloDivision::operator==
bool operator==(const CaloDivisionEnum e) const
Definition: CaloDivision.h:58