ATLAS Offline Software
CaloCompositeKineBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef CALOEVENT_CALOCOMPOSITEKINEBASE_H
6 #define CALOEVENT_CALOCOMPOSITEKINEBASE_H
7 
8 #include "FourMom/P4EEtaPhiM.h"
9 
11 
13 {
14 
15  public:
16 
18  virtual ~CaloCompositeKineBase();
19 
21  virtual double energy() const;
22 
24  double energy_nonvirt() const;
25 
27  void setRecoStatus(const CaloRecoStatus& recStatus);
29  void setRecoStatus(const CaloRecoStatus::StatusIndicator& recIndic);
32  recIndic) const;
35  recIndic);
37  void removeRecoStatus();
39  const CaloRecoStatus& getRecoStatus() const;
40 
41 
43  virtual double getBasicEnergy() const = 0;
48  virtual void setBasicEnergy(double theEnergy) = 0;
49 
50  protected:
56 
59 };
60 
69 inline double
71 { return this->e(); }
72 
73 inline double
75 { return this->m_e; }
76 
77 inline const CaloRecoStatus&
79 { return m_status; }
80 
81 inline void
83 { m_status = theStatus; }
84 
85 inline void
87  recIndic)
88 { m_status.setStatus(recIndic); }
89 
90 inline bool
92  recIndic) const
93 { return m_status.checkStatus(recIndic); }
94 
95 inline void
97  recIndic)
98 { m_status.resetStatus(recIndic); }
99 
100 inline void
102 { m_status.resetStatus(); }
103 #endif
CaloCompositeKineBase::getBasicEnergy
virtual double getBasicEnergy() const =0
Return uncalibrated energy.
CaloCompositeKineBase::setRecoStatus
void setRecoStatus(const CaloRecoStatus &recStatus)
Set the reconstruction status.
Definition: CaloCompositeKineBase.h:82
CaloRecoStatus::resetStatus
virtual void resetStatus()
reset reconstruction status
Definition: CaloRecoStatus.h:122
CaloRecoStatus::StatusIndicator
StatusIndicator
reconstruction status word
Definition: CaloRecoStatus.h:37
CaloRecoStatus::setStatus
virtual void setStatus(const StatusIndicator &statusIndicator)
Set status.
Definition: CaloRecoStatus.h:107
CaloCompositeKineBase::getRecoStatus
const CaloRecoStatus & getRecoStatus() const
Retrieve the reconstruction status.
Definition: CaloCompositeKineBase.h:78
P4EEtaPhiM
Definition: P4EEtaPhiM.h:25
P4EEtaPhiM::m_e
double m_e
Definition: P4EEtaPhiM.h:75
CaloCompositeKineBase::energy_nonvirt
double energy_nonvirt() const
Return energy (nonvirtual version)
Definition: CaloCompositeKineBase.h:74
P4EEtaPhiM::e
virtual double e() const
get energy data member
Definition: P4EEtaPhiM.h:102
CaloCompositeKineBase::energy
virtual double energy() const
Return energy.
Definition: CaloCompositeKineBase.h:70
CaloCompositeKineBase::checkRecoStatus
bool checkRecoStatus(const CaloRecoStatus::StatusIndicator &recIndic) const
Check if a given indicator is set.
Definition: CaloCompositeKineBase.h:91
CaloCompositeKineBase::CaloCompositeKineBase
CaloCompositeKineBase()
Constructor.
Definition: CaloCompositeKineBase.cxx:8
PowhegPythia8EvtGen_jetjet.theEnergy
int theEnergy
Definition: PowhegPythia8EvtGen_jetjet.py:12
CaloRecoStatus::checkStatus
virtual bool checkStatus(const StatusIndicator &statusIndicator) const
Check status.
Definition: CaloRecoStatus.h:117
CaloCompositeKineBase::~CaloCompositeKineBase
virtual ~CaloCompositeKineBase()
Destructor.
Definition: CaloCompositeKineBase.cxx:13
P4EEtaPhiM.h
CaloRecoStatus.h
CaloCompositeKineBase::m_status
CaloRecoStatus m_status
Calorimeter reconstruction status.
Definition: CaloCompositeKineBase.h:58
CaloCompositeKineBase::removeRecoStatus
void removeRecoStatus()
Remove all indicators.
Definition: CaloCompositeKineBase.h:101
CaloRecoStatus
reconstruction status indicator
Definition: CaloRecoStatus.h:12
CaloCompositeKineBase
base class for kinematics of composite calo object
Definition: CaloCompositeKineBase.h:13
CaloCompositeKineBase::setBasicEnergy
virtual void setBasicEnergy(double theEnergy)=0
Set uncalibrated energy.