ATLAS Offline Software
Loading...
Searching...
No Matches
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.

Member Function Documentation

◆ checkConst()

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

Definition at line 48 of file CaloVariableType.h.

49 {
50 return (constMarker & bitPattern) == constMarker;
51 }
static const unsigned int constMarker

◆ getAllVariableBits()

unsigned int CaloVariableType::getAllVariableBits ( )
inlinestatic

Definition at line 63 of file CaloVariableType.h.

64 {
65 return allBits;
66 }
static const unsigned int allBits

◆ getConstMarker()

unsigned int CaloVariableType::getConstMarker ( )
inlinestatic

Definition at line 43 of file CaloVariableType.h.

44 {
45 return constMarker;
46 }

◆ getNumberOfVariables()

unsigned int CaloVariableType::getNumberOfVariables ( )
inlinestatic

Definition at line 58 of file CaloVariableType.h.

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

◆ getVariableBit()

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()

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: