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

#include <CaloTopoTowerAlgorithm.h>

Inheritance diagram for CaloTopoTowerAlgorithm:
Collaboration diagram for CaloTopoTowerAlgorithm:

Public Types

typedef CaloTopoTowerBuilderToolBase tool_type
typedef std::vector< tool_type * > tool_store
typedef tool_store::const_iterator tool_iterator

Public Member Functions

 CaloTopoTowerAlgorithm (const std::string &name, ISvcLocator *pService)
 Algorithm constructor.
virtual ~CaloTopoTowerAlgorithm ()
virtual StatusCode initialize () override
 inherited from Algorithm
virtual StatusCode execute (const EventContext &ctx) const override
virtual StatusCode finalize () override
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.

Protected Attributes

Gaudi::Property< bool > m_genericLink {this, "GenericLinked", true}
std::vector< std::string > m_toolNames
ToolHandleArray< ICaloTopoTowerBuilderToolBase > m_ptools {this, "TowerBuilderTools", {}}
tool_store m_tools
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey {this, "CellContainerName", "AllCalo"}
SG::ReadHandleKey< CaloClusterContainer > m_clusterKey {this, "ClusterContainerName", "CaloTopoClusters"}
SG::ReadHandleKey< CaloCell2ClusterMap > m_cellToClusterMapKey {this, "Cell2ClusterMapName", "CaloCell2TopoCluster"}
SG::ReadHandleKey< CaloTowerContainer > m_towerContainerKey {this, "InputTowerContainerName", "CmbTower"}
SG::WriteHandleKey< CaloTopoTowerContainer > m_newTowerContainerKey {this, "OutputTowerContainerName", "TopoTower"}
Gaudi::Property< double > m_minimumCellEnergy {this, "MinimumCellEnergy", -1000000000.0}
Gaudi::Property< double > m_minimumClusterEnergy {this, "MinimumClusterEnergy", -1000000000.0}
Gaudi::Property< bool > m_useCellWeights {this, "useCellWeight", true}
Gaudi::Property< float > m_noiseSigma {this, "DefaultNoiseSigma", 10.0}
Gaudi::Property< float > m_cellESignificanceThreshold {this, "CellEnergySignificance", -1.f}
Gaudi::Property< std::vector< std::string > > m_includedCalos {this, "IncludedCalos", {}}
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
bool m_caloSelection {false}

Private Types

typedef ServiceHandle< StoreGateSvc > StoreGateSvc_t

Private Member Functions

Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

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

Definition at line 41 of file CaloTopoTowerAlgorithm.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 376 of file AthCommonDataStore.h.

◆ tool_iterator

typedef tool_store::const_iterator CaloTopoTowerAlgorithm::tool_iterator

Definition at line 47 of file CaloTopoTowerAlgorithm.h.

◆ tool_store

Definition at line 46 of file CaloTopoTowerAlgorithm.h.

◆ tool_type

Constructor & Destructor Documentation

◆ CaloTopoTowerAlgorithm()

CaloTopoTowerAlgorithm::CaloTopoTowerAlgorithm ( const std::string & name,
ISvcLocator * pService )

Algorithm constructor.

Definition at line 13 of file CaloTopoTowerAlgorithm.cxx.

15 : AthReentrantAlgorithm(name,pSvcLocator)
16{
17}

◆ ~CaloTopoTowerAlgorithm()

CaloTopoTowerAlgorithm::~CaloTopoTowerAlgorithm ( )
virtualdefault

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 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ 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 CaloTopoTowerAlgorithm::execute ( const EventContext & ctx) const
overridevirtual

retrieve existing Tower container

get CaloCell container from StoreGate

+++ pick up TopoCluster from StoreGate

+++ pick up CaloCell2ClusterMap from StoreGate

Definition at line 130 of file CaloTopoTowerAlgorithm.cxx.

131{
132
134 // Re-allocate Services //
136
137 //timing
138 IChronoStatSvc* theTicker = chronoSvc();
139
141 // Tool Processing //
144 SG::ReadHandle<CaloTowerContainer> towerContainer(m_towerContainerKey, ctx);
145 if ( !towerContainer.isValid() ) {
146 ATH_MSG_WARNING( " cannot retrieve tower container with key " << towerContainer.name() );
147 return StatusCode::SUCCESS;
148 }
149
151 SG::ReadHandle<CaloCellContainer> theCells(m_cellContainerKey, ctx);
152 if ( !theCells.isValid()) {
153 ATH_MSG_WARNING( " cannot retrieve cell container with key " << theCells.name() );
154 return StatusCode::SUCCESS;
155 }
156 ATH_MSG_DEBUG( "CaloTopoTowerAlgorithm::execute " << theCells.name() << " size= " << theCells->size() );
157
159 SG::ReadHandle<CaloClusterContainer> clusters(m_clusterKey, ctx);
160
161 if ( !clusters.isValid() )
162 {
163 ATH_MSG_WARNING( "cannot retrieve CaloClusterContainer with key <"
164 << clusters.name() << ">" );
165 return StatusCode::SUCCESS;
166 }
167
169 SG::ReadHandle<CaloCell2ClusterMap> cellToClusterMap(m_cellToClusterMapKey, ctx);
170 if ( !cellToClusterMap.isValid() ){
171 ATH_MSG_WARNING( "cannot retrieve CaloCell2ClusterMap with key <"
172 << cellToClusterMap.name() << ">" );
173 return StatusCode::SUCCESS;
174 }
175
176 ATH_MSG_DEBUG( "Successfully retrieved CaloCell2ClusterMap <"<< cellToClusterMap.name() << ">" );
177
178 SG::WriteHandle<CaloTopoTowerContainer> theTowers( m_newTowerContainerKey, ctx);
179 ATH_CHECK( theTowers.record (std::make_unique<CaloTopoTowerContainer>(towerContainer->towerseg())) );
180
182 //Starting to save variable to CaloTopoTowerContainer
183 //
184
185 theTowers->SetTowers(towerContainer.cptr());
186 theTowers->SetClusters(clusters.ptr());
187 theTowers->SetCells(theCells.cptr());
188 theTowers->SetCellToClusterMap(cellToClusterMap.cptr());
189
190 theTowers->SetMinimumCellEnergy(m_minimumCellEnergy);
191 theTowers->SetMinimumClusterEnergy(m_minimumClusterEnergy);
192 theTowers->SetUseCellWeights(m_useCellWeights);
193
194 // Noise tool stuff
195 theTowers->SetNoiseSigma(m_noiseSigma);
196 theTowers->SetCellESignificanceThreshold(m_cellESignificanceThreshold);
197
198 // List of calorimeters from which to use cells
199 theTowers->SetCaloIndices(m_caloIndices);
200 theTowers->SetCaloSelection(m_caloSelection);
201
202 //
203 //Finished saving variable to CaloTopoTowerContainer
205
206 ToolHandleArray<ICaloTopoTowerBuilderToolBase>::const_iterator firstITool = m_ptools.begin();
207 ToolHandleArray<ICaloTopoTowerBuilderToolBase>::const_iterator lastITool = m_ptools.end();
208 StatusCode processStatus = StatusCode::SUCCESS;
209 //
210 // loop stops only when Failure indicated by one of the tools
211 //
212
213 ATH_MSG_DEBUG( "In execute() " );
214
215 while ( ! processStatus.isFailure() && firstITool != lastITool )
216 {
217 // CaloTopoTowerBuilderToolBase* pTool = *firstTool;
218 //sc = (*firstITool).retrieve();
219 //if ( sc.isFailure() ) { log << MSG::INFO << "error retrieving tool " << endmsg; }
220
221 //if ( (*firstITool).empty() ) { log << MSG::INFO << "tool is empty " << endmsg; }
222
223 //ATH_MSG_INFO( "tool retrieved, going to start " );
224 if ( theTicker != nullptr )
225 {
226 // ATH_MSG_INFO( "Chrono start " );
227 theTicker->chronoStart((*firstITool)->name());
228 }
229 /* ATH_MSG_INFO( "executing tool: " << (*firstITool)->name() );
230 ATH_MSG_INFO( "this is &(firstITool): " << &(firstITool) );
231 ATH_MSG_INFO( "this is (*firstITool): " << (*firstITool) );
232 ATH_MSG_INFO( "this is &(*firstITool): " << &(*firstITool) );
233 ATH_MSG_INFO( "this is &(*(*firstITool)): " << &(*(*firstITool)) );
234 ATH_MSG_INFO( "this is theTowers: " << theTowers );
235 */
236
237 processStatus = (*firstITool)->execute(ctx, theTowers.ptr());
238
239 // ATH_MSG_INFO( "processStatus is: " << processStatus );
240
241
242 if ( theTicker != nullptr )
243 {
244 // ATH_MSG_INFO( "Chrono stop " );
245 theTicker->chronoStop((*firstITool)->name());
246 }
247 if ( ! processStatus.isFailure() )
248 {
249 ATH_MSG_DEBUG( (*firstITool)->name()
250 << ": CaloTopoTowerContainer::size() = "
251 << theTowers->size() );
252 ++firstITool;
253 }
254 else
255 {
256 // some problem - but do not skip event loop!
257 ATH_MSG_ERROR( "problems while or after processing tool \042"
258 << (*firstITool)->name()
259 << "\042 - cross-check CaloTopoTowerContainer::size() = "
260 << theTowers->size() );
261 ++firstITool;
262 }
263 }
264
265 return StatusCode::SUCCESS;
266}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_ERROR(x,...)
#define ATH_MSG_WARNING(x,...)
SG::ReadHandleKey< CaloTowerContainer > m_towerContainerKey
Gaudi::Property< double > m_minimumCellEnergy
Gaudi::Property< bool > m_useCellWeights
Gaudi::Property< double > m_minimumClusterEnergy
SG::ReadHandleKey< CaloClusterContainer > m_clusterKey
std::vector< CaloCell_ID::SUBCALO > m_caloIndices
SG::ReadHandleKey< CaloCellContainer > m_cellContainerKey
Gaudi::Property< float > m_noiseSigma
ToolHandleArray< ICaloTopoTowerBuilderToolBase > m_ptools
SG::ReadHandleKey< CaloCell2ClusterMap > m_cellToClusterMapKey
SG::WriteHandleKey< CaloTopoTowerContainer > m_newTowerContainerKey
Gaudi::Property< float > m_cellESignificanceThreshold
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ 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 CaloTopoTowerAlgorithm::finalize ( )
overridevirtual

Definition at line 272 of file CaloTopoTowerAlgorithm.cxx.

273{
274 return StatusCode::SUCCESS;
275}

◆ initialize()

StatusCode CaloTopoTowerAlgorithm::initialize ( )
overridevirtual

inherited from Algorithm

Definition at line 26 of file CaloTopoTowerAlgorithm.cxx.

27{
28 ATH_CHECK(m_cellContainerKey.initialize());
29 ATH_CHECK(m_clusterKey.initialize());
30 ATH_CHECK(m_cellToClusterMapKey.initialize());
31 ATH_CHECK(m_towerContainerKey.initialize());
33
34 m_caloIndices.clear();
35 for ( unsigned int iCalos=0; iCalos< m_includedCalos.size(); iCalos++ )
36 {
37 if ( m_includedCalos[iCalos] == "LAREM" )
38 {
40 }
41 else if ( m_includedCalos[iCalos] == "LARHEC")
42 {
44 }
45 else if ( m_includedCalos[iCalos] == "LARFCAL" )
46 {
48 }
49 else if ( m_includedCalos[iCalos] == "TILE" )
50 {
52 }
53 }
54
55 m_caloSelection=false;
56 unsigned int nSubCalo=static_cast<int>(CaloCell_ID::NSUBCALO) ;
57 if (!m_caloIndices.empty() && m_caloIndices.size()<nSubCalo) m_caloSelection=true;
58
59 ATH_MSG_INFO( " Calo selection applied ? " << m_caloSelection );
60 if (m_caloSelection) {
61 msg() << MSG::INFO << " subcalo selected ";
62 for (unsigned int iCalos=0;iCalos< m_includedCalos.size(); iCalos++ )
63 msg() << MSG::INFO << " " << m_includedCalos[iCalos];
64 msg() << MSG::INFO << " " << endmsg;
65 }
66
67
69 // Allocate Tools //
71
72 // check tool names
73 if ( m_ptools.empty() )
74 {
75 ATH_MSG_ERROR( "no tools given for this algorithm." );
76 return StatusCode::FAILURE;
77 }
78
79 // find tools
80
81 unsigned int toolCtr = 0;
82 ATH_MSG_INFO( " " );
83 ATH_MSG_INFO( "List of tools in execution sequence:" );
84 ATH_MSG_INFO( "------------------------------------" );
85
86 StatusCode checkOut = m_ptools.retrieve();
87 if ( checkOut.isFailure() )
88 {
89 ATH_MSG_WARNING( "Cannot retrieve tool array " << m_ptools );
90 return StatusCode::FAILURE;
91 }
92
93 for (ToolHandle<ICaloTopoTowerBuilderToolBase>& tool : m_ptools)
94 {
95 toolCtr++;
96 /* ATH_MSG_INFO( "retrieving tool" );
97
98 if ( checkOut.isFailure() ) {
99 ATH_MSG_WARNING( "Cannot retrieve tool at ToolArray[" << toolCtr-1 << "]" );
100 ATH_MSG_WARNING( "This tool won't be used" );
101 }
102 else {
103 ATH_MSG_INFO( "retrieved tool" );
104 // print the list of tools
105 */
106
107
108 ATH_MSG_INFO( std::setw(2) << toolCtr << ".) "
109 << tool->type()
110 << "::name() = \042"
111 << tool->name()
112 << "\042" );
113
114 ATH_MSG_INFO( "------------------------------------" );
115 ATH_MSG_INFO( " " );
116
117 /*if ( tool->initializeTool().isFailure() ) {
118
119 ATH_MSG_WARNING( " Tool failed to initialize" );
120 }*/
121
122 } //close iteration over tools
123 return StatusCode::SUCCESS;
124}
#define endmsg
#define ATH_MSG_INFO(x,...)
Gaudi::Property< std::vector< std::string > > m_includedCalos

◆ 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 }

◆ 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}
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_caloIndices

std::vector<CaloCell_ID::SUBCALO> CaloTopoTowerAlgorithm::m_caloIndices
protected

Definition at line 102 of file CaloTopoTowerAlgorithm.h.

◆ m_caloSelection

bool CaloTopoTowerAlgorithm::m_caloSelection {false}
protected

Definition at line 103 of file CaloTopoTowerAlgorithm.h.

103{false};

◆ m_cellContainerKey

SG::ReadHandleKey<CaloCellContainer> CaloTopoTowerAlgorithm::m_cellContainerKey {this, "CellContainerName", "AllCalo"}
protected

Definition at line 82 of file CaloTopoTowerAlgorithm.h.

82{this, "CellContainerName", "AllCalo"};

◆ m_cellESignificanceThreshold

Gaudi::Property<float> CaloTopoTowerAlgorithm::m_cellESignificanceThreshold {this, "CellEnergySignificance", -1.f}
protected

Definition at line 95 of file CaloTopoTowerAlgorithm.h.

95{this, "CellEnergySignificance", -1.f};

◆ m_cellToClusterMapKey

SG::ReadHandleKey<CaloCell2ClusterMap> CaloTopoTowerAlgorithm::m_cellToClusterMapKey {this, "Cell2ClusterMapName", "CaloCell2TopoCluster"}
protected

Definition at line 84 of file CaloTopoTowerAlgorithm.h.

84{this, "Cell2ClusterMapName", "CaloCell2TopoCluster"};

◆ m_clusterKey

SG::ReadHandleKey<CaloClusterContainer> CaloTopoTowerAlgorithm::m_clusterKey {this, "ClusterContainerName", "CaloTopoClusters"}
protected

Definition at line 83 of file CaloTopoTowerAlgorithm.h.

83{this, "ClusterContainerName", "CaloTopoClusters"};

◆ 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_genericLink

Gaudi::Property<bool> CaloTopoTowerAlgorithm::m_genericLink {this, "GenericLinked", true}
protected

Definition at line 66 of file CaloTopoTowerAlgorithm.h.

66{this, "GenericLinked", true};

◆ m_includedCalos

Gaudi::Property<std::vector<std::string> > CaloTopoTowerAlgorithm::m_includedCalos {this, "IncludedCalos", {}}
protected

Definition at line 101 of file CaloTopoTowerAlgorithm.h.

101{this, "IncludedCalos", {}};

◆ m_minimumCellEnergy

Gaudi::Property<double> CaloTopoTowerAlgorithm::m_minimumCellEnergy {this, "MinimumCellEnergy", -1000000000.0}
protected

Definition at line 89 of file CaloTopoTowerAlgorithm.h.

89{this, "MinimumCellEnergy", -1000000000.0};

◆ m_minimumClusterEnergy

Gaudi::Property<double> CaloTopoTowerAlgorithm::m_minimumClusterEnergy {this, "MinimumClusterEnergy", -1000000000.0}
protected

Definition at line 90 of file CaloTopoTowerAlgorithm.h.

90{this, "MinimumClusterEnergy", -1000000000.0};

◆ m_newTowerContainerKey

SG::WriteHandleKey<CaloTopoTowerContainer> CaloTopoTowerAlgorithm::m_newTowerContainerKey {this, "OutputTowerContainerName", "TopoTower"}
protected

Definition at line 86 of file CaloTopoTowerAlgorithm.h.

86{this, "OutputTowerContainerName", "TopoTower"};

◆ m_noiseSigma

Gaudi::Property<float> CaloTopoTowerAlgorithm::m_noiseSigma {this, "DefaultNoiseSigma", 10.0}
protected

Definition at line 94 of file CaloTopoTowerAlgorithm.h.

94{this, "DefaultNoiseSigma", 10.0};

◆ m_ptools

ToolHandleArray<ICaloTopoTowerBuilderToolBase> CaloTopoTowerAlgorithm::m_ptools {this, "TowerBuilderTools", {}}
protected

Definition at line 70 of file CaloTopoTowerAlgorithm.h.

70{this, "TowerBuilderTools", {}};

◆ m_toolNames

std::vector<std::string> CaloTopoTowerAlgorithm::m_toolNames
protected

Definition at line 69 of file CaloTopoTowerAlgorithm.h.

◆ m_tools

tool_store CaloTopoTowerAlgorithm::m_tools
protected

Definition at line 77 of file CaloTopoTowerAlgorithm.h.

◆ m_towerContainerKey

SG::ReadHandleKey<CaloTowerContainer> CaloTopoTowerAlgorithm::m_towerContainerKey {this, "InputTowerContainerName", "CmbTower"}
protected

Definition at line 85 of file CaloTopoTowerAlgorithm.h.

85{this, "InputTowerContainerName", "CmbTower"};

◆ m_useCellWeights

Gaudi::Property<bool> CaloTopoTowerAlgorithm::m_useCellWeights {this, "useCellWeight", true}
protected

Definition at line 91 of file CaloTopoTowerAlgorithm.h.

91{this, "useCellWeight", 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: