ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TBEMECCellEtaCorrection Class Reference

#include <TBEMECCellEtaCorrection.h>

Inheritance diagram for TBEMECCellEtaCorrection:
Collaboration diagram for TBEMECCellEtaCorrection:

Public Member Functions

 TBEMECCellEtaCorrection (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~TBEMECCellEtaCorrection ()
 
virtual StatusCode initialize () override
 
virtual void MakeCorrection (CaloCell *theCell, const EventContext &ctx) const override
 
virtual StatusCode execute (CaloCellContainer *cellCollection, const EventContext &ctx) const
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static const InterfaceID & interfaceID ()
 

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Static Protected Member Functions

static void setenergy (CaloCell *lar_cell, float energy)
 
static void addenergy (CaloCell *lar_cell, float energy)
 
static void scaleenergy (CaloCell *lar_cell, float scale)
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

bool m_EMEC_response_eta_correction
 
double m_EMEC_eta1
 
double m_EMEC_eta2
 
double m_EMEC_eta3
 
double m_EMEC_eta0_1
 
double m_EMEC_eta0_2
 
double m_EMEC_beta1
 
double m_EMEC_alpha1
 
double m_EMEC_beta2
 
double m_EMEC_alpha2
 
double m_ramp_corr
 
double m_ramp_corr_eta1
 
double m_ramp_corr_eta2
 
double m_EMEC_rescale
 
double m_FCAL_rescale
 
double m_EMEC_1_scale
 
double m_EMEC_2_scale
 
double m_HEC_0_scale
 
double m_HEC_1_scale
 
double m_HEC_2_scale
 
double m_FCAL_0_scale
 
double m_FCAL_1_scale
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 28 of file TBEMECCellEtaCorrection.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ TBEMECCellEtaCorrection()

TBEMECCellEtaCorrection::TBEMECCellEtaCorrection ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 17 of file TBEMECCellEtaCorrection.cxx.

22  m_EMEC_eta1(2.5),m_EMEC_eta2(2.8),m_EMEC_eta3(3.2),
23  m_EMEC_eta0_1(0),
24  m_EMEC_eta0_2(0),
27  m_EMEC_rescale(1.),m_FCAL_rescale(0.9818),
31 {
32  declareInterface<CaloCellCorrection>(this);
33  // Cell level correction of EMEC eta-dependent response
34  declareProperty("EMEC_beta1",m_EMEC_beta1);
35  declareProperty("EMEC_beta2",m_EMEC_beta2);
36  declareProperty("EMEC_alpha1",m_EMEC_alpha1);
37  declareProperty("EMEC_alpha2",m_EMEC_alpha2);
38  declareProperty("ramp_corr",m_ramp_corr);
39  declareProperty("EMEC_rescale",m_EMEC_rescale);
40  declareProperty("FCAL_rescale",m_FCAL_rescale);
41  declareProperty("LowEta",m_EMEC_eta1);
42  declareProperty("MiddleEta",m_EMEC_eta2);
43  declareProperty("HighEta",m_EMEC_eta3);
44 
45  declareProperty("EMEC1_scale",m_EMEC_1_scale);
46  declareProperty("EMEC2_scale",m_EMEC_2_scale);
47 
48  declareProperty("HEC0_scale",m_HEC_0_scale);
49  declareProperty("HEC1_scale",m_HEC_1_scale);
50  declareProperty("HEC2_scale",m_HEC_2_scale);
51 
52  declareProperty("FCAL0_scale",m_FCAL_0_scale);
53  declareProperty("FCAL1_scale",m_FCAL_1_scale);
54 }

◆ ~TBEMECCellEtaCorrection()

TBEMECCellEtaCorrection::~TBEMECCellEtaCorrection ( )
virtual

Definition at line 88 of file TBEMECCellEtaCorrection.cxx.

89 { }

Member Function Documentation

◆ addenergy()

void CaloCellCorrection::addenergy ( CaloCell lar_cell,
float  energy 
)
staticprotectedinherited

Definition at line 94 of file CaloCellCorrection.cxx.

95 {
96  theCell->addEnergy( energy );
97 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ execute()

StatusCode CaloCellCorrection::execute ( CaloCellContainer cellCollection,
const EventContext &  ctx 
) const
virtualinherited

Definition at line 58 of file CaloCellCorrection.cxx.

60 {
61 
62  ATH_MSG_DEBUG("Executing CaloCellCorrection");
63 
64  if (!cellCollection) {
65  ATH_MSG_ERROR( "Cell Correction tool receives invalid cell Collection" );
66  return StatusCode::FAILURE;
67  }
68 
69  // Loop over all the CaloCell Objects and call Make Correction.
70  // Note that this is the base class of all the concrete correction
71  // classes which implement a Make Correction method.
72 
73  for (CaloCell* cell : *cellCollection) {
74  MakeCorrection ( cell, ctx );
75  }
76 
77  // Done, Return success
78 
79  return StatusCode::SUCCESS;
80 
81 }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ initialize()

StatusCode TBEMECCellEtaCorrection::initialize ( )
overridevirtual

Definition at line 57 of file TBEMECCellEtaCorrection.cxx.

58 {
59  MsgStream log(msgSvc(), name());
60 
61  log << MSG::INFO << " TBEMECCellEtaCorrection initialization " << endmsg ;
62 
63  // Initialize variables for correction of EMEC response eta-dependance
64  if (m_EMEC_alpha1 == 0 && m_EMEC_alpha2 == 0 && m_EMEC_beta1 == 0 && m_EMEC_beta2 == 0) {
65  log << MSG::INFO << "No correction of EMEC response eta-dependance"
66  <<endmsg;
67  }
68  else {
72  log << MSG::INFO << "Correction of EMEC response eta-dependance is ON;"
73  <<endmsg;
74  log << MSG::INFO << "EMEC_eta0_1, EMEC_alpha1, EMEC_beta1 = " <<
75  m_EMEC_eta0_1 << " " << m_EMEC_alpha1 << " " << m_EMEC_beta1 << endmsg;
76  log << MSG::INFO << "EMEC_eta0_2, EMEC_alpha2, EMEC_beta2 = " <<
77  m_EMEC_eta0_2 << " " << m_EMEC_alpha2 << " " << m_EMEC_beta2 << endmsg;
78  }
79  log << MSG::INFO << "ramp_corr, ramp_corr_eta1, ramp_corr_eta2 = "
81  log << MSG::INFO << "EMEC_rescale = "<<m_EMEC_rescale<<endmsg;
82  log << MSG::INFO << "FCAL_rescale = "<<m_FCAL_rescale<<endmsg;
83  return StatusCode::SUCCESS;
84 }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& CaloCellCorrection::interfaceID ( )
inlinestaticinherited

Definition at line 54 of file CaloCellCorrection.h.

54 { return IID_CaloCellCorrection;}

◆ MakeCorrection()

void TBEMECCellEtaCorrection::MakeCorrection ( CaloCell theCell,
const EventContext &  ctx 
) const
overridevirtual

Implements CaloCellCorrection.

Definition at line 94 of file TBEMECCellEtaCorrection.cxx.

96 {
97  MsgStream log(msgSvc(), name());
98 
99  const CaloDetDescrElement* elt = theCell->caloDDE();
100 
102  double e = theCell->energy();
103  double eta = theCell->eta();
104  // Cell level correction of EMEC eta-dependent response
105  if (eta > m_EMEC_eta1 && eta < m_EMEC_eta2) {
106  e *= m_EMEC_beta1/
107  (1 + m_EMEC_alpha1*(eta - m_EMEC_eta0_1));
108  }
109  else if (eta > m_EMEC_eta2 && eta < m_EMEC_eta3) {
110  e *= m_EMEC_beta2/
111  (1 + m_EMEC_alpha2*(eta - m_EMEC_eta0_2));
112  }
113  theCell->setEnergy(e);
114  }
115 
116  if (elt->is_lar_em_endcap()) {
117  double e = theCell->energy();
118  double eta = theCell->eta();
119  // Temporary ramp correction for EMEC cells with eta=2.85
121  e /= m_ramp_corr;
122  // theCell->setEnergy(e);
123  }
124  // Temporary correction of EMEC mkA->MeV constant
125  e /= m_EMEC_rescale;
126  theCell->setEnergy(e);
127  }
128 
129  if (elt->is_lar_fcal()) {
130  double e = theCell->energy();
131  // Temporary correction of EMEC mkA->MeV constant
132  e /= m_FCAL_rescale;
133  theCell->setEnergy(e);
134  }
135 
137  switch ( iSamp ) {
138  case CaloCell_ID::EME2 : {
139  theCell->setEnergy(theCell->energy() * m_EMEC_1_scale);
140  break;
141  }
142  case CaloCell_ID::EME3 : {
143  theCell->setEnergy(theCell->energy() * m_EMEC_2_scale);
144  break;
145  }
146  case CaloCell_ID::HEC0 : {
147  theCell->setEnergy(theCell->energy() * m_HEC_0_scale);
148  break;
149  }
150  case CaloCell_ID::HEC1 : {
151  theCell->setEnergy(theCell->energy() * m_HEC_1_scale);
152  break;
153  }
154  case CaloCell_ID::HEC2 : {
155  theCell->setEnergy(theCell->energy() * m_HEC_2_scale);
156  break;
157  }
158  case CaloCell_ID::FCAL0 : {
159  theCell->setEnergy(theCell->energy() * m_FCAL_0_scale);
160  break;
161  }
162  case CaloCell_ID::FCAL1 : {
163  theCell->setEnergy(theCell->energy() * m_FCAL_1_scale);
164  break;
165  }
166  case CaloCell_ID::FCAL2 : {
167  break;
168  }
169  default : {
170  log << MSG::ERROR << "Unknown sampling: "<<iSamp<<endmsg;
171  }
172  }
173 
174 }

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ scaleenergy()

void CaloCellCorrection::scaleenergy ( CaloCell lar_cell,
float  scale 
)
staticprotectedinherited

Definition at line 99 of file CaloCellCorrection.cxx.

100 {
101  theCell->scaleEnergy( scale );
102 }

◆ setenergy()

void CaloCellCorrection::setenergy ( CaloCell lar_cell,
float  energy 
)
staticprotectedinherited

Definition at line 89 of file CaloCellCorrection.cxx.

90 {
91  theCell->setEnergy( energy );
92 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_EMEC_1_scale

double TBEMECCellEtaCorrection::m_EMEC_1_scale
private

Definition at line 62 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_2_scale

double TBEMECCellEtaCorrection::m_EMEC_2_scale
private

Definition at line 63 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_alpha1

double TBEMECCellEtaCorrection::m_EMEC_alpha1
private

Definition at line 51 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_alpha2

double TBEMECCellEtaCorrection::m_EMEC_alpha2
private

Definition at line 53 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_beta1

double TBEMECCellEtaCorrection::m_EMEC_beta1
private

Definition at line 50 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_beta2

double TBEMECCellEtaCorrection::m_EMEC_beta2
private

Definition at line 52 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_eta0_1

double TBEMECCellEtaCorrection::m_EMEC_eta0_1
private

Definition at line 48 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_eta0_2

double TBEMECCellEtaCorrection::m_EMEC_eta0_2
private

Definition at line 49 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_eta1

double TBEMECCellEtaCorrection::m_EMEC_eta1
private

Definition at line 45 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_eta2

double TBEMECCellEtaCorrection::m_EMEC_eta2
private

Definition at line 46 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_eta3

double TBEMECCellEtaCorrection::m_EMEC_eta3
private

Definition at line 47 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_rescale

double TBEMECCellEtaCorrection::m_EMEC_rescale
private

Definition at line 59 of file TBEMECCellEtaCorrection.h.

◆ m_EMEC_response_eta_correction

bool TBEMECCellEtaCorrection::m_EMEC_response_eta_correction
private

Definition at line 44 of file TBEMECCellEtaCorrection.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_FCAL_0_scale

double TBEMECCellEtaCorrection::m_FCAL_0_scale
private

Definition at line 67 of file TBEMECCellEtaCorrection.h.

◆ m_FCAL_1_scale

double TBEMECCellEtaCorrection::m_FCAL_1_scale
private

Definition at line 68 of file TBEMECCellEtaCorrection.h.

◆ m_FCAL_rescale

double TBEMECCellEtaCorrection::m_FCAL_rescale
private

Definition at line 60 of file TBEMECCellEtaCorrection.h.

◆ m_HEC_0_scale

double TBEMECCellEtaCorrection::m_HEC_0_scale
private

Definition at line 64 of file TBEMECCellEtaCorrection.h.

◆ m_HEC_1_scale

double TBEMECCellEtaCorrection::m_HEC_1_scale
private

Definition at line 65 of file TBEMECCellEtaCorrection.h.

◆ m_HEC_2_scale

double TBEMECCellEtaCorrection::m_HEC_2_scale
private

Definition at line 66 of file TBEMECCellEtaCorrection.h.

◆ m_ramp_corr

double TBEMECCellEtaCorrection::m_ramp_corr
private

Definition at line 55 of file TBEMECCellEtaCorrection.h.

◆ m_ramp_corr_eta1

double TBEMECCellEtaCorrection::m_ramp_corr_eta1
private

Definition at line 56 of file TBEMECCellEtaCorrection.h.

◆ m_ramp_corr_eta2

double TBEMECCellEtaCorrection::m_ramp_corr_eta2
private

Definition at line 57 of file TBEMECCellEtaCorrection.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TBEMECCellEtaCorrection::m_EMEC_beta1
double m_EMEC_beta1
Definition: TBEMECCellEtaCorrection.h:50
TBEMECCellEtaCorrection::m_FCAL_1_scale
double m_FCAL_1_scale
Definition: TBEMECCellEtaCorrection.h:68
TBEMECCellEtaCorrection::m_HEC_1_scale
double m_HEC_1_scale
Definition: TBEMECCellEtaCorrection.h:65
ReadCellNoiseFromCool.cell
cell
Definition: ReadCellNoiseFromCool.py:53
TBEMECCellEtaCorrection::m_EMEC_beta2
double m_EMEC_beta2
Definition: TBEMECCellEtaCorrection.h:52
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:83
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
TBEMECCellEtaCorrection::m_EMEC_rescale
double m_EMEC_rescale
Definition: TBEMECCellEtaCorrection.h:59
CaloDetDescrElement
This class groups all DetDescr information related to a CaloCell. Provides a generic interface for al...
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:66
CaloCell_ID_FCS::FCAL1
@ FCAL1
Definition: FastCaloSim_CaloCell_ID.h:41
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
TBEMECCellEtaCorrection::m_EMEC_1_scale
double m_EMEC_1_scale
Definition: TBEMECCellEtaCorrection.h:62
TBEMECCellEtaCorrection::m_HEC_0_scale
double m_HEC_0_scale
Definition: TBEMECCellEtaCorrection.h:64
TBEMECCellEtaCorrection::m_HEC_2_scale
double m_HEC_2_scale
Definition: TBEMECCellEtaCorrection.h:66
CaloCell_ID_FCS::HEC2
@ HEC2
Definition: FastCaloSim_CaloCell_ID.h:29
CaloDetDescrElement::is_lar_em_endcap
bool is_lar_em_endcap() const
cell belongs to EM end cap
Definition: CaloDetDescrElement.cxx:106
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
TBEMECCellEtaCorrection::m_ramp_corr
double m_ramp_corr
Definition: TBEMECCellEtaCorrection.h:55
CaloCell::setEnergy
virtual void setEnergy(float energy)
set energy
Definition: CaloCell.cxx:136
TBEMECCellEtaCorrection::m_ramp_corr_eta1
double m_ramp_corr_eta1
Definition: TBEMECCellEtaCorrection.h:56
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
CaloCell::energy
double energy() const
get energy (data member)
Definition: CaloCell.h:311
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
CaloCellCorrection::MakeCorrection
virtual void MakeCorrection(CaloCell *cellCollection, const EventContext &ctx) const =0
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
AthCommonDataStore
Definition: AthCommonDataStore.h:52
CaloCell_ID_FCS::HEC1
@ HEC1
Definition: FastCaloSim_CaloCell_ID.h:28
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
CaloSampling::CaloSample
CaloSample
Definition: Calorimeter/CaloGeoHelpers/CaloGeoHelpers/CaloSampling.h:22
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
CaloCell::caloDDE
const CaloDetDescrElement * caloDDE() const
get pointer to CaloDetDescrElement (data member)
Definition: CaloCell.h:305
test_pyathena.parent
parent
Definition: test_pyathena.py:15
CaloCellCorrection::CaloCellCorrection
CaloCellCorrection(const std::string &type, const std::string &name, const IInterface *parent)
Definition: CaloCellCorrection.cxx:43
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
TBEMECCellEtaCorrection::m_EMEC_eta0_2
double m_EMEC_eta0_2
Definition: TBEMECCellEtaCorrection.h:49
TBEMECCellEtaCorrection::m_EMEC_eta3
double m_EMEC_eta3
Definition: TBEMECCellEtaCorrection.h:47
CaloDetDescrElement::is_lar_fcal
bool is_lar_fcal() const
cell belongs to FCAL
Definition: CaloDetDescrElement.cxx:138
TBEMECCellEtaCorrection::m_EMEC_response_eta_correction
bool m_EMEC_response_eta_correction
Definition: TBEMECCellEtaCorrection.h:44
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
TBEMECCellEtaCorrection::m_EMEC_2_scale
double m_EMEC_2_scale
Definition: TBEMECCellEtaCorrection.h:63
TBEMECCellEtaCorrection::m_ramp_corr_eta2
double m_ramp_corr_eta2
Definition: TBEMECCellEtaCorrection.h:57
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
CaloCell_ID_FCS::EME3
@ EME3
Definition: FastCaloSim_CaloCell_ID.h:26
TBEMECCellEtaCorrection::m_EMEC_eta0_1
double m_EMEC_eta0_1
Definition: TBEMECCellEtaCorrection.h:48
TBEMECCellEtaCorrection::m_FCAL_0_scale
double m_FCAL_0_scale
Definition: TBEMECCellEtaCorrection.h:67
CaloCell_ID_FCS::HEC0
@ HEC0
Definition: FastCaloSim_CaloCell_ID.h:27
TBEMECCellEtaCorrection::m_EMEC_eta1
double m_EMEC_eta1
Definition: TBEMECCellEtaCorrection.h:45
a
TList * a
Definition: liststreamerinfos.cxx:10
h
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
CaloDetDescrElement::getSampling
CaloCell_ID::CaloSample getSampling() const
cell sampling
Definition: Calorimeter/CaloDetDescr/CaloDetDescr/CaloDetDescrElement.h:395
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TBEMECCellEtaCorrection::m_EMEC_eta2
double m_EMEC_eta2
Definition: TBEMECCellEtaCorrection.h:46
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
TBEMECCellEtaCorrection::m_EMEC_alpha2
double m_EMEC_alpha2
Definition: TBEMECCellEtaCorrection.h:53
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
TBEMECCellEtaCorrection::m_FCAL_rescale
double m_FCAL_rescale
Definition: TBEMECCellEtaCorrection.h:60
CaloCell_ID_FCS::FCAL2
@ FCAL2
Definition: FastCaloSim_CaloCell_ID.h:42
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79
CaloCell_ID_FCS::FCAL0
@ FCAL0
Definition: FastCaloSim_CaloCell_ID.h:40
TBEMECCellEtaCorrection::m_EMEC_alpha1
double m_EMEC_alpha1
Definition: TBEMECCellEtaCorrection.h:51
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
constants.EME2
int EME2
Definition: Calorimeter/CaloClusterCorrection/python/constants.py:56
CaloCell::eta
virtual double eta() const override final
get eta (through CaloDetDescrElement)
Definition: CaloCell.h:366
fitman.k
k
Definition: fitman.py:528