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

reconstruction status indicator More...

#include <CaloRecoStatus.h>

Collaboration diagram for CaloRecoStatus:

Public Types

enum  StatusIndicator {
  TAGGEDEM = 0x00000001, TAGGEDHAD = 0x00000002, TAGGEDMUON = 0x00000004, TAGGEDUNKNOWN = 0x00000008,
  CALIBRATED = 0x10000000, CALIBRATEDLHC = 0x10000010, CALIBRATEDALT = 0x10000020, UNKNOWNSTATUS = 0x00000000
}
 reconstruction status word More...
 
typedef unsigned int store_type
 Internal store type. More...
 

Public Member Functions

 CaloRecoStatus (StatusIndicator statusIndicator=UNKNOWNSTATUS)
 Default constructor. More...
 
 CaloRecoStatus (store_type store)
 
virtual ~CaloRecoStatus ()
 Destructor. More...
 
virtual void setStatus (const StatusIndicator &statusIndicator)
 Set status. More...
 
virtual bool checkStatus (const StatusIndicator &statusIndicator) const
 Check status. More...
 
virtual const store_typegetStatusWord () const
 retrieve the entire status word More...
 
virtual bool getStatus (std::vector< CaloRecoStatus::StatusIndicator > &pStatusList) const
 retrieve all status indicators More...
 
virtual void resetStatus ()
 reset reconstruction status More...
 
virtual void resetStatus (const StatusIndicator &statusIndicator)
 

Private Attributes

store_type m_status
 Status store. More...
 

Detailed Description

reconstruction status indicator

Definition at line 11 of file CaloRecoStatus.h.

Member Typedef Documentation

◆ store_type

typedef unsigned int CaloRecoStatus::store_type

Internal store type.

Definition at line 16 of file CaloRecoStatus.h.

Member Enumeration Documentation

◆ StatusIndicator

reconstruction status word

Indicates cluster tag and calibration status. Note that tags may only be applied to (calibrated) topological clusters.

Parameters
TAGGEDEMtagged as electromagnetic
TAGGEDHADtagged as hadronic
TAGGEDMUONtagged as muon
TAGGEDUNKNOWNno safe tags from any classification
CALIBRATEDcalibrated begond em scale
CALIBRATEDLHCcalibrated by local hadronic approach
CALIBRATEDALTcalibrated by alternative calibration, typically with cell weights from jets

Note that several tags can be valid at the same time, especially CALIBRATED & CALIBRATEDLHC & CALIBRATEDALT and subsequent combinations of those.

Enumerator
TAGGEDEM 
TAGGEDHAD 
TAGGEDMUON 
TAGGEDUNKNOWN 
CALIBRATED 
CALIBRATEDLHC 
CALIBRATEDALT 
UNKNOWNSTATUS 

Definition at line 36 of file CaloRecoStatus.h.

37  {
38  TAGGEDEM = 0x00000001, /*< tagged as electromagnetic object */
39  TAGGEDHAD = 0x00000002, /*< tagged as hadronic object */
40  TAGGEDMUON = 0x00000004, /*< tagged as muonic cluster */
41  TAGGEDUNKNOWN = 0x00000008, /*< tagged as unknown */
42  CALIBRATED = 0x10000000, /*< cluster calibrated (non-emscale) */
43  CALIBRATEDLHC = 0x10000010, /*< cluster calibrated local had */
44  CALIBRATEDALT = 0x10000020, /*< cluster calibrated alternatively */
45  UNKNOWNSTATUS = 0x00000000 /*< unknown status */
46  };

Constructor & Destructor Documentation

◆ CaloRecoStatus() [1/2]

CaloRecoStatus::CaloRecoStatus ( StatusIndicator  statusIndicator = UNKNOWNSTATUS)
inline

Default constructor.

Definition at line 96 of file CaloRecoStatus.h.

97  : m_status((store_type)aStatus)
98 { }

◆ CaloRecoStatus() [2/2]

CaloRecoStatus::CaloRecoStatus ( store_type  store)
inline

Definition at line 100 of file CaloRecoStatus.h.

101  : m_status(aStatus)
102 { }

◆ ~CaloRecoStatus()

CaloRecoStatus::~CaloRecoStatus ( )
inlinevirtual

Destructor.

Definition at line 104 of file CaloRecoStatus.h.

105 { }

Member Function Documentation

◆ checkStatus()

bool CaloRecoStatus::checkStatus ( const StatusIndicator statusIndicator) const
inlinevirtual

Check status.

Parameters
statusIndicatorstatus indicator

Note that the client can request a single status set, or a combination of status indicators set

Definition at line 117 of file CaloRecoStatus.h.

118 {
119  return ( m_status & (store_type)aStatus ) == (store_type)aStatus;
120 }

◆ getStatus()

bool CaloRecoStatus::getStatus ( std::vector< CaloRecoStatus::StatusIndicator > &  pStatusList) const
virtual

retrieve all status indicators

Parameters
pStatusListlist of all status indicators

Returns true if one or more indicators are available

Definition at line 7 of file CaloRecoStatus.cxx.

9 {
10  const size_t oldSize = pStatusList.size();
12  if ((s & m_status) == s) pStatusList.push_back(s);
13  }
14  return oldSize < pStatusList.size();
15 }

◆ getStatusWord()

const CaloRecoStatus::store_type & CaloRecoStatus::getStatusWord ( ) const
inlinevirtual

retrieve the entire status word

Definition at line 112 of file CaloRecoStatus.h.

113 {
114  return m_status;
115 }

◆ resetStatus() [1/2]

void CaloRecoStatus::resetStatus ( )
inlinevirtual

reset reconstruction status

Definition at line 122 of file CaloRecoStatus.h.

123 {
125 }

◆ resetStatus() [2/2]

void CaloRecoStatus::resetStatus ( const StatusIndicator statusIndicator)
inlinevirtual

Definition at line 127 of file CaloRecoStatus.h.

128 {
129  m_status = m_status & ~((store_type)aStatus);
130 }

◆ setStatus()

void CaloRecoStatus::setStatus ( const StatusIndicator statusIndicator)
inlinevirtual

Set status.

Parameters
statusIndicatorstatus bit pattern

Definition at line 107 of file CaloRecoStatus.h.

108 {
109  m_status = m_status | (store_type)aStatus;
110 }

Member Data Documentation

◆ m_status

store_type CaloRecoStatus::m_status
private

Status store.

Definition at line 88 of file CaloRecoStatus.h.


The documentation for this class was generated from the following files:
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
CaloRecoStatus::CALIBRATEDLHC
@ CALIBRATEDLHC
Definition: CaloRecoStatus.h:43
CaloRecoStatus::store_type
unsigned int store_type
Internal store type.
Definition: CaloRecoStatus.h:16
CaloRecoStatus::TAGGEDUNKNOWN
@ TAGGEDUNKNOWN
Definition: CaloRecoStatus.h:41
CaloRecoStatus::CALIBRATEDALT
@ CALIBRATEDALT
Definition: CaloRecoStatus.h:44
CaloRecoStatus::TAGGEDMUON
@ TAGGEDMUON
Definition: CaloRecoStatus.h:40
CaloRecoStatus::m_status
store_type m_status
Status store.
Definition: CaloRecoStatus.h:88
CaloRecoStatus::CALIBRATED
@ CALIBRATED
Definition: CaloRecoStatus.h:42
CaloRecoStatus::TAGGEDEM
@ TAGGEDEM
Definition: CaloRecoStatus.h:38
CaloRecoStatus::UNKNOWNSTATUS
@ UNKNOWNSTATUS
Definition: CaloRecoStatus.h:45
CaloRecoStatus::TAGGEDHAD
@ TAGGEDHAD
Definition: CaloRecoStatus.h:39