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

definition of Calorimeter Variable types in CaloCluster. More...

#include <CaloVariableType.h>

Collaboration diagram for CaloVariableType:

Public Types

enum  VariableType {
  ENERGY = 0, ETA = 1, PHI = 2, DELTA_ETA = 3,
  DELTA_PHI = 4, MAX_ENERGY = 5, MAX_ETA = 6, MAX_PHI = 7,
  NO_OF_TYPES = 8
}
 

Static Public Member Functions

static unsigned int getVariableBit (const VariableType &varType)
 
static unsigned int getConstMarker ()
 
static bool checkConst (const unsigned int &bitPattern)
 
static unsigned int setConstMarker (const unsigned int &bitPattern)
 
static unsigned int getNumberOfVariables ()
 
static unsigned int getAllVariableBits ()
 

Static Private Attributes

static const unsigned int constMarker = 0x80000000
 
static const unsigned int allBits = 0x000000ff
 

Detailed Description

definition of Calorimeter Variable types in CaloCluster.

Definition at line 12 of file CaloVariableType.h.

Member Enumeration Documentation

◆ VariableType

Enumerator
ENERGY 
ETA 
PHI 
DELTA_ETA 
DELTA_PHI 
MAX_ENERGY 
MAX_ETA 
MAX_PHI 
NO_OF_TYPES 

Definition at line 15 of file CaloVariableType.h.

15  { ENERGY = 0,
16  ETA = 1,
17  PHI = 2,
18  DELTA_ETA = 3,
19  DELTA_PHI = 4,
20  MAX_ENERGY = 5,
21  MAX_ETA = 6,
22  MAX_PHI = 7,
23  NO_OF_TYPES = 8};

Member Function Documentation

◆ checkConst()

static bool CaloVariableType::checkConst ( const unsigned int &  bitPattern)
inlinestatic

Definition at line 48 of file CaloVariableType.h.

49  {
50  return (constMarker & bitPattern) == constMarker;
51  }

◆ getAllVariableBits()

static unsigned int CaloVariableType::getAllVariableBits ( )
inlinestatic

Definition at line 63 of file CaloVariableType.h.

64  {
65  return allBits;
66  }

◆ getConstMarker()

static unsigned int CaloVariableType::getConstMarker ( )
inlinestatic

Definition at line 43 of file CaloVariableType.h.

44  {
45  return constMarker;
46  }

◆ getNumberOfVariables()

static unsigned int CaloVariableType::getNumberOfVariables ( )
inlinestatic

Definition at line 58 of file CaloVariableType.h.

59  {
60  return (unsigned int)NO_OF_TYPES;
61  }

◆ getVariableBit()

static unsigned int CaloVariableType::getVariableBit ( const VariableType varType)
inlinestatic

Definition at line 25 of file CaloVariableType.h.

26  {
27  unsigned int bitPattern;
28  switch ( varType )
29  {
30  case ENERGY: { bitPattern = 0x00000001; break; }
31  case ETA: { bitPattern = 0x00000002; break; }
32  case PHI: { bitPattern = 0x00000004; break; }
33  case DELTA_ETA: { bitPattern = 0x00000008; break; }
34  case DELTA_PHI: { bitPattern = 0x00000010; break; }
35  case MAX_ENERGY: { bitPattern = 0x00000020; break; }
36  case MAX_ETA: { bitPattern = 0x00000040; break; }
37  case MAX_PHI: { bitPattern = 0x00000080; break; }
38  default: { bitPattern = 0x00000000; break; }
39  };
40  return bitPattern;
41  }

◆ setConstMarker()

static unsigned int CaloVariableType::setConstMarker ( const unsigned int &  bitPattern)
inlinestatic

Definition at line 53 of file CaloVariableType.h.

54  {
55  return bitPattern | constMarker;
56  }

Member Data Documentation

◆ allBits

const unsigned int CaloVariableType::allBits = 0x000000ff
staticprivate

Definition at line 71 of file CaloVariableType.h.

◆ constMarker

const unsigned int CaloVariableType::constMarker = 0x80000000
staticprivate

Definition at line 70 of file CaloVariableType.h.


The documentation for this class was generated from the following file:
CaloVariableType::MAX_ENERGY
@ MAX_ENERGY
Definition: CaloVariableType.h:20
CaloVariableType::PHI
@ PHI
Definition: CaloVariableType.h:17
CaloVariableType::DELTA_PHI
@ DELTA_PHI
Definition: CaloVariableType.h:19
CaloVariableType::MAX_PHI
@ MAX_PHI
Definition: CaloVariableType.h:22
CaloVariableType::DELTA_ETA
@ DELTA_ETA
Definition: CaloVariableType.h:18
CaloVariableType::MAX_ETA
@ MAX_ETA
Definition: CaloVariableType.h:21
CaloVariableType::NO_OF_TYPES
@ NO_OF_TYPES
Definition: CaloVariableType.h:23
CaloVariableType::constMarker
static const unsigned int constMarker
Definition: CaloVariableType.h:70
CaloVariableType::allBits
static const unsigned int allBits
Definition: CaloVariableType.h:71
CaloVariableType::ETA
@ ETA
Definition: CaloVariableType.h:16
CaloVariableType::ENERGY
@ ENERGY
Definition: CaloVariableType.h:15