ATLAS Offline Software
Loading...
Searching...
No Matches
CaloTopoTowerMaker Class Reference

Top algorithm to reconstruct xAOD::CaloCluster objects representing topo-towers from CaloClusters. More...

#include <CaloTopoTowerMaker.h>

Inheritance diagram for CaloTopoTowerMaker:
Collaboration diagram for CaloTopoTowerMaker:

Public Member Functions

 CaloTopoTowerMaker (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~CaloTopoTowerMaker () override
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override
virtual StatusCode finalize () override
const std::string & getOutputContainerName () const
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual StatusCode sysExecute (const EventContext &ctx) override
 Execute an algorithm.
virtual const DataObjIDColl & extraOutputDeps () const override
 Return the list of extra output dependencies.
virtual bool filterPassed (const EventContext &ctx) const
 Get filter decision:
virtual void setFilterPassed (bool state, const EventContext &ctx) const
 Set filter decision:
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
virtual StatusCode sysStart () override
 Handle START transition.
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles.
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles.
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T, V, H > &t)
void updateVHKA (Gaudi::Details::PropertyBase &)
MsgStream & msg () const
bool msgLvl (const MSG::Level lvl) const

Protected Member Functions

void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution
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.

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

StatusCode makeContainer ()
 Method to create a CaloClusterContainer together with it's AuxStore and Link container.
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

SG::WriteHandleKey< xAOD::CaloClusterContainer > m_towerOutput
 the name of the key in StoreGate for the output CaloClusterContainer
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_towerCellLinkOutput
 the name of the key in StoreGate for the output CaloClusterCellLinkContainer
ToolHandle< CaloTowerCollectionProcessor > m_towerMakerTool
 Tower makers.
ToolHandleArray< CaloClusterCollectionProcessor > m_towerCorrectionTools
 Tower (cluster) moment makers.
ToolHandle< CaloTowerCollectionProcessor > m_towerCalibratorTool
 Tower calibrator(s).
ServiceHandle< IChronoStatSvc > m_chrono
 Handle to the ChronoStatSvc.
bool m_saveSignalState = { true }
 Keep the individual results of each correction.
bool m_chronoTools = { false }
 Use ChronotStatSvc to monitor each tool.
bool m_useLCWCalibration = { true }
 Use LCW calibration for topo-towers (default is true).
const CaloCell_ID * m_caloCellID =nullptr
 Identifier helper.
DataObjIDColl m_extendedExtraObjects
 Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default).
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default).
std::vector< SG::VarHandleKeyArray * > m_vhka
bool m_varHandleArraysDeclared

Detailed Description

Top algorithm to reconstruct xAOD::CaloCluster objects representing topo-towers from CaloClusters.

Author
Tasnuva Chowdhury
Date
16-September-2020

This class is an Algorithm to reconstruct CaloTopoTowers which are represented by objects of type xAOD::CaloCluster from cells extracted from existing topo-clusters (also represented by xAOD::CaloCluster type objects). The algorithm first extracts all cells form the topo-clusters, stores the LCW calibration weights for each cell (if configured), fills the towers with the cells and applys a topo-tower calibration using the LCW weights (if configured)>

Definition at line 39 of file CaloTopoTowerMaker.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::StoreGateSvc_t
privateinherited

Definition at line 376 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ CaloTopoTowerMaker()

CaloTopoTowerMaker::CaloTopoTowerMaker ( const std::string & name,
ISvcLocator * pSvcLocator )

Definition at line 55 of file CaloTopoTowerMaker.cxx.

57 : AthReentrantAlgorithm(name, pSvcLocator)
58 , m_towerOutput("")
60 , m_towerMakerTool(this)
63 , m_chrono("ChronoStatSvc", name)
64{
65 // Name of Cluster Container to be registered in TDS
66 declareProperty("TowersOutputName",m_towerOutput);
67 declareProperty("TowerCellLinkOutputName",m_towerCellLinkOutput);
68
69 // Name(s) of Cluster Maker Tools
70 declareProperty("TowerMakerTool",m_towerMakerTool);
71
72 // Name(s) of Cluster Correction Tools
73 declareProperty("TowerCorrectionTools",m_towerCorrectionTools);
74
75 // Tower calibrator tool
76 declareProperty("TowerCalibratorTool",m_towerCalibratorTool);
77
78 // save uncalibrated cluster signal state
79 declareProperty("SaveUncalibratedSignalState",m_saveSignalState);
80
81 //Make Chrono Auditors for Cluster maker and correction tools
82 declareProperty("ChronoTools", m_chronoTools);
83
84 // apply LCW calibration for towers
85 declareProperty("UseLCWCalibration",m_useLCWCalibration);
86}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ToolHandle< CaloTowerCollectionProcessor > m_towerCalibratorTool
Tower calibrator(s).
SG::WriteHandleKey< xAOD::CaloClusterContainer > m_towerOutput
the name of the key in StoreGate for the output CaloClusterContainer
ToolHandle< CaloTowerCollectionProcessor > m_towerMakerTool
Tower makers.
bool m_useLCWCalibration
Use LCW calibration for topo-towers (default is true).
SG::WriteHandleKey< CaloClusterCellLinkContainer > m_towerCellLinkOutput
the name of the key in StoreGate for the output CaloClusterCellLinkContainer
ToolHandleArray< CaloClusterCollectionProcessor > m_towerCorrectionTools
Tower (cluster) moment makers.
bool m_chronoTools
Use ChronotStatSvc to monitor each tool.
bool m_saveSignalState
Keep the individual results of each correction.
ServiceHandle< IChronoStatSvc > m_chrono
Handle to the ChronoStatSvc.

◆ ~CaloTopoTowerMaker()

CaloTopoTowerMaker::~CaloTopoTowerMaker ( )
overridevirtualdefault

Member Function Documentation

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }

◆ declareProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::declareProperty ( Gaudi::Property< T, V, H > & t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145 {
146 typedef typename SG::HandleClassifier<T>::type htype;
148 }
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

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

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

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode CaloTopoTowerMaker::execute ( const EventContext & ctx) const
overridevirtual

Definition at line 151 of file CaloTopoTowerMaker.cxx.

152{
153
154 // make a Cluster Container
155 SG::WriteHandle<xAOD::CaloClusterContainer> clusColl (m_towerOutput, ctx);
157
158 std::string chronoName(this->name()+std::string("_"));
159 if ( !m_useLCWCalibration ) {
160 // fill the towers without preparing for calibratoin
161 if ( m_chronoTools ) { m_chrono->chronoStart(chronoName+m_towerMakerTool->name()); }
162 ATH_CHECK( m_towerMakerTool->execute(ctx,clusColl.ptr(),nullptr) );
163 if ( m_chronoTools ) { m_chrono->chronoStop(chronoName+m_towerMakerTool->name()); }
164 // save original signals bevore corrections and calibrations
165 if ( m_saveSignalState ) {
166 for (xAOD::CaloCluster* fClus : *clusColl) {
167 fClus->setRawE (fClus->e() );
168 fClus->setRawEta(fClus->eta());
169 fClus->setRawPhi(fClus->phi());
170 fClus->setRawM (fClus->m() );
171 }//end loop over clusters
172 }
173 // apply the correction tools (really moment calculators)
174 for ( auto iter(m_towerCorrectionTools.begin()); iter != m_towerCorrectionTools.end(); ++iter ) {
175 if ( m_chronoTools ) { m_chrono->chronoStart(chronoName+iter->name()); }
176 ATH_CHECK( (*iter)->execute(ctx,clusColl.ptr()) );
177 if ( m_chronoTools ) { m_chrono->chronoStop(chronoName+iter->name()); }
178 } // correction tool loop
179 } else {
180 // fill the towers with LCW calibration
181 std::unique_ptr<CaloCellClusterWeights> cellWeights=std::make_unique<CaloCellClusterWeights>(m_caloCellID->calo_cell_hash_max());
182 if ( m_chronoTools ) { m_chrono->chronoStart(chronoName+m_towerMakerTool->name()); }
183 ATH_CHECK( m_towerMakerTool->execute(ctx,clusColl.ptr(),cellWeights.get()) );
184 if ( m_chronoTools ) { m_chrono->chronoStop(chronoName+m_towerMakerTool->name()); }
185 // save original signals bevore corrections and calibrations
186 if ( m_saveSignalState ) {
187 for (xAOD::CaloCluster* fClus : *clusColl) {
188 fClus->setRawE (fClus->e() );
189 fClus->setRawEta(fClus->eta());
190 fClus->setRawPhi(fClus->phi());
191 fClus->setRawM (fClus->m() );
192 }//end loop over clusters
193 }
194 // apply the correction tools (really moment calculators)
195 for ( auto iter(m_towerCorrectionTools.begin()); iter != m_towerCorrectionTools.end(); ++iter ) {
196 if ( m_chronoTools ) { m_chrono->chronoStart(chronoName+iter->name()); }
197 ATH_CHECK( (*iter)->execute(ctx,clusColl.ptr()) );
198 if ( m_chronoTools ) { m_chrono->chronoStop(chronoName+iter->name()); }
199 } // correction tool loop
200 // apply calibration
201 if ( m_chronoTools ) { m_chrono->chronoStart(chronoName+m_towerCalibratorTool->name()); }
202 ATH_CHECK( m_towerCalibratorTool->execute(ctx,clusColl.ptr(),cellWeights.get()) );
203 if ( m_chronoTools ) { m_chrono->chronoStop(chronoName+m_towerCalibratorTool->name()); }
204 } // end of processing blocks
205
206 ATH_MSG_DEBUG("Created tower container (of type xAOD::CaloClusterContainer) with " << clusColl->size() << " towers");
207 SG::WriteHandle<CaloClusterCellLinkContainer> cellLinks (m_towerCellLinkOutput, ctx);
208 ATH_CHECK( cellLinks.record (std::make_unique<CaloClusterCellLinkContainer>()) );
209 CaloClusterStoreHelper::finalizeClusters (ctx, clusColl, cellLinks);
210 return StatusCode::SUCCESS;
211}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
static void finalizeClusters(const EventContext &ctx, SG::WriteHandle< xAOD::CaloClusterContainer > &outClusterContainer, SG::WriteHandle< CaloClusterCellLinkContainer > &outClusterContainerCellLink)
Finalize clusters (move CaloClusterCellLink to a separate container).
static StatusCode AddContainerWriteHandle(SG::WriteHandle< xAOD::CaloClusterContainer > &clusColl)
Creates a new xAOD::CaloClusterContainer in the given WriteHandle + CaloClusterAuxContainer and recor...
const CaloCell_ID * m_caloCellID
Identifier helper.
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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

◆ extraOutputDeps()

const DataObjIDColl & AthCommonAlgorithm< Gaudi::Algorithm >::extraOutputDeps ( ) const
overridevirtualinherited

Return the list of extra output dependencies.

This list is extended to include symlinks implied by inheritance relations.

Definition at line 89 of file AthCommonAlgorithm.cxx.

54{
55 // If we didn't find any symlinks to add, just return the collection
56 // from the base class. Otherwise, return the extended collection.
57 if (!m_extendedExtraObjects.empty()) {
59 }
61}
Common base class for algorithms.

◆ filterPassed()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::filterPassed ( const EventContext & ctx) const
inlinevirtualinherited

Get filter decision:

Definition at line 93 of file AthCommonAlgorithm.h.

93 {
94 return execState( ctx ).filterPassed();
95 }
virtual bool filterPassed(const EventContext &ctx) const
Get filter decision:

◆ finalize()

StatusCode CaloTopoTowerMaker::finalize ( )
overridevirtual

Definition at line 145 of file CaloTopoTowerMaker.cxx.

145 {
146 return StatusCode::SUCCESS;
147}

◆ getOutputContainerName()

const std::string & CaloTopoTowerMaker::getOutputContainerName ( ) const

Definition at line 214 of file CaloTopoTowerMaker.cxx.

214 {
215 return m_towerOutput.key();
216}

◆ initialize()

StatusCode CaloTopoTowerMaker::initialize ( )
overridevirtual

Definition at line 95 of file CaloTopoTowerMaker.cxx.

96{
97
98 // -- retrieve the needed tower maker tool
99 if (m_towerMakerTool.retrieve().isFailure()) {
100 ATH_MSG_ERROR("Failed to retrieve essential tower maker tool"
102 } else {
103 ATH_MSG_DEBUG("Successfully retrieved tower maker tool "
105 }
106
107 // -- retrieve the (optional) list of correction tools
108 if (m_towerCorrectionTools.retrieve().isFailure()) {
109 ATH_MSG_ERROR("Failed to retrieve requested tower correction tools "
111 } else {
112 ATH_MSG_DEBUG("Successfully retrieved tower correction tools "
114 }
115
116 // -- retrieve tower calibrator tool
117 if ( m_useLCWCalibration ) {
118 if ( m_towerCalibratorTool.retrieve().isFailure() ) {
119 ATH_MSG_ERROR("Failed to retrieve requested tower calibrator tool " << m_towerCalibratorTool);
120 } else {
121 ATH_MSG_DEBUG("Sucessfully retrieved requested tower calibrator tool " << m_towerCalibratorTool);
122 }
123 }
124
125 if (m_chronoTools) {
126 msg(MSG::INFO) << "Will use ChronoStatSvc to monitor ClusterMaker and ClusterCorrection tools" << endmsg;
127 ATH_CHECK( m_chrono.retrieve() );
128 }
129
130 ATH_CHECK( m_towerOutput.initialize() );
131
132 if (m_towerCellLinkOutput.key().empty()) {
133 m_towerCellLinkOutput = m_towerOutput.key() + "_links";
134 }
135 ATH_CHECK( m_towerCellLinkOutput.initialize() );
136
137
138 ATH_CHECK(detStore()->retrieve(m_caloCellID,"CaloCell_ID"));
139
140 return StatusCode::SUCCESS;
141}
#define endmsg
#define ATH_MSG_ERROR(x,...)
const ServiceHandle< StoreGateSvc > & detStore() const

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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.

◆ isClonable()

virtual bool AthCommonAlgorithm< Gaudi::Algorithm >::isClonable ( ) const
inlineoverridevirtualinherited

Specify if the algorithm is clonable.

Only relevant for non-reentrant algorithms. Actual number of clones needs to be set via the "Cardinality" property.

Reimplemented in AFP_DigiTop, AlgB, AlgT, BCM_Digitization, CscDigitBuilder, CscDigitToCscRDO, G4AtlasAlg, G4RunAlg, HGTD_Digitization, HiveAlgBase, InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ISF::SimKernelMT, ITk::StripDigitization, ITkPixelCablingAlg, ITkStripCablingAlg, LArHitEMapMaker, LArTTL1Maker, LUCID_DigiTop, LVL1::L1TopoSimulation, MergeCalibHits, MergeGenericMuonSimHitColl, MergeHijingPars, MergeMcEventCollection, MergeTrackRecordCollection, MergeTruthJets, MergeTruthParticles, MuonDigitizer, PileUpMTAlg, PixelDigitization, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_Digitization, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, SGInputLoader, Simulation::BeamEffectsAlg, TileHitVecToCnt, TileMuonFitter, TilePulseForTileMuonReceiver, TileRawChannelMaker, TRTDigitization, and ZDC_DigiTop.

Definition at line 68 of file AthCommonAlgorithm.h.

68 {
69 return true;
70 }

◆ makeContainer()

StatusCode CaloTopoTowerMaker::makeContainer ( )
private

Method to create a CaloClusterContainer together with it's AuxStore and Link container.

◆ msg()

MsgStream & AthCommonMsg< Gaudi::Algorithm >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

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

◆ msgLvl()

bool AthCommonMsg< Gaudi::Algorithm >::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< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::renounce ( T & h)
inlineprotectedinherited

Definition at line 368 of file AthCommonDataStore.h.

369 {
370 h.renounce();
372 }
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()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 352 of file AthCommonDataStore.h.

352 {
354 }

◆ setFilterPassed()

virtual void AthCommonAlgorithm< Gaudi::Algorithm >::setFilterPassed ( bool state,
const EventContext & ctx ) const
inlinevirtualinherited

Set filter decision:

Definition at line 99 of file AthCommonAlgorithm.h.

99 {
101 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const
Set filter decision:

◆ sysExecute()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysExecute ( const EventContext & ctx)
overridevirtualinherited

Execute an algorithm.

We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.

Reimplemented in AthAnalysisAlgorithm.

Definition at line 80 of file AthCommonAlgorithm.cxx.

41{
42 return BaseAlg::sysExecute (ctx);
43}

◆ sysInitialize()

StatusCode AthCommonAlgorithm< Gaudi::Algorithm >::sysInitialize ( )
overridevirtualinherited

Override sysInitialize.

Override sysInitialize from the base class.

Loop through all output handles, and if they're WriteCondHandles, automatically register them and this Algorithm with the CondSvc

Scan through all outputHandles, and if they're WriteCondHandles, register them with the CondSvc

Reimplemented from AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >.

Reimplemented in AthAnalysisAlgorithm, AthHistogramAlgorithm, HypoBase, InputMakerBase, and PyAthena::Alg.

Definition at line 60 of file AthCommonAlgorithm.cxx.

71 {
73
74 if (sc.isFailure()) {
75 return sc;
76 }
77
78 ServiceHandle<ICondSvc> cs("CondSvc",name());
79 for (auto h : outputHandles()) {
80 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
81 // do this inside the loop so we don't create the CondSvc until needed
82 if ( cs.retrieve().isFailure() ) {
83 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
85 }
86 if (cs->regHandle(this,*h).isFailure()) {
88 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
89 << " with CondSvc");
90 }
91 }
92 }
93 return sc;
94}
#define ATH_MSG_WARNING(x,...)
virtual StatusCode sysInitialize() override
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::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< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 298 of file AthCommonDataStore.h.

298 {
299 for (auto &a : m_vhka) {
301 for (auto k : keys) {
302 k->setOwner(this);
303 }
304 }
305 }

Member Data Documentation

◆ m_caloCellID

const CaloCell_ID* CaloTopoTowerMaker::m_caloCellID =nullptr
private

Identifier helper.

Definition at line 111 of file CaloTopoTowerMaker.h.

◆ m_chrono

ServiceHandle<IChronoStatSvc> CaloTopoTowerMaker::m_chrono
private

Handle to the ChronoStatSvc.

Definition at line 88 of file CaloTopoTowerMaker.h.

◆ m_chronoTools

bool CaloTopoTowerMaker::m_chronoTools = { false }
private

Use ChronotStatSvc to monitor each tool.

Definition at line 104 of file CaloTopoTowerMaker.h.

104{ false };

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 381 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 378 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

DataObjIDColl AthCommonAlgorithm< Gaudi::Algorithm >::m_extendedExtraObjects
privateinherited

Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.

Empty if no symlinks were found.

Definition at line 108 of file AthCommonAlgorithm.h.

◆ m_saveSignalState

bool CaloTopoTowerMaker::m_saveSignalState = { true }
private

Keep the individual results of each correction.

If true, we keep in StoreGate the complete list of clusters before each correction has been performed.

controls saving the uncalibrated signal state just before the first CaloClusterCorrectionTool is invoked. Is a configurable property with default value true.

Definition at line 101 of file CaloTopoTowerMaker.h.

101{ true };

◆ m_towerCalibratorTool

ToolHandle<CaloTowerCollectionProcessor> CaloTopoTowerMaker::m_towerCalibratorTool
private

Tower calibrator(s).

This tool provides the (optional) LCW calibration.

Definition at line 85 of file CaloTopoTowerMaker.h.

◆ m_towerCellLinkOutput

SG::WriteHandleKey<CaloClusterCellLinkContainer> CaloTopoTowerMaker::m_towerCellLinkOutput
private

the name of the key in StoreGate for the output CaloClusterCellLinkContainer

Definition at line 66 of file CaloTopoTowerMaker.h.

◆ m_towerCorrectionTools

ToolHandleArray<CaloClusterCollectionProcessor> CaloTopoTowerMaker::m_towerCorrectionTools
private

Tower (cluster) moment makers.

The tools in this list calculate cluster moments for towers after those are filled. The tools are the as the ones used for topo-clusters. Any number of tools can be scheduled.

Definition at line 80 of file CaloTopoTowerMaker.h.

◆ m_towerMakerTool

ToolHandle<CaloTowerCollectionProcessor> CaloTopoTowerMaker::m_towerMakerTool
private

Tower makers.

This tool is the tower maker. It fills a xAOD::CaloClusterContainer with clusters representing towers and also retuns the LCW cell weights if configured.

Definition at line 73 of file CaloTopoTowerMaker.h.

◆ m_towerOutput

SG::WriteHandleKey<xAOD::CaloClusterContainer> CaloTopoTowerMaker::m_towerOutput
private

the name of the key in StoreGate for the output CaloClusterContainer

Definition at line 62 of file CaloTopoTowerMaker.h.

◆ m_useLCWCalibration

bool CaloTopoTowerMaker::m_useLCWCalibration = { true }
private

Use LCW calibration for topo-towers (default is true).

Definition at line 107 of file CaloTopoTowerMaker.h.

107{ true };

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::m_varHandleArraysDeclared
privateinherited

Definition at line 387 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 386 of file AthCommonDataStore.h.


The documentation for this class was generated from the following files: