ATLAS Offline Software
CaloEnergy.h
Go to the documentation of this file.
1 
2 /*
3  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
4 */
5 
6 /***************************************************************************
7  calorimeter energy deposit (measured or parametrized) with asymmetric error
8  Author: Alan Poppleton
9  Author: Gustavo Ordenez
10  Integration with CombinedMuon.h - Ketevi A. Assamagan
11  ---------------------------------------------------------------------------
12  ***************************************************************************/
13 
14 #ifndef MUONEVENT_CALOENERGY_H
15 #define MUONEVENT_CALOENERGY_H
16 
19 
20 #include <vector>
21 
28 class CaloEnergy : public Trk::EnergyLoss {
29 
30 public:
31 
44 
46  CaloEnergy(void);
47 
49  CaloEnergy (const Trk::EnergyLoss& eloss);
50 
51  CaloEnergy (float deltaE,
52  float sigmaDeltaE,
53  float sigmaMinusDeltaE=0.0,
54  float sigmaPlusDeltaE=0.0,
55  unsigned short energyLossType=0,
56  float likelihood=0,
57  unsigned short tag=0);
58 
60  CaloEnergy (float deltaE,
61  float sigmaDeltaE,
62  float sigmaMinusDeltaE,
63  float sigmaPlusDeltaE,
64  unsigned short energyLossType,
65  float likelihood,
66  unsigned short tag,
67  const std::vector<DepositInCalo>& deposits);
68 
71 
74  CaloEnergy* clone() const;
75 
78 
83 
85  unsigned short caloMuonIdTag() const { return m_caloMuonIdTag; }
86 
88  double caloLRLikelihood() const { return m_caloLRLikelihood; }
89 
91  const std::vector<DepositInCalo>& depositInCalo() const { return m_deposits; }
92 
94  float fsrCandidateEnergy() const { return m_fsrCandidateEnergy; }
95 
97  float etCore() const { return m_etCore; }
98 
103 
105  void set_caloLRLikelihood ( const float likelihood ) { m_caloLRLikelihood = likelihood; }
106 
108  void set_caloMuonIdTag ( unsigned short tag ) { m_caloMuonIdTag = tag; }
109 
111  void set_deposits( const std::vector<DepositInCalo> & deposits ) { m_deposits = deposits; }
112  void set_deposits( std::vector<DepositInCalo>&& deposits ) { m_deposits = std::move(deposits); }
113 
115  void insert_deposit ( const DepositInCalo& deposit ) { m_deposits.push_back( deposit ); }
116 
119 
121  void set_etCore ( const float etcore ) { m_etCore=etcore; }
122 
125 
127  double deltaEMeas() const { return m_deltaE_meas; }
128 
130  double sigmaDeltaEMeas() const { return m_sigmaDeltaE_meas; }
131 
133  void set_paramEnergyLoss(const double deltaE, const double sigmaMinusDeltaE, const double sigmaPlusDeltaE)
135 
137  double deltaEParam() const { return m_deltaE_param; }
138 
141 
144 
145 private:
146 
149  unsigned short m_caloMuonIdTag;
151  std::vector<DepositInCalo> m_deposits;
152  float m_etCore; // summed cell ET in core DeltaR
153 
159 
160 };
161 
163 { return m_energyLossType; }
164 
166 { return new CaloEnergy(*this); }
167 
168 
169 
170 #endif // MUONEVENT_CALOENERGY_H
171 
172 
CaloEnergy::Tail
@ Tail
Definition: CaloEnergy.h:43
CaloEnergy::m_energyLossType
EnergyLossType m_energyLossType
Definition: CaloEnergy.h:147
Trk::EnergyLoss::sigmaMinusDeltaE
double sigmaMinusDeltaE() const
returns the negative side
CaloEnergy::CaloEnergy
CaloEnergy(void)
default constructor - to be used only for persistency
Definition: CaloEnergy.cxx:18
EnergyLoss.h
CaloEnergy::m_sigmaDeltaE_meas
double m_sigmaDeltaE_meas
Definition: CaloEnergy.h:158
CaloEnergy::clone
CaloEnergy * clone() const
Virtual constructor.
Definition: CaloEnergy.h:165
CaloEnergy::EnergyLossType
EnergyLossType
Calo Energy Loss Type Parametrized : reconstruction configured to use the parametrization w/o looking...
Definition: CaloEnergy.h:43
CaloEnergy
class extending the basic Trk::EnergyLoss to describe the measured or parameterised muon energy loss ...
Definition: CaloEnergy.h:28
CaloEnergy::set_paramEnergyLoss
void set_paramEnergyLoss(const double deltaE, const double sigmaMinusDeltaE, const double sigmaPlusDeltaE)
set parametrised energy loss
Definition: CaloEnergy.h:133
CaloEnergy::m_sigmaPlusDeltaE_param
double m_sigmaPlusDeltaE_param
Definition: CaloEnergy.h:156
CaloEnergy::m_deltaE_meas
double m_deltaE_meas
Definition: CaloEnergy.h:157
CaloEnergy::set_energyLossType
void set_energyLossType(const CaloEnergy::EnergyLossType lossType)
set methods
Definition: CaloEnergy.h:102
CaloEnergy::m_caloLRLikelihood
float m_caloLRLikelihood
Definition: CaloEnergy.h:148
CaloEnergy::deltaEMeas
double deltaEMeas() const
get measured energy loss
Definition: CaloEnergy.h:127
Trk::EnergyLoss::sigmaDeltaE
double sigmaDeltaE() const
returns the symmatric error
CaloEnergy::set_deposits
void set_deposits(std::vector< DepositInCalo > &&deposits)
Definition: CaloEnergy.h:112
CaloEnergy::deltaEParam
double deltaEParam() const
get parametrised energy loss
Definition: CaloEnergy.h:137
CaloEnergy::m_etCore
float m_etCore
Definition: CaloEnergy.h:152
CaloEnergy::set_measEnergyLoss
void set_measEnergyLoss(const double deltaE, const double sigmaDeltaE)
set measured energy loss
Definition: CaloEnergy.h:124
CaloEnergy::sigmaDeltaEMeas
double sigmaDeltaEMeas() const
get measured energy loss error
Definition: CaloEnergy.h:130
CaloEnergy::insert_deposit
void insert_deposit(const DepositInCalo &deposit)
insert a deposit
Definition: CaloEnergy.h:115
CaloEnergy::m_deltaE_param
double m_deltaE_param
Definition: CaloEnergy.h:154
CaloEnergy::energyLossType
CaloEnergy::EnergyLossType energyLossType(void) const
Accessor methods.
Definition: CaloEnergy.h:162
CaloEnergy::operator=
CaloEnergy & operator=(const CaloEnergy &)
assignment operator
Definition: CaloEnergy.cxx:103
Trk::EnergyLoss::deltaE
double deltaE() const
returns the
DepositInCalo.h
CaloEnergy::~CaloEnergy
~CaloEnergy()
destructor
CaloEnergy::m_deposits
std::vector< DepositInCalo > m_deposits
Definition: CaloEnergy.h:151
CaloEnergy::FSRcandidate
@ FSRcandidate
Definition: CaloEnergy.h:43
CaloEnergy::m_caloMuonIdTag
unsigned short m_caloMuonIdTag
Definition: CaloEnergy.h:149
DepositInCalo
class describing the measured energy loss associated to muons on the detector level,...
Definition: DepositInCalo.h:23
CaloEnergy::set_caloLRLikelihood
void set_caloLRLikelihood(const float likelihood)
set the likelihood
Definition: CaloEnergy.h:105
CaloEnergy::m_fsrCandidateEnergy
float m_fsrCandidateEnergy
Definition: CaloEnergy.h:150
CaloEnergy::fsrCandidateEnergy
float fsrCandidateEnergy() const
FSR Candidate Energy.
Definition: CaloEnergy.h:94
CaloEnergy::caloMuonIdTag
unsigned short caloMuonIdTag() const
the Calo Muon Identification tag
Definition: CaloEnergy.h:85
Trk::EnergyLoss
This class describes energy loss material effects in the ATLAS tracking EDM.
Definition: EnergyLoss.h:34
CaloEnergy::sigmaPlusDeltaEParam
double sigmaPlusDeltaEParam() const
get parametrised energy loss plus error
Definition: CaloEnergy.h:143
CaloEnergy::set_caloMuonIdTag
void set_caloMuonIdTag(unsigned short tag)
set the tag
Definition: CaloEnergy.h:108
CaloEnergy::sigmaMinusDeltaEParam
double sigmaMinusDeltaEParam() const
get parametrised energy loss minus error
Definition: CaloEnergy.h:140
CaloEnergy::set_fsrCandidateEnergy
void set_fsrCandidateEnergy(const float fs)
FSR Candidate Energy.
Definition: CaloEnergy.h:118
CaloEnergy::Parametrized
@ Parametrized
Definition: CaloEnergy.h:43
CaloEnergy::etCore
float etCore() const
isolation ET in core deltaR
Definition: CaloEnergy.h:97
CaloEnergy::NotIsolated
@ NotIsolated
Definition: CaloEnergy.h:43
Herwig7_QED_EvtGen_ll.fs
dictionary fs
Definition: Herwig7_QED_EvtGen_ll.py:17
CaloEnergy::m_sigmaMinusDeltaE_param
double m_sigmaMinusDeltaE_param
Definition: CaloEnergy.h:155
CaloEnergy::set_deposits
void set_deposits(const std::vector< DepositInCalo > &deposits)
set the detailed energy deposits in the calorimeter layers
Definition: CaloEnergy.h:111
CaloEnergy::set_etCore
void set_etCore(const float etcore)
isolation ET in core deltaR
Definition: CaloEnergy.h:121
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
CaloEnergy::MOP
@ MOP
Definition: CaloEnergy.h:43
Trk::EnergyLoss::sigmaPlusDeltaE
double sigmaPlusDeltaE() const
returns the positive side
CaloEnergy::CaloEnergy
CaloEnergy(const CaloEnergy &)
copy constructor
CaloEnergy::caloLRLikelihood
double caloLRLikelihood() const
the calo Muon Identification likehood
Definition: CaloEnergy.h:88
CaloEnergy::depositInCalo
const std::vector< DepositInCalo > & depositInCalo() const
the vector of detailed deposits in calo layers
Definition: CaloEnergy.h:91