#include <CaloCellPedestalCorr.h>
Definition at line 19 of file CaloCellPedestalCorr.h.
◆ StoreGateSvc_t
◆ CaloCellPedestalCorr()
| CaloCellPedestalCorr::CaloCellPedestalCorr |
( |
const std::string & | type, |
|
|
const std::string & | name, |
|
|
const IInterface * | parent ) |
◆ ~CaloCellPedestalCorr()
| virtual CaloCellPedestalCorr::~CaloCellPedestalCorr |
( |
| ) |
|
|
inlinevirtual |
◆ declareGaudiProperty()
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
158 {
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
◆ DeclareInterfaceID()
◆ declareProperty()
Definition at line 145 of file AthCommonDataStore.h.
145 {
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
◆ detStore()
◆ evtStore()
◆ extraDeps_update_handler()
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 CaloCellPedestalCorr::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 44 of file CaloCellPedestalCorr.cxx.
45{
46 ATH_MSG_INFO(
" in CaloCellPedestalCorr::initialize() " );
47
49
52
53 IdentifierHash hashMin;
55
57 return StatusCode::SUCCESS;
58}
#define ATH_CHECK
Evaluate an expression and check for errors.
const ServiceHandle< StoreGateSvc > & detStore() const
IdentifierHash m_larHashMax
SG::ReadHandleKey< CaloBCIDAverage > m_caloBCIDAvg
const CaloCell_ID * m_cellId
Gaudi::Property< bool > m_isMC
SG::ReadCondHandleKey< CaloCellPedShift > m_pedShiftKey
retrieve(aClass, aKey=None)
◆ inputHandles()
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.
◆ msg()
◆ msgLvl()
| bool AthCommonMsg< AlgTool >::msgLvl |
( |
const MSG::Level | lvl | ) |
const |
|
inlineinherited |
◆ outputHandles()
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.
◆ process()
| StatusCode CaloCellPedestalCorr::process |
( |
CaloCellContainer * | theCellContainer, |
|
|
const EventContext & | ctx ) const |
|
overridevirtual |
Implements ICaloCellMakerTool.
Definition at line 61 of file CaloCellPedestalCorr.cxx.
61 {
62
63 const CaloCellPedShift* pedShifts=nullptr;
64
66 SG::ReadCondHandle<CaloCellPedShift> pedShiftHdl{
m_pedShiftKey,ctx};
67 pedShifts=*pedShiftHdl;
68 }
69
70 const CaloBCIDAverage* bcidavgshift=nullptr;
72 SG::ReadHandle<CaloBCIDAverage> bcidavgshiftHdl(
m_caloBCIDAvg,ctx);
73 bcidavgshift=&(*bcidavgshiftHdl);
74 }
75
76
77
78 for (CaloCell* theCell : *theCellContainer) {
79 const IdentifierHash
cellHash=theCell->caloDDE()->calo_hash();
80
82
83 float pedestal=0;
86 pedestal = pedShifts->
pedShift(cellHash,dbGain);
87 }
88
89 if (bcidavgshift) {
91 }
92
93 theCell->addEnergy(-pedestal);
94 }
95
96 return StatusCode::SUCCESS;
97}
float averageOflHash(const IdentifierHash h) const
float pedShift(const IdentifierHash hash, const int gain) const
static unsigned int getDbCaloGain(int caloGain)
Returns the non-negative gainId to be used with the COOL DB.
bool test(const uint16_t prov, const LArProvenance check)
◆ renounce()
Definition at line 380 of file AthCommonDataStore.h.
381 {
384 }
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)
◆ renounceArray()
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
Definition at line 308 of file AthCommonDataStore.h.
308 {
309
310
313 for (
auto k :
keys) {
315 }
316 }
317 }
std::vector< SG::VarHandleKeyArray * > m_vhka
◆ m_caloBCIDAvg
Definition at line 40 of file CaloCellPedestalCorr.h.
40{this,"CaloBCIDAverageKey","","SG Key of CaloBCIDAverage object"};
◆ m_cellId
| const CaloCell_ID* CaloCellPedestalCorr::m_cellId =nullptr |
|
private |
◆ m_detStore
◆ m_evtStore
◆ m_isMC
| Gaudi::Property<bool> CaloCellPedestalCorr::m_isMC {this,"isMC",false,"Data/MC flag"} |
|
private |
◆ m_larHashMax
◆ m_pedShiftKey
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files: