ATLAS Offline Software
Loading...
Searching...
No Matches
FPGATrackSim::FPGATrackSimRegionMergingAlg Class Reference

#include <FPGATrackSimRegionMergingAlg.h>

Inheritance diagram for FPGATrackSim::FPGATrackSimRegionMergingAlg:
Collaboration diagram for FPGATrackSim::FPGATrackSimRegionMergingAlg:

Public Member Functions

 FPGATrackSimRegionMergingAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~FPGATrackSimRegionMergingAlg ()=default
virtual StatusCode initialize () override final
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode finalize () override final
virtual StatusCode sysInitialize () override
 Override sysInitialize.
virtual bool isClonable () const override
 Specify if the algorithm is clonable.
virtual unsigned int cardinality () const override
 Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
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
virtual void setFilterPassed (bool state, const EventContext &ctx) const
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< StoreGateSvcStoreGateSvc_t

Private Member Functions

StatusCode mergeTracks (const std::vector< const FPGATrackSimTrackCollection * > &inputTracksPtrs, std::unique_ptr< FPGATrackSimTrackCollection > &outputTracks) const
StatusCode mergeRoads (const std::vector< const FPGATrackSimRoadCollection * > &inputRoads, const std::vector< const FPGATrackSimHitContainer * > &inputHitsInRoads, std::unique_ptr< FPGATrackSimRoadCollection > &outputRoads, std::unique_ptr< FPGATrackSimHitContainer > &outputHitsInRoads) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

Gaudi::Property< bool > m_doOverlapRemoval {this, "doOverlapRemoval", true , "flag to enable the overlap removal"}
Gaudi::Property< bool > m_useRoads {this, "useRoads", false, "If set to truth it merges roads instead of tracks (tracking is set to False)"}
ToolHandle< FPGATrackSimOverlapRemovalTool > m_overlapRemovalTool ATLAS_THREAD_SAFE { this, "OverlapRemovalTool", "FPGATrackSimOverlapRemovalTool/FPGATrackSimOverlapRemovalTool", "Overla removal tool to run on overlapping regions" }
SG::ReadHandleKeyArray< FPGATrackSimTrackCollectionm_FPGATrackCollectionKeys {this, "FPGATrackSimTrackCollections",{},"List of FPGA track collections from different regions"}
SG::ReadHandleKeyArray< FPGATrackSimRoadCollectionm_FPGARoadCollectionKeys {this, "FPGATrackSimRoadCollections",{},"List of FPGA road collections from different regions"}
SG::ReadHandleKeyArray< FPGATrackSimHitContainerm_FPGAHitsInRoadsCollectionKeys {this, "FPGATrackSimHitsInRoadsCollections",{},"List of FPGA hits roads"}
SG::WriteHandleKey< FPGATrackSimTrackCollectionm_FinalFPGATrackCollectionKey {this, "FinalFPGATrackCollection","FPGATracks","Outgoing FPGA track collection containing tracks after region merging and OR"}
SG::WriteHandleKey< FPGATrackSimRoadCollectionm_FinalFPGARoadkCollectionKey {this, "FinalFPGARoadCollection","FPGARoads","Outgoing FPGA road collection containing roads after region merging"}
SG::WriteHandleKey< FPGATrackSimHitContainerm_FinalFPGAHitsInRoadsCollectionKey {this, "FinalFPGAHitsInRoadsCollection","FPGAHitsInRoads","Outgoing FPGA hits-in-roads collection after region merging"}
ServiceHandle< IChronoStatSvc > m_chrono {this,"ChronoStatSvc","ChronoStatSvc"}
std::atomic< size_t > m_allIncomingTracks {0}
std::atomic< size_t > m_nPreORTracks {0}
std::atomic< size_t > m_nPostORTracks {0}
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 26 of file FPGATrackSimRegionMergingAlg.h.

Member Typedef Documentation

◆ StoreGateSvc_t

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

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ FPGATrackSimRegionMergingAlg()

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

Definition at line 12 of file FPGATrackSimRegionMergingAlg.cxx.

12 : AthReentrantAlgorithm(name, pSvcLocator) {
13}

◆ ~FPGATrackSimRegionMergingAlg()

virtual FPGATrackSim::FPGATrackSimRegionMergingAlg::~FPGATrackSimRegionMergingAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

unsigned int AthCommonReentrantAlgorithm< Gaudi::Algorithm >::cardinality ( ) const
overridevirtualinherited

Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ 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 FPGATrackSim::FPGATrackSimRegionMergingAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 31 of file FPGATrackSimRegionMergingAlg.cxx.

32{
33
34 std::vector<SG::ReadHandle<FPGATrackSimTrackCollection>> incomingFPGATrackSimTrackCollections = m_FPGATrackCollectionKeys.makeHandles(ctx);
35 SG::WriteHandle<FPGATrackSimTrackCollection> finalFPGATracksHandle (m_FinalFPGATrackCollectionKey, ctx);
36
37 std::vector<SG::ReadHandle<FPGATrackSimRoadCollection>> incomingFPGARoadSimTrackCollections = m_FPGARoadCollectionKeys.makeHandles(ctx);
38 SG::WriteHandle<FPGATrackSimRoadCollection> finalFPGARoads (m_FinalFPGARoadkCollectionKey, ctx);
39
40 std::vector<SG::ReadHandle<FPGATrackSimHitContainer>> incomingFPGAHitsInRoadsCollections = m_FPGAHitsInRoadsCollectionKeys.makeHandles(ctx);
41 SG::WriteHandle<FPGATrackSimHitContainer> finalFPGAHitsInRoads (m_FinalFPGAHitsInRoadsCollectionKey, ctx);
42
43 std::vector<const FPGATrackSimTrackCollection*> incomingFPGATrackSimTrackCollectionsPtrs;
44 for (SG::ReadHandle<FPGATrackSimTrackCollection>& trackCollection : incomingFPGATrackSimTrackCollections)
45 {
46 if (!trackCollection.isValid())
47 {
48 ATH_MSG_ERROR("Invalid FPGATrackCollection key with name " << trackCollection.key());
49 return StatusCode::FAILURE;
50 }
51 incomingFPGATrackSimTrackCollectionsPtrs.push_back(trackCollection.cptr());
52 }
53
54 std::unique_ptr<FPGATrackSimTrackCollection> finalFPGATracksPtr = std::make_unique<FPGATrackSimTrackCollection>(); // temporary collection
55 ATH_CHECK(mergeTracks(incomingFPGATrackSimTrackCollectionsPtrs, finalFPGATracksPtr));
56 finalFPGATracksHandle = std::move(finalFPGATracksPtr);
57
58 if(m_useRoads){
59 std::vector<const FPGATrackSimRoadCollection*> incomingFPGARoadSimTrackCollectionsPtrs;
60 std::vector<const FPGATrackSimHitContainer*> incomingFPGAHitsInRoadsCollectionsPtrs;
61 for (SG::ReadHandle<FPGATrackSimRoadCollection>& roadCollection : incomingFPGARoadSimTrackCollections)
62 {
63 if (!roadCollection.isValid())
64 {
65 ATH_MSG_ERROR("Invalid FPGARoadCollection key with name " << roadCollection.key());
66 return StatusCode::FAILURE;
67 }
68 incomingFPGARoadSimTrackCollectionsPtrs.push_back(roadCollection.cptr());
69 }
70 for (SG::ReadHandle<FPGATrackSimHitContainer>& hitsInRoadsCollection : incomingFPGAHitsInRoadsCollections)
71 {
72 if (!hitsInRoadsCollection.isValid())
73 {
74 ATH_MSG_ERROR("Invalid FPGAHitsInRoadsCollection key with name " << hitsInRoadsCollection.key());
75 return StatusCode::FAILURE;
76 }
77 incomingFPGAHitsInRoadsCollectionsPtrs.push_back(hitsInRoadsCollection.cptr());
78 }
79 if (incomingFPGARoadSimTrackCollectionsPtrs.size() != incomingFPGAHitsInRoadsCollectionsPtrs.size()) {
80 ATH_MSG_ERROR("Number of road collections and hit containers do not match: " << incomingFPGARoadSimTrackCollectionsPtrs.size() << " vs " << incomingFPGAHitsInRoadsCollectionsPtrs.size());
81 return StatusCode::FAILURE;
82 }
83
84 std::unique_ptr<FPGATrackSimRoadCollection> finalFPGARoadsPtr = std::make_unique<FPGATrackSimRoadCollection>(); // temporary collection
85 std::unique_ptr<FPGATrackSimHitContainer> finalFPGAHitsInRoadsPtr = std::make_unique<FPGATrackSimHitContainer>(); // temporary collection
86 ATH_CHECK(mergeRoads(incomingFPGARoadSimTrackCollectionsPtrs,
87 incomingFPGAHitsInRoadsCollectionsPtrs,
88 finalFPGARoadsPtr,
89 finalFPGAHitsInRoadsPtr));
90
91 finalFPGARoads = std::move(finalFPGARoadsPtr);
92 finalFPGAHitsInRoads = std::move(finalFPGAHitsInRoadsPtr);
93 }
94
95
96
97 return StatusCode::SUCCESS;
98}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
StatusCode mergeTracks(const std::vector< const FPGATrackSimTrackCollection * > &inputTracksPtrs, std::unique_ptr< FPGATrackSimTrackCollection > &outputTracks) const
SG::ReadHandleKeyArray< FPGATrackSimTrackCollection > m_FPGATrackCollectionKeys
StatusCode mergeRoads(const std::vector< const FPGATrackSimRoadCollection * > &inputRoads, const std::vector< const FPGATrackSimHitContainer * > &inputHitsInRoads, std::unique_ptr< FPGATrackSimRoadCollection > &outputRoads, std::unique_ptr< FPGATrackSimHitContainer > &outputHitsInRoads) const
SG::ReadHandleKeyArray< FPGATrackSimRoadCollection > m_FPGARoadCollectionKeys
SG::WriteHandleKey< FPGATrackSimTrackCollection > m_FinalFPGATrackCollectionKey
SG::ReadHandleKeyArray< FPGATrackSimHitContainer > m_FPGAHitsInRoadsCollectionKeys
SG::WriteHandleKey< FPGATrackSimHitContainer > m_FinalFPGAHitsInRoadsCollectionKey
SG::WriteHandleKey< FPGATrackSimRoadCollection > m_FinalFPGARoadkCollectionKey

◆ 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 & AthCommonReentrantAlgorithm< 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 94 of file AthCommonReentrantAlgorithm.cxx.

90{
91 // If we didn't find any symlinks to add, just return the collection
92 // from the base class. Otherwise, return the extended collection.
93 if (!m_extendedExtraObjects.empty()) {
95 }
97}
An algorithm that can be simultaneously executed in multiple threads.

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

96 {
97 return execState( ctx ).filterPassed();
98 }
virtual bool filterPassed(const EventContext &ctx) const

◆ finalize()

StatusCode FPGATrackSim::FPGATrackSimRegionMergingAlg::finalize ( )
finaloverridevirtual

Definition at line 100 of file FPGATrackSimRegionMergingAlg.cxx.

101{
102 ATH_MSG_INFO("Number of tracks: incoming / passed region OR / passed globalOR: " << m_allIncomingTracks << " / " << m_nPreORTracks << " / " << m_nPostORTracks);
103 return StatusCode::SUCCESS;
104}
#define ATH_MSG_INFO(x)

◆ initialize()

StatusCode FPGATrackSim::FPGATrackSimRegionMergingAlg::initialize ( )
finaloverridevirtual

Definition at line 15 of file FPGATrackSimRegionMergingAlg.cxx.

16{
20
24
25 ATH_CHECK(m_overlapRemovalTool.retrieve());
26
27 ATH_CHECK(m_chrono.retrieve());
28 return StatusCode::SUCCESS;
29}

◆ 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()

◆ mergeRoads()

StatusCode FPGATrackSim::FPGATrackSimRegionMergingAlg::mergeRoads ( const std::vector< const FPGATrackSimRoadCollection * > & inputRoads,
const std::vector< const FPGATrackSimHitContainer * > & inputHitsInRoads,
std::unique_ptr< FPGATrackSimRoadCollection > & outputRoads,
std::unique_ptr< FPGATrackSimHitContainer > & outputHitsInRoads ) const
private

Definition at line 151 of file FPGATrackSimRegionMergingAlg.cxx.

154 {
155 size_t numberOfAllRoads = 0;
156 size_t numberOfAllHitsInRoads = 0;
157 for (const FPGATrackSimRoadCollection* roadCollection : inputRoads) {
158 numberOfAllRoads += roadCollection->size();
159 }
160 for (const FPGATrackSimHitContainer* hitsInRoadsContainer : inputHitsInRoads) {
161 numberOfAllHitsInRoads += hitsInRoadsContainer->size();
162 }
163
164 ATH_MSG_INFO("Filtering and concatenating " << numberOfAllRoads << " roads from " << inputRoads.size() << " regions");
165 if constexpr (enableBenchmark) m_chrono->chronoStart("Merging Roads and HitsInRoads");
166 outputRoads->reserve(numberOfAllRoads);
167 outputHitsInRoads->reserve(numberOfAllHitsInRoads);
168
169 for (size_t i = 0; i < inputRoads.size(); ++i) {
170 const FPGATrackSimRoadCollection* roadCollection = inputRoads[i];
171 const FPGATrackSimHitContainer* hitsInRoadsContainer = inputHitsInRoads[i];
172 outputRoads->insert(outputRoads->end(), roadCollection->begin(), roadCollection->end());
173 outputHitsInRoads->insert(outputHitsInRoads->end(), hitsInRoadsContainer->begin(), hitsInRoadsContainer->end());
174 }
175 if constexpr (enableBenchmark) m_chrono->chronoStop("Merging Roads and HitsInRoads");
176
177 return StatusCode::SUCCESS;
178 }
std::vector< std::vector< FPGATrackSimHit > > FPGATrackSimHitContainer
std::vector< FPGATrackSimRoad > FPGATrackSimRoadCollection
constexpr bool enableBenchmark

◆ mergeTracks()

StatusCode FPGATrackSim::FPGATrackSimRegionMergingAlg::mergeTracks ( const std::vector< const FPGATrackSimTrackCollection * > & inputTracksPtrs,
std::unique_ptr< FPGATrackSimTrackCollection > & outputTracks ) const
private

Definition at line 106 of file FPGATrackSimRegionMergingAlg.cxx.

107 {
108 size_t numberOfAllTracks = 0;
109 for (const FPGATrackSimTrackCollection* tracksInRegion : inputTracksPtrs)
110 {
111 numberOfAllTracks += tracksInRegion->size();
112 }
113
114 ATH_MSG_INFO("Filtering and concatenating " << numberOfAllTracks << " tracks from " << inputTracksPtrs.size() << " regions");
115 if constexpr (enableBenchmark) m_chrono->chronoStart("Merging Tracks");
116 FPGATrackSimTrackCollection regionFilteredTracks;
117 regionFilteredTracks.reserve(numberOfAllTracks);
118 for (const FPGATrackSimTrackCollection* tracksInRegion : inputTracksPtrs)
119 {
120 for (const FPGATrackSimTrack& track : *tracksInRegion)
121 {
122 if (track.passedOR())
123 {
124 regionFilteredTracks.push_back(track);
125 }
126 }
127 }
128 if constexpr (enableBenchmark) m_chrono->chronoStop("Merging Tracks");
129
130 // Overlap removal: It runs only on the tracks that passed the in-region OR
131 if constexpr (enableBenchmark) m_chrono->chronoStart("Overlap removal (tracks)");
132 if (m_doOverlapRemoval) ATH_CHECK(m_overlapRemovalTool->runOverlapRemoval(regionFilteredTracks));
133 if constexpr (enableBenchmark) m_chrono->chronoStop("Overlap removal (tracks)");
134
135 if constexpr (enableBenchmark) m_chrono->chronoStart("Copying final tracks");
136 outputTracks->reserve(numberOfAllTracks);
137 for (const FPGATrackSimTrack & track: regionFilteredTracks)
138 {
139 if(track.passedOR()) outputTracks->push_back(track);
140 }
141 if constexpr (enableBenchmark) m_chrono->chronoStop("Copying final tracks");
142
143 m_nPreORTracks.fetch_add(regionFilteredTracks.size(), std::memory_order_relaxed); // number of tracks that passed the region OR only (if configured upstream)
144 m_allIncomingTracks.fetch_add(numberOfAllTracks, std::memory_order_relaxed); // number of all tracks from all regions
145 m_nPostORTracks.fetch_add(outputTracks->size(), std::memory_order_relaxed); // number of tracks that passed the global OR
146
147 return StatusCode::SUCCESS;
148}
std::vector< FPGATrackSimTrack > FPGATrackSimTrackCollection

◆ 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 380 of file AthCommonDataStore.h.

381 {
382 h.renounce();
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()

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

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ setFilterPassed()

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

Definition at line 100 of file AthCommonReentrantAlgorithm.h.

100 {
102 }
virtual void setFilterPassed(bool state, const EventContext &ctx) const

◆ sysExecute()

StatusCode AthCommonReentrantAlgorithm< 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.

Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.

77{
78 return BaseAlg::sysExecute (ctx);
79}

◆ sysInitialize()

StatusCode AthCommonReentrantAlgorithm< 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 HypoBase, and InputMakerBase.

Definition at line 61 of file AthCommonReentrantAlgorithm.cxx.

107 {
109
110 if (sc.isFailure()) {
111 return sc;
112 }
113
114 ServiceHandle<ICondSvc> cs("CondSvc",name());
115 for (auto h : outputHandles()) {
116 if (h->isCondition() && h->mode() == Gaudi::DataHandle::Writer) {
117 // do this inside the loop so we don't create the CondSvc until needed
118 if ( cs.retrieve().isFailure() ) {
119 ATH_MSG_WARNING("no CondSvc found: won't autoreg WriteCondHandles");
120 return StatusCode::SUCCESS;
121 }
122 if (cs->regHandle(this,*h).isFailure()) {
124 ATH_MSG_ERROR("unable to register WriteCondHandle " << h->fullKey()
125 << " with CondSvc");
126 }
127 }
128 }
129 return sc;
130}
#define ATH_MSG_WARNING(x)
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 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) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

ToolHandle<FPGATrackSimOverlapRemovalTool> m_overlapRemovalTool FPGATrackSim::FPGATrackSimRegionMergingAlg::ATLAS_THREAD_SAFE { this, "OverlapRemovalTool", "FPGATrackSimOverlapRemovalTool/FPGATrackSimOverlapRemovalTool", "Overla removal tool to run on overlapping regions" }
mutableprivate

Definition at line 41 of file FPGATrackSimRegionMergingAlg.h.

41{ this, "OverlapRemovalTool", "FPGATrackSimOverlapRemovalTool/FPGATrackSimOverlapRemovalTool", "Overla removal tool to run on overlapping regions" };

◆ m_allIncomingTracks

std::atomic<size_t> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_allIncomingTracks {0}
mutableprivate

Definition at line 64 of file FPGATrackSimRegionMergingAlg.h.

◆ m_chrono

ServiceHandle<IChronoStatSvc> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_chrono {this,"ChronoStatSvc","ChronoStatSvc"}
private

Definition at line 53 of file FPGATrackSimRegionMergingAlg.h.

53{this,"ChronoStatSvc","ChronoStatSvc"};

◆ m_detStore

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

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_doOverlapRemoval

Gaudi::Property<bool> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_doOverlapRemoval {this, "doOverlapRemoval", true , "flag to enable the overlap removal"}
private

Definition at line 37 of file FPGATrackSimRegionMergingAlg.h.

37{this, "doOverlapRemoval", true , "flag to enable the overlap removal"};

◆ m_evtStore

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

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_extendedExtraObjects

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

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

Empty if no symlinks were found.

Definition at line 114 of file AthCommonReentrantAlgorithm.h.

◆ m_FinalFPGAHitsInRoadsCollectionKey

SG::WriteHandleKey<FPGATrackSimHitContainer> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_FinalFPGAHitsInRoadsCollectionKey {this, "FinalFPGAHitsInRoadsCollection","FPGAHitsInRoads","Outgoing FPGA hits-in-roads collection after region merging"}
private

Definition at line 50 of file FPGATrackSimRegionMergingAlg.h.

50{this, "FinalFPGAHitsInRoadsCollection","FPGAHitsInRoads","Outgoing FPGA hits-in-roads collection after region merging"};

◆ m_FinalFPGARoadkCollectionKey

SG::WriteHandleKey<FPGATrackSimRoadCollection> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_FinalFPGARoadkCollectionKey {this, "FinalFPGARoadCollection","FPGARoads","Outgoing FPGA road collection containing roads after region merging"}
private

Definition at line 49 of file FPGATrackSimRegionMergingAlg.h.

49{this, "FinalFPGARoadCollection","FPGARoads","Outgoing FPGA road collection containing roads after region merging"};

◆ m_FinalFPGATrackCollectionKey

SG::WriteHandleKey<FPGATrackSimTrackCollection> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_FinalFPGATrackCollectionKey {this, "FinalFPGATrackCollection","FPGATracks","Outgoing FPGA track collection containing tracks after region merging and OR"}
private

Definition at line 48 of file FPGATrackSimRegionMergingAlg.h.

48{this, "FinalFPGATrackCollection","FPGATracks","Outgoing FPGA track collection containing tracks after region merging and OR"};

◆ m_FPGAHitsInRoadsCollectionKeys

SG::ReadHandleKeyArray<FPGATrackSimHitContainer> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_FPGAHitsInRoadsCollectionKeys {this, "FPGATrackSimHitsInRoadsCollections",{},"List of FPGA hits roads"}
private

Definition at line 46 of file FPGATrackSimRegionMergingAlg.h.

46{this, "FPGATrackSimHitsInRoadsCollections",{},"List of FPGA hits roads"};

◆ m_FPGARoadCollectionKeys

SG::ReadHandleKeyArray<FPGATrackSimRoadCollection> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_FPGARoadCollectionKeys {this, "FPGATrackSimRoadCollections",{},"List of FPGA road collections from different regions"}
private

Definition at line 45 of file FPGATrackSimRegionMergingAlg.h.

45{this, "FPGATrackSimRoadCollections",{},"List of FPGA road collections from different regions"};

◆ m_FPGATrackCollectionKeys

SG::ReadHandleKeyArray<FPGATrackSimTrackCollection> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_FPGATrackCollectionKeys {this, "FPGATrackSimTrackCollections",{},"List of FPGA track collections from different regions"}
private

Definition at line 44 of file FPGATrackSimRegionMergingAlg.h.

44{this, "FPGATrackSimTrackCollections",{},"List of FPGA track collections from different regions"};

◆ m_nPostORTracks

std::atomic<size_t> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_nPostORTracks {0}
private

Definition at line 64 of file FPGATrackSimRegionMergingAlg.h.

◆ m_nPreORTracks

std::atomic<size_t> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_nPreORTracks {0}
private

Definition at line 64 of file FPGATrackSimRegionMergingAlg.h.

◆ m_useRoads

Gaudi::Property<bool> FPGATrackSim::FPGATrackSimRegionMergingAlg::m_useRoads {this, "useRoads", false, "If set to truth it merges roads instead of tracks (tracking is set to False)"}
private

Definition at line 38 of file FPGATrackSimRegionMergingAlg.h.

38{this, "useRoads", false, "If set to truth it merges roads instead of tracks (tracking is set to False)"};

◆ m_varHandleArraysDeclared

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

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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