|
ATLAS Offline Software
|
Go to the documentation of this file.
42 #include "GaudiKernel/MsgStream.h"
43 #include "GaudiKernel/ThreadLocalContext.h"
50 return StatusCode::SUCCESS;
70 return StatusCode::SUCCESS;
76 float em,
float etam,
float phim,
77 float emax,
float etamax,
float phimax,
78 float etas,
float phis)
const
80 cluster->setEnergy(sampling, em);
81 cluster->
setEta(sampling, etam);
82 cluster->
setPhi(sampling, phim);
84 cluster->setEmax(sampling,emax);
85 cluster->setEtamax(sampling,etamax);
86 cluster->setPhimax(sampling,phimax);
88 cluster->setEtasize(sampling,
etas);
89 cluster->setPhisize(sampling, phis);
96 if (cluster->
e() == 0) {
99 <<
"Attempt to rescale zero-energy cluster to energy " <<
energy
115 double e = cluster->
eSample(sampling);
virtual void setsample(xAOD::CaloCluster *cluster, CaloSampling::CaloSample sampling, float em, float etam, float phim, float emax, float etamax, float phimax, float etas, float phis) const
double eSample(sampling_type sampling) const
Retrieve energy in a given sampling.
double phiSample(sampling_type sampling) const
Retrieve barycenter in a given sample.
bool hasSampling(const sampling_type &theSampling) const
Checks if certain sampling contributes to cluster.
double phiBE(int sampling) const
EMB/EMEC combined barycenter .
virtual void setenergy(xAOD::CaloCluster *cluster, float energy) const
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual StatusCode initialize() override
Initialize method.
::StatusCode StatusCode
StatusCode definition for legacy code.
double etaSample(sampling_type sampling) const
Retrieve barycenter in a given sample.
Principal data class for CaloCell clusters.
virtual void setEta(double eta)
Set eta.
double etaBE(int sampling) const
EMB/EMEC combined barycenter .
Helpers for checking error return status codes and reporting errors.
StatusCode initialize(bool used=true)
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloMgrKey
#define REPORT_MESSAGE(LVL)
Report a message.
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *) const =0
virtual void setE(double e)
Set energy.
virtual double eta() const
Retrieve eta independent of signal state.
CaloCell_ID::CaloSample CaloSample
virtual double e() const
Retrieve energy independent of signal state.
virtual double et() const
transverse energy defined to be e*sin(theta)
virtual void setPhi(double phi)
Set phi.
StatusCode execute(const EventContext &ctx, xAOD::CaloCluster *cluster) const override
virtual double phi() const
Retrieve phi independent of signal state.