ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CaloDivision Class Reference

#include <CaloDivision.h>

Collaboration diagram for CaloDivision:

Public Types

enum  CaloDivisionEnum {
  LArFCAL1C = 0, LArEMECC, LArOverlapC, LArEMBC,
  LArEMBA, LArOverlapA, LArEMECA, LArFCAL1A,
  LArFCAL23C, LArHECC, TileEBC, TileLBC,
  TileLBA, TileEBA, LArHECA, LArFCAL23A,
  Invalid
}
 

Public Member Functions

 CaloDivision (const CaloDivisionEnum e)
 
 CaloDivision (const std::string &s)
 
 CaloDivision (const CaloDivision &c)
 
CaloDivisionoperator= (const CaloDivisionEnum e)
 
CaloDivisionoperator= (const std::string &s)
 
CaloDivisionoperator= (const CaloDivision &c)
 
virtual ~CaloDivision ()
 
unsigned int getNumValues () const
 
const std::vector< std::string > listEnums () const
 
const std::string className () const
 
const std::string toString () const
 
CaloDivisionEnum getEnum () const
 
bool operator== (const CaloDivisionEnum e) const
 
bool operator== (const CaloDivision &c) const
 
bool operator!= (const CaloDivisionEnum e) const
 
bool operator!= (const CaloDivision &c) const
 
bool operator< (const CaloDivision &c) const
 

Static Public Member Functions

static unsigned int numValues ()
 

Private Member Functions

void setEnum (const std::string &s)
 

Private Attributes

CaloDivisionEnum m_enum
 

Detailed Description

Definition at line 14 of file CaloDivision.h.

Member Enumeration Documentation

◆ CaloDivisionEnum

Enumerator
LArFCAL1C 
LArEMECC 
LArOverlapC 
LArEMBC 
LArEMBA 
LArOverlapA 
LArEMECA 
LArFCAL1A 
LArFCAL23C 
LArHECC 
TileEBC 
TileLBC 
TileLBA 
TileEBA 
LArHECA 
LArFCAL23A 
Invalid 

Definition at line 18 of file CaloDivision.h.

18  {
19  LArFCAL1C = 0,
20  LArEMECC,
22  LArEMBC,
23  LArEMBA,
25  LArEMECA,
26  LArFCAL1A,
27  LArFCAL23C,
28  LArHECC,
29  TileEBC,
30  TileLBC,
31  TileLBA,
32  TileEBA,
33  LArHECA,
34  LArFCAL23A,
35  Invalid
36  };

Constructor & Destructor Documentation

◆ CaloDivision() [1/3]

CaloDivision::CaloDivision ( const CaloDivisionEnum  e)
inline

Definition at line 39 of file CaloDivision.h.

39 : m_enum(e) {}

◆ CaloDivision() [2/3]

CaloDivision::CaloDivision ( const std::string &  s)
inline

Definition at line 40 of file CaloDivision.h.

40 { this->setEnum(s); }

◆ CaloDivision() [3/3]

CaloDivision::CaloDivision ( const CaloDivision c)
inline

Definition at line 41 of file CaloDivision.h.

41 : m_enum(c.getEnum()) {};

◆ ~CaloDivision()

virtual CaloDivision::~CaloDivision ( )
inlinevirtual

Definition at line 45 of file CaloDivision.h.

45 {}

Member Function Documentation

◆ className()

const std::string CaloDivision::className ( ) const

◆ getEnum()

CaloDivisionEnum CaloDivision::getEnum ( ) const
inline

Definition at line 55 of file CaloDivision.h.

55 { return m_enum; }

◆ getNumValues()

unsigned int CaloDivision::getNumValues ( ) const
inline

Definition at line 49 of file CaloDivision.h.

49 { return numValues(); }

◆ listEnums()

const std::vector<std::string> CaloDivision::listEnums ( ) const

◆ numValues()

static unsigned int CaloDivision::numValues ( )
inlinestatic

Definition at line 48 of file CaloDivision.h.

48 { return 17; }

◆ operator!=() [1/2]

bool CaloDivision::operator!= ( const CaloDivision c) const
inline

Definition at line 61 of file CaloDivision.h.

61 { return !(*this == c); }

◆ operator!=() [2/2]

bool CaloDivision::operator!= ( const CaloDivisionEnum  e) const
inline

Definition at line 60 of file CaloDivision.h.

60 { return !(*this == e); }

◆ operator<()

bool CaloDivision::operator< ( const CaloDivision c) const
inline

Definition at line 62 of file CaloDivision.h.

62 { return this->getEnum() < c.getEnum(); }

◆ operator=() [1/3]

CaloDivision& CaloDivision::operator= ( const CaloDivision c)
inline

Definition at line 44 of file CaloDivision.h.

44 { if (&c != this) { m_enum = c.getEnum(); } return *this; }

◆ operator=() [2/3]

CaloDivision& CaloDivision::operator= ( const CaloDivisionEnum  e)
inline

Definition at line 42 of file CaloDivision.h.

42 { m_enum = e; return *this; }

◆ operator=() [3/3]

CaloDivision& CaloDivision::operator= ( const std::string &  s)
inline

Definition at line 43 of file CaloDivision.h.

43 { this->setEnum(s); return *this; }

◆ operator==() [1/2]

bool CaloDivision::operator== ( const CaloDivision c) const
inline

Definition at line 59 of file CaloDivision.h.

59 { return this->getEnum() == c.getEnum(); }

◆ operator==() [2/2]

bool CaloDivision::operator== ( const CaloDivisionEnum  e) const
inline

Definition at line 58 of file CaloDivision.h.

58 { return this->getEnum() == e; }

◆ setEnum()

void CaloDivision::setEnum ( const std::string &  s)
private

◆ toString()

const std::string CaloDivision::toString ( ) const

Member Data Documentation

◆ m_enum

CaloDivisionEnum CaloDivision::m_enum
private

Definition at line 69 of file CaloDivision.h.


The documentation for this class was generated from the following file:
CaloDivision::LArEMBA
@ LArEMBA
Definition: CaloDivision.h:23
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
CaloDivision::TileLBC
@ TileLBC
Definition: CaloDivision.h:30
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
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::LArEMBC
@ LArEMBC
Definition: CaloDivision.h:22
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::LArEMECA
@ LArEMECA
Definition: CaloDivision.h:25
CaloDivision::TileEBA
@ TileEBA
Definition: CaloDivision.h:32
CaloDivision::getEnum
CaloDivisionEnum getEnum() const
Definition: CaloDivision.h:55
CaloDivision::LArOverlapC
@ LArOverlapC
Definition: CaloDivision.h:21
CaloDivision::numValues
static unsigned int numValues()
Definition: CaloDivision.h:48
CaloDivision::LArFCAL23C
@ LArFCAL23C
Definition: CaloDivision.h:27
CaloDivision::LArFCAL1A
@ LArFCAL1A
Definition: CaloDivision.h:26
CaloDivision::LArHECA
@ LArHECA
Definition: CaloDivision.h:33
CaloDivision::Invalid
@ Invalid
Definition: CaloDivision.h:35
python.compressB64.c
def c
Definition: compressB64.py:93
CaloDivision::LArFCAL23A
@ LArFCAL23A
Definition: CaloDivision.h:34