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

#include <FPGATrackSimDataPrepAlg.h>

Inheritance diagram for FPGATrackSimDataPrepAlg:

Public Member Functions

 FPGATrackSimDataPrepAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~FPGATrackSimDataPrepAlg ()=default
virtual StatusCode initialize () override
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode finalize () override
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 readInputs (const EventContext &ctx, FPGATrackSimEventInputHeader &eventHeader, FPGATrackSimEventInputHeader &firstInputHeader, bool &done) const
StatusCode processInputs (const FPGATrackSimEventInputHeader &eventHeader, FPGATrackSimLogicalEventInputHeader &logicEventHeader, FPGATrackSimLogicalEventInputHeader &logicEventHeader_precluster, std::vector< FPGATrackSimHit > &hits_miss, FPGATrackSimClusterCollection &clusters, SG::WriteHandle< FPGATrackSimHitCollection > &FPGAHitUnmapped, SG::WriteHandle< FPGATrackSimClusterCollection > &FPGAClusters) const
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

std::string m_description
std::atomic< unsigned > m_ev {0}
ToolHandle< IFPGATrackSimInputToolm_hitSGInputTool {this, "SGInputTool", "", "Input tool from SG"}
ToolHandle< IFPGATrackSimEventInputHeaderToolm_hitInputTool {this, "InputTool", "FPGATrackSimSGToRawHitsTool/FPGATrackSimSGToRawHitsTool", "Input Tool"}
ToolHandle< FPGATrackSimReadRawRandomHitsToolm_hitInputTool2 {this, "InputTool2", "FPGATrackSimReadRawRandomHitsTool/FPGATrackSimReadRawRandomHitsTool", "Potential 2nd input Tool to load data from more than one source"}
ToolHandleArray< FPGATrackSimRawToLogicalHitsToolm_hitMapTools {this, "RawToLogicalHitsTools", {}, "Raw To Logical Tools"}
ToolHandle< IFPGATrackSimHitFilteringToolm_hitFilteringTool {this, "HitFilteringTool", "FPGATrackSimHitFilteringTool/FPGATrackSimHitFilteringTool", "Hit Filtering Tool"}
ToolHandle< FPGATrackSimClusteringToolIm_clusteringTool {this, "ClusteringTool", "FPGATrackSimClusteringTool/FPGATrackSimClusteringTool", "Hit Clustering Tool"}
ToolHandle< FPGATrackSimOutputHeaderToolm_writeOutputTool {this, "OutputTool", "FPGATrackSimOutputHeaderTool/FPGATrackSimOutputHeaderTool", "Output tool"}
ToolHandleArray< FPGATrackSim::FPGATrackSimEventSelectionToolm_eventSelectionTools {this, "eventSelectors", {}, "Event selection Tools"}
ServiceHandle< IChronoStatSvc > m_chrono {this,"ChronoStatSvc","ChronoStatSvc"}
Gaudi::Property< bool > m_isDataPrepPipeline {this, "isDataPrepPipeline", false, "If True, this is for data prep pipeline only, thus skipping unecessary steps"}
Gaudi::Property< int > m_firstInputToolN {this, "FirstInputToolN", 1, "number of times to use event from first input tool"}
Gaudi::Property< int > m_secondInputToolN {this, "SecondInputToolN", 0, "number of times to use event from second input tool"}
Gaudi::Property< bool > m_doHitFiltering {this, "HitFiltering", false, "flag to enable hit/cluster filtering"}
Gaudi::Property< int > m_clustering {this, "Clustering", 0, "int to enable the clustering and say how many times to run it"}
Gaudi::Property< bool > m_writeOutputData {this, "writeOutputData", true,"write the output TTree"}
Gaudi::Property< bool > m_writePreClusterBranch {this, "writePreClusterBranch", true, "If set to false, never write precluster branches"}
Gaudi::Property< bool > m_doEvtSel {this, "doEvtSel", false, "do event selection"}
Gaudi::Property< bool > m_useInternalTruthTracks {this,"useInternalTruthTracks", false, "case when runnin on RDO file (and not or wrapper)"}
Gaudi::Property< bool > m_recordHits {this,"recordHits", true, "For F-100 this is not needed"}
Gaudi::Property< int > m_writeRegion {this,"writeRegion", -1, "Only output selected region, default is -1 which means not requirement"}
Gaudi::Property< std::string > m_preClusterBranch {this, "preClusterBranch", "LogicalEventInputHeader_PreCluster", "Name of the branch for pre-cluster input data in output ROOT file." }
Gaudi::Property< std::string > m_postClusterBranch {this, "postClusterBranch", "LogicalEventInputHeader_PostCluster", "Name of the branch for post-cluster input data in output ROOT file." }
FPGATrackSimLogicalEventInputHeaderm_logicEventHeader_precluster = nullptr
FPGATrackSimLogicalEventInputHeaderm_logicEventHeader = nullptr
std::atomic< size_t > m_evt = 0
std::atomic< unsigned long > m_nPixClusters = 0
std::atomic< unsigned > m_nMaxPixClusters = 0
std::atomic< unsigned long > m_nStripClusters = 0
std::atomic< unsigned > m_nMaxStripClusters = 0
std::atomic< unsigned > m_nMaxClusters = 0
ToolHandle< GenericMonitoringToolm_monTool {this,"MonTool", "", "Monitoring tool"}
SG::WriteHandleKeyArray< FPGATrackSimClusterCollectionm_FPGAClusterKey {this, "FPGATrackSimClusterKey",{"FPGAClusters_1st"},"FPGATrackSim Clusters key"}
SG::WriteHandleKey< FPGATrackSimHitCollectionm_FPGAHitKey {this, "FPGATrackSimHitKey","FPGAHits", "FPGATrackSim Hits key"}
SG::WriteHandleKey< FPGATrackSimHitCollectionm_FPGAHitUnmappedKey {this, "FPGATrackSimHitUnmappedKey","FPGAHitsUnmapped_1st","FPGATrackSim Unmapped Hits 1st stage key"}
SG::ReadHandleKey< xAOD::TruthParticleContainerm_inputTruthParticleContainerKey {this, "TruthTrackContainer", "TruthParticles", "Truth Particle Container"}
SG::WriteHandleKey< xAODTruthParticleLinkVectorm_truthLinkContainerKey {this, "TruthLinks", "xAODFPGATruthLinks", "Output EF xAODTruthLinks container"}
SG::WriteHandleKey< FPGATrackSimTruthTrackCollectionm_FPGATruthTrackKey {this, "FPGATrackSimTruthTrackKey", "FPGATruthTracks", "FPGATrackSim truth tracks"}
SG::WriteHandleKey< FPGATrackSimOfflineTrackCollectionm_FPGAOfflineTrackKey {this, "FPGATrackSimOfflineTrackKey", "FPGAOfflineTracks", "FPGATrackSim offline tracks"}
SG::WriteHandleKey< FPGATrackSimEventInfom_FPGAEventInfoKey {this, "FPGATrackSimEventInfoKey", "FPGAEventInfo", "FPGATrackSim event info"}
std::mutex m_rootWriteMutex
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 57 of file FPGATrackSimDataPrepAlg.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

◆ FPGATrackSimDataPrepAlg()

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

Definition at line 38 of file FPGATrackSimDataPrepAlg.cxx.

38 :
39 AthReentrantAlgorithm(name, pSvcLocator)
40{
41}

◆ ~FPGATrackSimDataPrepAlg()

virtual FPGATrackSimDataPrepAlg::~FPGATrackSimDataPrepAlg ( )
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 FPGATrackSimDataPrepAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 106 of file FPGATrackSimDataPrepAlg.cxx.

107{
108 // Local event headers (thread-safe)
109 FPGATrackSimEventInputHeader eventHeader;
110 FPGATrackSimEventInputHeader firstInputHeader;
111
112 FPGATrackSimLogicalEventInputHeader logicEventHeader_precluster;
113 FPGATrackSimLogicalEventInputHeader logicEventHeader;
114
115 // Local storage for clusters and unmapped hits
117 std::vector<FPGATrackSimHit> hits_miss;
118
119 // Read inputs
120 bool done = false;
121 ATH_CHECK(readInputs(ctx, eventHeader, firstInputHeader, done));
122
123 if (done) {
124 SmartIF<IEventProcessor> appMgr{service("ApplicationMgr")};
125 if (!appMgr) {
126 ATH_MSG_ERROR("Failed to retrieve ApplicationMgr as IEventProcessor");
127 return StatusCode::FAILURE;
128 }
129 return appMgr->stopRun();
130 }
131
132 SG::WriteHandle<FPGATrackSimHitCollection> FPGAHits (m_FPGAHitKey, ctx);
133 ATH_CHECK( FPGAHits.record (std::make_unique<FPGATrackSimHitCollection>()));
134
135 SG::WriteHandle<FPGATrackSimHitCollection> FPGAHitUnmapped (m_FPGAHitUnmappedKey, ctx);
136 ATH_CHECK( FPGAHitUnmapped.record (std::make_unique<FPGATrackSimHitCollection>()));
137
138 SG::WriteHandle<FPGATrackSimClusterCollection> FPGAClusters (m_FPGAClusterKey.at(0), ctx);
139 ATH_CHECK( FPGAClusters.record (std::make_unique<FPGATrackSimClusterCollection>()));
140
141 SG::WriteHandle<xAODTruthParticleLinkVector> truthLinkVec(m_truthLinkContainerKey, ctx);
142 ATH_CHECK(truthLinkVec.record(std::make_unique<xAODTruthParticleLinkVector>()));
143
144 SG::WriteHandle<FPGATrackSimTruthTrackCollection> FPGATruthTracks (m_FPGATruthTrackKey, ctx);
145 ATH_CHECK(FPGATruthTracks.record(std::make_unique<FPGATrackSimTruthTrackCollection>()));
146
147 SG::WriteHandle<FPGATrackSimOfflineTrackCollection> FPGAOfflineTracks (m_FPGAOfflineTrackKey, ctx);
148 ATH_CHECK(FPGAOfflineTracks.record(std::make_unique<FPGATrackSimOfflineTrackCollection>()));
149 // Apply event selection based on truth tracks
150 if (m_doEvtSel) {
151 bool acceptEvent = false;
152 if constexpr (enableBenchmark) m_chrono->chronoStart("DataPrep: EventSelection");
153 for (auto eventSelector : m_eventSelectionTools)
154 {
155 if (eventSelector->selectEvent(eventHeader)) {
156 ATH_MSG_DEBUG("Event accepted by: " << eventSelector->name());
157 acceptEvent = true;
158 if ((m_writeRegion>=0)&&(m_writeRegion==eventSelector->getRegionID())) {
159 m_writeOutputTool->activateEventOutput();
160 }
161 }
162 }
163 if constexpr (enableBenchmark) m_chrono->chronoStop("DataPrep: EventSelection");
164 if (m_useInternalTruthTracks && acceptEvent) {
165 if constexpr (enableBenchmark) m_chrono->chronoStart("DataPrep: TruthMatching");
166 SG::ReadHandle<xAOD::TruthParticleContainer> truthParticleContainer(m_inputTruthParticleContainerKey, ctx); // Read offline TruthParticles
167 if (!truthParticleContainer.isValid()) {
168 ATH_MSG_ERROR("No valid truth particle container with key " << truthParticleContainer.key());
169 return StatusCode::FAILURE;
170 }
171 ATH_MSG_DEBUG("making mp of truth particles");
172 std::unordered_map<HepMcParticleLink::barcode_type, std::pair<const xAOD::TruthParticle*, size_t>> truthParticlesMap;
173 size_t truthParticleIndex = 0;
174 for (const xAOD::TruthParticle* truthParticle : *truthParticleContainer) {
175 truthParticlesMap.insert(std::make_pair(HepMC::uniqueID(truthParticle), std::make_pair(truthParticle,truthParticleIndex)));
176 truthParticleIndex++;
177 }
178 const FPGATrackSimTruthTrackCollection& fpgaTruthTracks = eventHeader.optional().getTruthTracks();
179 truthLinkVec->reserve(fpgaTruthTracks.size());
180 ATH_MSG_DEBUG("begin truth matching for " << fpgaTruthTracks.size() << " FPGA truth tracks");
181 for (const FPGATrackSimTruthTrack& fpgaTruthTrack : fpgaTruthTracks) {
182 auto it = truthParticlesMap.find(fpgaTruthTrack.getUniqueID()); // TODO FIXME need to check FPGATrackSimTruthTrack uniqueIDs are properly filled
183 if (it != truthParticlesMap.end()) {
184 ElementLink<xAOD::TruthParticleContainer> truthParticleLink(*truthParticleContainer, it->second.second);
185 // TODO: check if we can avoid using the previously-created map and look directly for the unique ID in the link vector container
186 truthLinkVec->push_back(new xAODTruthParticleLink(HepMcParticleLink(HepMC::uniqueID(it->second.first), 0,
188 ATH_MSG_DEBUG("Truth link added");
189 }
190 }
191 if (truthLinkVec->empty()) {
192 ATH_MSG_DEBUG("No truth particles selected. Skipping event...");
193 return StatusCode::SUCCESS;
194 }
195 std::stable_sort(truthLinkVec->begin(), truthLinkVec->end(), SortTruthParticleLink());
196 if constexpr (enableBenchmark) m_chrono->chronoStop("DataPrep: TruthMatching");
197 }
198 }
199 else {
200 ATH_MSG_DEBUG("No Event Selection applied");
201 for (auto eventSelector : m_eventSelectionTools) {
202 eventSelector->setSelectedEvent(true);
203 }
204 }
205
206 // Event passes cuts, count it
207 m_evt++;
208
209 // Map, cluster, and filter hits
210 ATH_CHECK(processInputs(eventHeader, logicEventHeader, logicEventHeader_precluster,
211 hits_miss, clusters, FPGAHitUnmapped, FPGAClusters));
212
213 if constexpr (enableBenchmark) m_chrono->chronoStart("DataPrep: get truth/offline tracks");
214 for (const auto& truthtrack : logicEventHeader.optional().getTruthTracks()) {
215 FPGATruthTracks->push_back(truthtrack);
216 }
217
218 // Need to do the same for offline tracks.
219 for (const auto& offlineTrack : logicEventHeader.optional().getOfflineTracks()) {
220 FPGAOfflineTracks->push_back(offlineTrack);
221 }
222
223 if constexpr (enableBenchmark) m_chrono->chronoStop("DataPrep: get truth/offline tracks");
224
225 // Get reference to hits
226
227 // Recording Data
228 for (auto eventSelector : m_eventSelectionTools)
229 {
230 // Get reference to hits
231 const unsigned& regionID = eventSelector->getRegionID();
232
233 auto mon_regionID = Monitored::Scalar<unsigned>("regionID", regionID);
234 Monitored::Group(m_monTool, mon_regionID);
235 }
236
237 std::vector<FPGATrackSimHit> const& hits = logicEventHeader.towers().at(0).hits();
238 if (m_recordHits) {
239 if constexpr (enableBenchmark) m_chrono->chronoStart("DataPrep: record hits");
240 // If and when we set up code to run over more than one region/tower at a time this will need to be updated
241 FPGAHits->reserve(hits.size());
242 for (const auto& hit : hits) {
243 if (hit.isReal()) FPGAHits->push_back(hit);
244 }
245 if constexpr (enableBenchmark) m_chrono->chronoStop("DataPrep: record hits");
246 }
247
248 auto mon_nhits = Monitored::Scalar<unsigned>("nHits", hits.size());
249 auto mon_nhits_unmapped = Monitored::Scalar<unsigned>("nHits_unmapped", hits_miss.size());
250 Monitored::Group(m_monTool, mon_nhits, mon_nhits_unmapped);
251
253 // Put the FPGATrackSim event info on storegate so later algorithms can access it easily.
254 SG::WriteHandle<FPGATrackSimEventInfo> FPGAEventInfo(m_FPGAEventInfoKey, ctx);
255 ATH_CHECK(FPGAEventInfo.record(std::make_unique<FPGATrackSimEventInfo>(eventHeader.event())));
256 }
257
258 // Write the output and reset
259 if (m_writeOutputData) {
260 // Lock and transfer to ROOT-managed pointers
261 std::lock_guard<std::mutex> lock(m_rootWriteMutex);
262
263 *m_logicEventHeader = std::move(logicEventHeader);
265 *m_logicEventHeader_precluster = std::move(logicEventHeader_precluster);
266 }
267
268 ATH_CHECK(m_writeOutputTool->writeData());
269 }
270
271 return StatusCode::SUCCESS;
272}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_ERROR(x)
#define ATH_MSG_DEBUG(x)
std::vector< FPGATrackSimCluster > FPGATrackSimClusterCollection
std::vector< FPGATrackSimTruthTrack > FPGATrackSimTruthTrackCollection
SG::WriteHandleKey< FPGATrackSimOfflineTrackCollection > m_FPGAOfflineTrackKey
SG::WriteHandleKey< FPGATrackSimHitCollection > m_FPGAHitUnmappedKey
Gaudi::Property< bool > m_isDataPrepPipeline
Gaudi::Property< bool > m_doEvtSel
SG::WriteHandleKey< FPGATrackSimTruthTrackCollection > m_FPGATruthTrackKey
FPGATrackSimLogicalEventInputHeader * m_logicEventHeader_precluster
ToolHandle< FPGATrackSimOutputHeaderTool > m_writeOutputTool
StatusCode processInputs(const FPGATrackSimEventInputHeader &eventHeader, FPGATrackSimLogicalEventInputHeader &logicEventHeader, FPGATrackSimLogicalEventInputHeader &logicEventHeader_precluster, std::vector< FPGATrackSimHit > &hits_miss, FPGATrackSimClusterCollection &clusters, SG::WriteHandle< FPGATrackSimHitCollection > &FPGAHitUnmapped, SG::WriteHandle< FPGATrackSimClusterCollection > &FPGAClusters) const
ToolHandleArray< FPGATrackSim::FPGATrackSimEventSelectionTool > m_eventSelectionTools
Gaudi::Property< bool > m_writePreClusterBranch
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputTruthParticleContainerKey
ToolHandle< GenericMonitoringTool > m_monTool
Gaudi::Property< bool > m_useInternalTruthTracks
FPGATrackSimLogicalEventInputHeader * m_logicEventHeader
Gaudi::Property< int > m_writeRegion
SG::WriteHandleKey< FPGATrackSimHitCollection > m_FPGAHitKey
SG::WriteHandleKey< FPGATrackSimEventInfo > m_FPGAEventInfoKey
Gaudi::Property< bool > m_writeOutputData
SG::WriteHandleKeyArray< FPGATrackSimClusterCollection > m_FPGAClusterKey
ServiceHandle< IChronoStatSvc > m_chrono
Gaudi::Property< bool > m_recordHits
SG::WriteHandleKey< xAODTruthParticleLinkVector > m_truthLinkContainerKey
StatusCode readInputs(const EventContext &ctx, FPGATrackSimEventInputHeader &eventHeader, FPGATrackSimEventInputHeader &firstInputHeader, bool &done) const
FPGATrackSimEventInfo const & event() const
FPGATrackSimOptionalEventInfo const & optional() const
const std::vector< FPGATrackSimTowerInputHeader > & towers() const
FPGATrackSimOptionalEventInfo const & optional() const
const std::vector< FPGATrackSimTruthTrack > & getTruthTracks() const
const std::vector< FPGATrackSimOfflineTrack > & getOfflineTracks() const
int uniqueID(const T &p)
void stable_sort(DataModel_detail::iterator< DVL > beg, DataModel_detail::iterator< DVL > end)
Specialization of stable_sort for DataVector/List.
TruthParticle_v1 TruthParticle
Typedef to implementation.
constexpr bool enableBenchmark

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

Definition at line 408 of file FPGATrackSimDataPrepAlg.cxx.

409{
410 ATH_MSG_INFO("PRINTING FPGATRACKSIM SIMPLE DATAPREP STATS");
411 ATH_MSG_INFO("========================================================================================");
412 ATH_MSG_INFO("Number of pixel clusters/event = " << m_nPixClusters/m_evt);
413 ATH_MSG_INFO("Number of strip clusters/event = " << m_nStripClusters/m_evt);
414 ATH_MSG_INFO("Max number of pixel clusters in an event = " << m_nMaxPixClusters);
415 ATH_MSG_INFO("Max number of strip clusters in an event = " << m_nMaxStripClusters);
416 ATH_MSG_INFO("Max number of clusters in an event = " << m_nMaxClusters);
417
418 return StatusCode::SUCCESS;
419}
#define ATH_MSG_INFO(x)
std::atomic< unsigned > m_nMaxStripClusters
std::atomic< unsigned > m_nMaxClusters
std::atomic< unsigned long > m_nPixClusters
std::atomic< unsigned > m_nMaxPixClusters
std::atomic< unsigned long > m_nStripClusters

◆ initialize()

StatusCode FPGATrackSimDataPrepAlg::initialize ( )
overridevirtual

Definition at line 44 of file FPGATrackSimDataPrepAlg.cxx.

45{
46 std::stringstream ss(m_description);
47 std::string line;
48 ATH_MSG_INFO("Tag config:");
49 if (!m_description.empty()) {
50 while (std::getline(ss, line, '\n')) {
51 ATH_MSG_INFO('\t' << line);
52 }
53 }
54
55 // Dump the configuration to make sure it propagated through right
56 const std::vector<Gaudi::Details::PropertyBase*> props = this->getProperties();
57 for( Gaudi::Details::PropertyBase* prop : props ) {
58 if (prop->ownerTypeName()==this->type()) {
59 ATH_MSG_DEBUG("Property:\t" << prop->name() << "\t : \t" << prop->toString());
60 }
61 }
62
63
64 ATH_CHECK(m_hitSGInputTool.retrieve(EnableTool{!m_hitSGInputTool.empty()}));
65
66 ATH_CHECK(m_hitInputTool.retrieve(EnableTool{!m_hitInputTool.empty()}));
67 ATH_CHECK(m_hitInputTool2.retrieve(EnableTool{m_secondInputToolN > 0 && !m_hitInputTool2.empty()}));
68 ATH_CHECK(m_hitMapTools.retrieve());
69 ATH_CHECK(m_hitFilteringTool.retrieve(EnableTool{m_doHitFiltering}));
70 ATH_CHECK(m_clusteringTool.retrieve(EnableTool{m_clustering > 0}));
71
72 ATH_CHECK(m_writeOutputTool.retrieve());
74
75
76 ATH_MSG_DEBUG("initialize() Instantiating root objects");
78 m_logicEventHeader = m_writeOutputTool->addInputBranch(m_postClusterBranch.value(), true);
79
80 ATH_MSG_DEBUG("initialize() Setting branch");
81
82 if (!m_monTool.empty())
83 ATH_CHECK(m_monTool.retrieve());
84
85 ATH_CHECK( m_FPGAClusterKey.initialize() );
86 ATH_CHECK( m_FPGAHitKey.initialize() );
87 ATH_CHECK( m_FPGAHitUnmappedKey.initialize() );
89 ATH_CHECK( m_truthLinkContainerKey.initialize() );
90 ATH_CHECK( m_FPGATruthTrackKey.initialize() );
91 ATH_CHECK( m_FPGAOfflineTrackKey.initialize() );
92 ATH_CHECK( m_FPGAEventInfoKey.initialize() );
93
94 ATH_CHECK( m_chrono.retrieve() );
95 ATH_MSG_DEBUG("initialize() Finished");
96
97
98 return StatusCode::SUCCESS;
99}
static Double_t ss
ToolHandleArray< FPGATrackSimRawToLogicalHitsTool > m_hitMapTools
Gaudi::Property< std::string > m_preClusterBranch
Gaudi::Property< std::string > m_postClusterBranch
ToolHandle< IFPGATrackSimInputTool > m_hitSGInputTool
ToolHandle< FPGATrackSimReadRawRandomHitsTool > m_hitInputTool2
ToolHandle< IFPGATrackSimEventInputHeaderTool > m_hitInputTool
ToolHandle< FPGATrackSimClusteringToolI > m_clusteringTool
ToolHandle< IFPGATrackSimHitFilteringTool > m_hitFilteringTool

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

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

◆ processInputs()

StatusCode FPGATrackSimDataPrepAlg::processInputs ( const FPGATrackSimEventInputHeader & eventHeader,
FPGATrackSimLogicalEventInputHeader & logicEventHeader,
FPGATrackSimLogicalEventInputHeader & logicEventHeader_precluster,
std::vector< FPGATrackSimHit > & hits_miss,
FPGATrackSimClusterCollection & clusters,
SG::WriteHandle< FPGATrackSimHitCollection > & FPGAHitUnmapped,
SG::WriteHandle< FPGATrackSimClusterCollection > & FPGAClusters ) const
private

Definition at line 323 of file FPGATrackSimDataPrepAlg.cxx.

331{
332 // Map hits
333 ATH_MSG_DEBUG("Running hits conversion");
334 logicEventHeader.reset();
335 logicEventHeader_precluster.reset();
336
337 if constexpr (enableBenchmark) m_chrono->chronoStart("DataPrep: RawToLogical");
338 for (auto hitMapTool : m_hitMapTools){
339 ATH_CHECK(hitMapTool->convert(1, eventHeader, logicEventHeader));
340 }
341 if constexpr (enableBenchmark) m_chrono->chronoStop("DataPrep: RawToLogical");
342
343
344 for (const FPGATrackSimHit& hit : hits_miss) FPGAHitUnmapped->push_back(hit);
345
346
347 ATH_MSG_DEBUG("Hits conversion done, #unmapped hists = " << hits_miss.size());
348
349 // At this stage, copy the logicEventHeader.
351 logicEventHeader_precluster = logicEventHeader;
352 }
353
354 if constexpr (enableBenchmark) m_chrono->chronoStart("DataPrep: Clustering");
355 // Clustering
356 for (int ic = 0; ic < m_clustering; ic++) {
357 ATH_MSG_DEBUG("Running clustering");
358 ATH_CHECK(m_clusteringTool->DoClustering(logicEventHeader, clusters));
359 // I think I also want to pass clusters to random removal (but won't work currently)
360 if (m_doHitFiltering) ATH_CHECK(m_hitFilteringTool->DoRandomRemoval(logicEventHeader, false));
361 unsigned npix(0), nstrip(0);
362 for (const FPGATrackSimCluster& cluster : clusters) {
363 if (cluster.getClusterEquiv().isPixel()) npix++;
364 else nstrip++;
365 }
366
367 m_nPixClusters += npix;
368 m_nStripClusters += nstrip;
369
370
371 // The following is hopefully a thread-safe approach to update nMaximum clusters
372 // using compare-exchange loop to prevent race conditions.
373 // Logic: Without atomics, two threads could both read e.g. max=100, calculate new values (150, 200),
374 // and the last write would win, potentially losing the true maximum (200 vs 150).
375 // compare_exchange_weak atomically checks if the value is unchanged before updating,
376 // and retries if another thread modified it concurrently, ensuring correctness.
377
378 // max update for m_nMaxPixClusters
379 unsigned current_max_pix = m_nMaxPixClusters;
380 while (npix > current_max_pix &&
381 !m_nMaxPixClusters.compare_exchange_weak(current_max_pix, npix));
382
383 // max update for m_nMaxStripClusters
384 unsigned current_max_strip = m_nMaxStripClusters;
385 while (nstrip > current_max_strip &&
386 !m_nMaxStripClusters.compare_exchange_weak(current_max_strip, nstrip));
387
388 // max update for m_nMaxClusters
389 unsigned current_max_clusters = m_nMaxClusters;
390 unsigned clusters_size = clusters.size();
391 while (clusters_size > current_max_clusters &&
392 !m_nMaxClusters.compare_exchange_weak(current_max_clusters, clusters_size));
393 }
394 // Record clusters
395 FPGAClusters->insert(
396 FPGAClusters->end(),
397 std::make_move_iterator(clusters.begin()),
398 std::make_move_iterator(clusters.end()));
399
400 if constexpr (enableBenchmark) m_chrono->chronoStop("DataPrep: Clustering");
401
402 return StatusCode::SUCCESS;
403}
Gaudi::Property< int > m_clustering
Gaudi::Property< bool > m_doHitFiltering
int ic
Definition grepfile.py:33

◆ readInputs()

StatusCode FPGATrackSimDataPrepAlg::readInputs ( const EventContext & ctx,
FPGATrackSimEventInputHeader & eventHeader,
FPGATrackSimEventInputHeader & firstInputHeader,
bool & done ) const
private

Definition at line 279 of file FPGATrackSimDataPrepAlg.cxx.

284{
285
286 if (!m_hitSGInputTool.empty()) {
287 ATH_CHECK(m_hitSGInputTool->readData(&eventHeader, ctx));
288 ATH_MSG_DEBUG("Loaded " << eventHeader.nHits() << " hits in event header from SG");
289 return StatusCode::SUCCESS;
290 }
291
292 if (m_ev % m_firstInputToolN == 0)
293 {
294 // Read primary input
295 ATH_CHECK(m_hitInputTool->readData(&firstInputHeader, done));
296 if (done)
297 {
298 ATH_MSG_DEBUG("Cannot read more events from file, returning");
299 return StatusCode::SUCCESS;
300 }
301 }
302
303 eventHeader = firstInputHeader;
304
305 // Read secondary input
306 for (int i = 0; i < m_secondInputToolN; i++)
307 {
308 ATH_CHECK(m_hitInputTool2->readData(&eventHeader, done, false));
309 if (done)
310 {
311 ATH_MSG_INFO("Cannot read more events from file, returning");
312 return StatusCode::SUCCESS;
313 }
314 }
315
316 m_ev++;
317
318 return StatusCode::SUCCESS;
319}
Gaudi::Property< int > m_firstInputToolN
Gaudi::Property< int > m_secondInputToolN
std::atomic< unsigned > m_ev

◆ 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

◆ m_chrono

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

Definition at line 82 of file FPGATrackSimDataPrepAlg.h.

82{this,"ChronoStatSvc","ChronoStatSvc"};

◆ m_clustering

Gaudi::Property<int> FPGATrackSimDataPrepAlg::m_clustering {this, "Clustering", 0, "int to enable the clustering and say how many times to run it"}
private

Definition at line 89 of file FPGATrackSimDataPrepAlg.h.

89{this, "Clustering", 0, "int to enable the clustering and say how many times to run it"};

◆ m_clusteringTool

ToolHandle<FPGATrackSimClusteringToolI> FPGATrackSimDataPrepAlg::m_clusteringTool {this, "ClusteringTool", "FPGATrackSimClusteringTool/FPGATrackSimClusteringTool", "Hit Clustering Tool"}
private

Definition at line 78 of file FPGATrackSimDataPrepAlg.h.

78{this, "ClusteringTool", "FPGATrackSimClusteringTool/FPGATrackSimClusteringTool", "Hit Clustering Tool"};

◆ m_description

std::string FPGATrackSimDataPrepAlg::m_description
private

Definition at line 69 of file FPGATrackSimDataPrepAlg.h.

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

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_doEvtSel {this, "doEvtSel", false, "do event selection"}
private

Definition at line 94 of file FPGATrackSimDataPrepAlg.h.

94{this, "doEvtSel", false, "do event selection"};

◆ m_doHitFiltering

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_doHitFiltering {this, "HitFiltering", false, "flag to enable hit/cluster filtering"}
private

Definition at line 88 of file FPGATrackSimDataPrepAlg.h.

88{this, "HitFiltering", false, "flag to enable hit/cluster filtering"};

◆ m_ev

std::atomic<unsigned> FPGATrackSimDataPrepAlg::m_ev {0}
mutableprivate

Definition at line 70 of file FPGATrackSimDataPrepAlg.h.

70{0};

◆ m_eventSelectionTools

ToolHandleArray<FPGATrackSim::FPGATrackSimEventSelectionTool> FPGATrackSimDataPrepAlg::m_eventSelectionTools {this, "eventSelectors", {}, "Event selection Tools"}
private

Definition at line 80 of file FPGATrackSimDataPrepAlg.h.

80{this, "eventSelectors", {}, "Event selection Tools"};

◆ m_evt

std::atomic<size_t> FPGATrackSimDataPrepAlg::m_evt = 0
mutableprivate

Definition at line 108 of file FPGATrackSimDataPrepAlg.h.

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

Gaudi::Property<int> FPGATrackSimDataPrepAlg::m_firstInputToolN {this, "FirstInputToolN", 1, "number of times to use event from first input tool"}
private

Definition at line 86 of file FPGATrackSimDataPrepAlg.h.

86{this, "FirstInputToolN", 1, "number of times to use event from first input tool"};

◆ m_FPGAClusterKey

SG::WriteHandleKeyArray<FPGATrackSimClusterCollection> FPGATrackSimDataPrepAlg::m_FPGAClusterKey {this, "FPGATrackSimClusterKey",{"FPGAClusters_1st"},"FPGATrackSim Clusters key"}
private

Definition at line 133 of file FPGATrackSimDataPrepAlg.h.

133{this, "FPGATrackSimClusterKey",{"FPGAClusters_1st"},"FPGATrackSim Clusters key"};

◆ m_FPGAEventInfoKey

SG::WriteHandleKey<FPGATrackSimEventInfo> FPGATrackSimDataPrepAlg::m_FPGAEventInfoKey {this, "FPGATrackSimEventInfoKey", "FPGAEventInfo", "FPGATrackSim event info"}
private

Definition at line 142 of file FPGATrackSimDataPrepAlg.h.

142{this, "FPGATrackSimEventInfoKey", "FPGAEventInfo", "FPGATrackSim event info"};

◆ m_FPGAHitKey

SG::WriteHandleKey<FPGATrackSimHitCollection> FPGATrackSimDataPrepAlg::m_FPGAHitKey {this, "FPGATrackSimHitKey","FPGAHits", "FPGATrackSim Hits key"}
private

Definition at line 134 of file FPGATrackSimDataPrepAlg.h.

134{this, "FPGATrackSimHitKey","FPGAHits", "FPGATrackSim Hits key"};

◆ m_FPGAHitUnmappedKey

SG::WriteHandleKey<FPGATrackSimHitCollection> FPGATrackSimDataPrepAlg::m_FPGAHitUnmappedKey {this, "FPGATrackSimHitUnmappedKey","FPGAHitsUnmapped_1st","FPGATrackSim Unmapped Hits 1st stage key"}
private

Definition at line 135 of file FPGATrackSimDataPrepAlg.h.

135{this, "FPGATrackSimHitUnmappedKey","FPGAHitsUnmapped_1st","FPGATrackSim Unmapped Hits 1st stage key"};

◆ m_FPGAOfflineTrackKey

SG::WriteHandleKey<FPGATrackSimOfflineTrackCollection> FPGATrackSimDataPrepAlg::m_FPGAOfflineTrackKey {this, "FPGATrackSimOfflineTrackKey", "FPGAOfflineTracks", "FPGATrackSim offline tracks"}
private

Definition at line 141 of file FPGATrackSimDataPrepAlg.h.

141{this, "FPGATrackSimOfflineTrackKey", "FPGAOfflineTracks", "FPGATrackSim offline tracks"};

◆ m_FPGATruthTrackKey

SG::WriteHandleKey<FPGATrackSimTruthTrackCollection> FPGATrackSimDataPrepAlg::m_FPGATruthTrackKey {this, "FPGATrackSimTruthTrackKey", "FPGATruthTracks", "FPGATrackSim truth tracks"}
private

Definition at line 140 of file FPGATrackSimDataPrepAlg.h.

140{this, "FPGATrackSimTruthTrackKey", "FPGATruthTracks", "FPGATrackSim truth tracks"};

◆ m_hitFilteringTool

ToolHandle<IFPGATrackSimHitFilteringTool> FPGATrackSimDataPrepAlg::m_hitFilteringTool {this, "HitFilteringTool", "FPGATrackSimHitFilteringTool/FPGATrackSimHitFilteringTool", "Hit Filtering Tool"}
private

Definition at line 77 of file FPGATrackSimDataPrepAlg.h.

77{this, "HitFilteringTool", "FPGATrackSimHitFilteringTool/FPGATrackSimHitFilteringTool", "Hit Filtering Tool"};

◆ m_hitInputTool

ToolHandle<IFPGATrackSimEventInputHeaderTool> FPGATrackSimDataPrepAlg::m_hitInputTool {this, "InputTool", "FPGATrackSimSGToRawHitsTool/FPGATrackSimSGToRawHitsTool", "Input Tool"}
private

Definition at line 74 of file FPGATrackSimDataPrepAlg.h.

74{this, "InputTool", "FPGATrackSimSGToRawHitsTool/FPGATrackSimSGToRawHitsTool", "Input Tool"};

◆ m_hitInputTool2

ToolHandle<FPGATrackSimReadRawRandomHitsTool> FPGATrackSimDataPrepAlg::m_hitInputTool2 {this, "InputTool2", "FPGATrackSimReadRawRandomHitsTool/FPGATrackSimReadRawRandomHitsTool", "Potential 2nd input Tool to load data from more than one source"}
private

Definition at line 75 of file FPGATrackSimDataPrepAlg.h.

75{this, "InputTool2", "FPGATrackSimReadRawRandomHitsTool/FPGATrackSimReadRawRandomHitsTool", "Potential 2nd input Tool to load data from more than one source"};

◆ m_hitMapTools

ToolHandleArray<FPGATrackSimRawToLogicalHitsTool> FPGATrackSimDataPrepAlg::m_hitMapTools {this, "RawToLogicalHitsTools", {}, "Raw To Logical Tools"}
private

Definition at line 76 of file FPGATrackSimDataPrepAlg.h.

76{this, "RawToLogicalHitsTools", {}, "Raw To Logical Tools"};

◆ m_hitSGInputTool

ToolHandle<IFPGATrackSimInputTool> FPGATrackSimDataPrepAlg::m_hitSGInputTool {this, "SGInputTool", "", "Input tool from SG"}
private

Definition at line 73 of file FPGATrackSimDataPrepAlg.h.

73{this, "SGInputTool", "", "Input tool from SG"};

◆ m_inputTruthParticleContainerKey

SG::ReadHandleKey<xAOD::TruthParticleContainer> FPGATrackSimDataPrepAlg::m_inputTruthParticleContainerKey {this, "TruthTrackContainer", "TruthParticles", "Truth Particle Container"}
private

Definition at line 137 of file FPGATrackSimDataPrepAlg.h.

137{this, "TruthTrackContainer", "TruthParticles", "Truth Particle Container"};

◆ m_isDataPrepPipeline

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_isDataPrepPipeline {this, "isDataPrepPipeline", false, "If True, this is for data prep pipeline only, thus skipping unecessary steps"}
private

Definition at line 85 of file FPGATrackSimDataPrepAlg.h.

85{this, "isDataPrepPipeline", false, "If True, this is for data prep pipeline only, thus skipping unecessary steps"};

◆ m_logicEventHeader

FPGATrackSimLogicalEventInputHeader* FPGATrackSimDataPrepAlg::m_logicEventHeader = nullptr
private

Definition at line 105 of file FPGATrackSimDataPrepAlg.h.

◆ m_logicEventHeader_precluster

FPGATrackSimLogicalEventInputHeader* FPGATrackSimDataPrepAlg::m_logicEventHeader_precluster = nullptr
private

Definition at line 104 of file FPGATrackSimDataPrepAlg.h.

◆ m_monTool

ToolHandle<GenericMonitoringTool> FPGATrackSimDataPrepAlg::m_monTool {this,"MonTool", "", "Monitoring tool"}
private

Definition at line 130 of file FPGATrackSimDataPrepAlg.h.

130{this,"MonTool", "", "Monitoring tool"};

◆ m_nMaxClusters

std::atomic<unsigned> FPGATrackSimDataPrepAlg::m_nMaxClusters = 0
mutableprivate

Definition at line 114 of file FPGATrackSimDataPrepAlg.h.

◆ m_nMaxPixClusters

std::atomic<unsigned> FPGATrackSimDataPrepAlg::m_nMaxPixClusters = 0
mutableprivate

Definition at line 111 of file FPGATrackSimDataPrepAlg.h.

◆ m_nMaxStripClusters

std::atomic<unsigned> FPGATrackSimDataPrepAlg::m_nMaxStripClusters = 0
mutableprivate

Definition at line 113 of file FPGATrackSimDataPrepAlg.h.

◆ m_nPixClusters

std::atomic<unsigned long> FPGATrackSimDataPrepAlg::m_nPixClusters = 0
mutableprivate

Definition at line 110 of file FPGATrackSimDataPrepAlg.h.

◆ m_nStripClusters

std::atomic<unsigned long> FPGATrackSimDataPrepAlg::m_nStripClusters = 0
mutableprivate

Definition at line 112 of file FPGATrackSimDataPrepAlg.h.

◆ m_postClusterBranch

Gaudi::Property<std::string> FPGATrackSimDataPrepAlg::m_postClusterBranch {this, "postClusterBranch", "LogicalEventInputHeader_PostCluster", "Name of the branch for post-cluster input data in output ROOT file." }
private

Definition at line 101 of file FPGATrackSimDataPrepAlg.h.

101{this, "postClusterBranch", "LogicalEventInputHeader_PostCluster", "Name of the branch for post-cluster input data in output ROOT file." };

◆ m_preClusterBranch

Gaudi::Property<std::string> FPGATrackSimDataPrepAlg::m_preClusterBranch {this, "preClusterBranch", "LogicalEventInputHeader_PreCluster", "Name of the branch for pre-cluster input data in output ROOT file." }
private

Definition at line 100 of file FPGATrackSimDataPrepAlg.h.

100{this, "preClusterBranch", "LogicalEventInputHeader_PreCluster", "Name of the branch for pre-cluster input data in output ROOT file." };

◆ m_recordHits

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_recordHits {this,"recordHits", true, "For F-100 this is not needed"}
private

Definition at line 96 of file FPGATrackSimDataPrepAlg.h.

96{this,"recordHits", true, "For F-100 this is not needed"};

◆ m_rootWriteMutex

std::mutex FPGATrackSimDataPrepAlg::m_rootWriteMutex
mutableprivate

Definition at line 144 of file FPGATrackSimDataPrepAlg.h.

◆ m_secondInputToolN

Gaudi::Property<int> FPGATrackSimDataPrepAlg::m_secondInputToolN {this, "SecondInputToolN", 0, "number of times to use event from second input tool"}
private

Definition at line 87 of file FPGATrackSimDataPrepAlg.h.

87{this, "SecondInputToolN", 0, "number of times to use event from second input tool"};

◆ m_truthLinkContainerKey

SG::WriteHandleKey<xAODTruthParticleLinkVector> FPGATrackSimDataPrepAlg::m_truthLinkContainerKey {this, "TruthLinks", "xAODFPGATruthLinks", "Output EF xAODTruthLinks container"}
private

Definition at line 138 of file FPGATrackSimDataPrepAlg.h.

138{this, "TruthLinks", "xAODFPGATruthLinks", "Output EF xAODTruthLinks container"};

◆ m_useInternalTruthTracks

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_useInternalTruthTracks {this,"useInternalTruthTracks", false, "case when runnin on RDO file (and not or wrapper)"}
private

Definition at line 95 of file FPGATrackSimDataPrepAlg.h.

95{this,"useInternalTruthTracks", false, "case when runnin on RDO file (and not or wrapper)"};

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

◆ m_writeOutputData

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_writeOutputData {this, "writeOutputData", true,"write the output TTree"}
private

Definition at line 90 of file FPGATrackSimDataPrepAlg.h.

90{this, "writeOutputData", true,"write the output TTree"};

◆ m_writeOutputTool

ToolHandle<FPGATrackSimOutputHeaderTool> FPGATrackSimDataPrepAlg::m_writeOutputTool {this, "OutputTool", "FPGATrackSimOutputHeaderTool/FPGATrackSimOutputHeaderTool", "Output tool"}
private

Definition at line 79 of file FPGATrackSimDataPrepAlg.h.

79{this, "OutputTool", "FPGATrackSimOutputHeaderTool/FPGATrackSimOutputHeaderTool", "Output tool"};

◆ m_writePreClusterBranch

Gaudi::Property<bool> FPGATrackSimDataPrepAlg::m_writePreClusterBranch {this, "writePreClusterBranch", true, "If set to false, never write precluster branches"}
private

Definition at line 91 of file FPGATrackSimDataPrepAlg.h.

91{this, "writePreClusterBranch", true, "If set to false, never write precluster branches"};

◆ m_writeRegion

Gaudi::Property<int> FPGATrackSimDataPrepAlg::m_writeRegion {this,"writeRegion", -1, "Only output selected region, default is -1 which means not requirement"}
private

Definition at line 97 of file FPGATrackSimDataPrepAlg.h.

97{this,"writeRegion", -1, "Only output selected region, default is -1 which means not requirement"};

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