|
ATLAS Offline Software
|
Go to the documentation of this file.
32 #include "GaudiKernel/StatusCode.h"
35 #include "CLHEP/Units/PhysicalConstants.h"
36 #include "GaudiKernel/MsgStream.h"
46 const double deta = 0.2;
47 const double dphi =
twopi / 64. ;
58 return StatusCode::SUCCESS;
65 float eta = cluster->
eta();
66 float phi = cluster->
phi();
68 float aeta = fabs(eta);
72 if (aeta < etamin_crack || aeta > etamax_crack)
90 for ( ; f_cell!=l_cell; ++f_cell)
94 int inum =
cell->caloDDE()->getSampling();
97 double phic =
cell->phi();
98 double etac =
cell->eta();
99 if (phic-phi < -
pi) phic = phic +
twopi;
100 if (phic-phi >
pi) phic = phic -
twopi;
101 if (etac >= eta-deta && etac <= eta+deta) {
102 if (phic >= phi-dphi && phic <= phi+dphi) {
103 eh_scint +=
cell->e();
111 double granularity = (etamax_crack - etamin_crack)/
correction.size();
112 int ind =
static_cast<int> ((aeta - etamin_crack)/granularity);
115 eh_scint = eh_scint * scint_weight[
ind];
133 (
const std::string&
name)
135 return this->setProperty (StringProperty (
"cells_name",
name));
Const iterator class for DataVector/DataList.
const EventContext & ctx() const
unsigned int size(unsigned int dim=0) const
Return the size of the array along one dimension.
virtual void setenergy(xAOD::CaloCluster *cluster, float energy) const
Constant< float > m_etamax_crack
Constant< float > m_etamin_crack
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
virtual StatusCode initialize() override
Initialize method.
virtual StatusCode initialize() override
Standard Gaudi initialize method.
::StatusCode StatusCode
StatusCode definition for legacy code.
Constant< CxxUtils::Array< 1 > > m_scint_weight
Principal data class for CaloCell clusters.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual void setE(double e)
Set energy.
Data object for each calorimeter readout cell.
virtual double eta() const
Retrieve eta independent of signal state.
Constant< CxxUtils::Array< 1 > > m_correction
virtual double e() const
Retrieve energy independent of signal state.
Context object for retrieving ToolConstant values.
SG::ReadHandleKey< CaloCellContainer > m_cells_name
Property: The name of the container in which to look to find tile cells.
virtual StatusCode setCaloCellContainerName(const std::string &name) override
Change the name of the CaloCellContainer used by this tool.
virtual void makeCorrection(const Context &myctx, xAOD::CaloCluster *cluster) const override
virtual double phi() const
Retrieve phi independent of signal state.