9#include "CaloDetDescr/CaloDetDescrElement.h"
13#include "GaudiKernel/MsgStream.h"
18 const std::string& name,
19 const IInterface* parent)
32 declareInterface<CaloCellCorrection>(
this);
59 MsgStream log(msgSvc(), name());
61 log << MSG::INFO <<
" TBEMECCellEtaCorrection initialization " <<
endmsg ;
65 log << MSG::INFO <<
"No correction of EMEC response eta-dependance"
72 log << MSG::INFO <<
"Correction of EMEC response eta-dependance is ON;"
74 log << MSG::INFO <<
"EMEC_eta0_1, EMEC_alpha1, EMEC_beta1 = " <<
76 log << MSG::INFO <<
"EMEC_eta0_2, EMEC_alpha2, EMEC_beta2 = " <<
79 log << MSG::INFO <<
"ramp_corr, ramp_corr_eta1, ramp_corr_eta2 = "
83 return StatusCode::SUCCESS;
95 const EventContext& )
const
97 MsgStream log(msgSvc(), name());
102 double e = theCell->
energy();
103 double eta = theCell->
eta();
117 double e = theCell->
energy();
118 double eta = theCell->
eta();
130 double e = theCell->
energy();
138 case CaloCell_ID::EME2 : {
142 case CaloCell_ID::EME3 : {
146 case CaloCell_ID::HEC0 : {
150 case CaloCell_ID::HEC1 : {
154 case CaloCell_ID::HEC2 : {
158 case CaloCell_ID::FCAL0 : {
162 case CaloCell_ID::FCAL1 : {
166 case CaloCell_ID::FCAL2 : {
170 log << MSG::ERROR <<
"Unknown sampling: "<<iSamp<<
endmsg;
Scalar eta() const
pseudorapidity method
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
CaloSampling::CaloSample CaloSample
Data object for each calorimeter readout cell.
double energy() const
get energy (data member)
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
virtual double eta() const override final
get eta (through CaloDetDescrElement)
virtual void setEnergy(float energy)
set energy
This class groups all DetDescr information related to a CaloCell.
CaloCell_ID::CaloSample getSampling() const
cell sampling
bool is_lar_em_endcap() const
cell belongs to EM end cap
bool is_lar_fcal() const
cell belongs to FCAL
virtual void MakeCorrection(CaloCell *theCell, const EventContext &ctx) const override
virtual ~TBEMECCellEtaCorrection()
bool m_EMEC_response_eta_correction
virtual StatusCode initialize() override
TBEMECCellEtaCorrection(const std::string &type, const std::string &name, const IInterface *parent)