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< std::unique_ptr< 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< ConstDataVector< FPGATrackSimHitCollection > > m_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 56 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 39 of file FPGATrackSimDataPrepAlg.cxx.

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

◆ ~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 107 of file FPGATrackSimDataPrepAlg.cxx.

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

412{
413 ATH_MSG_INFO("PRINTING FPGATRACKSIM SIMPLE DATAPREP STATS");
414 ATH_MSG_INFO("========================================================================================");
415 ATH_MSG_INFO("Number of pixel clusters/event = " << m_nPixClusters/m_evt);
416 ATH_MSG_INFO("Number of strip clusters/event = " << m_nStripClusters/m_evt);
417 ATH_MSG_INFO("Max number of pixel clusters in an event = " << m_nMaxPixClusters);
418 ATH_MSG_INFO("Max number of strip clusters in an event = " << m_nMaxStripClusters);
419 ATH_MSG_INFO("Max number of clusters in an event = " << m_nMaxClusters);
420
421 return StatusCode::SUCCESS;
422}
#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 45 of file FPGATrackSimDataPrepAlg.cxx.

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

Definition at line 325 of file FPGATrackSimDataPrepAlg.cxx.

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

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

81{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 88 of file FPGATrackSimDataPrepAlg.h.

88{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 77 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_description

std::string FPGATrackSimDataPrepAlg::m_description
private

Definition at line 68 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 93 of file FPGATrackSimDataPrepAlg.h.

93{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 87 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_ev

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

Definition at line 69 of file FPGATrackSimDataPrepAlg.h.

69{0};

◆ m_eventSelectionTools

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

Definition at line 79 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_evt

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

Definition at line 107 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 85 of file FPGATrackSimDataPrepAlg.h.

85{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 132 of file FPGATrackSimDataPrepAlg.h.

132{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 141 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_FPGAHitKey

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

Definition at line 133 of file FPGATrackSimDataPrepAlg.h.

133{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 134 of file FPGATrackSimDataPrepAlg.h.

134{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 140 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_FPGATruthTrackKey

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

Definition at line 139 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_hitFilteringTool

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

Definition at line 76 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_hitInputTool

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

Definition at line 73 of file FPGATrackSimDataPrepAlg.h.

73{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 74 of file FPGATrackSimDataPrepAlg.h.

74{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 75 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_hitSGInputTool

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

Definition at line 72 of file FPGATrackSimDataPrepAlg.h.

72{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 136 of file FPGATrackSimDataPrepAlg.h.

136{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 84 of file FPGATrackSimDataPrepAlg.h.

84{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 104 of file FPGATrackSimDataPrepAlg.h.

◆ m_logicEventHeader_precluster

FPGATrackSimLogicalEventInputHeader* FPGATrackSimDataPrepAlg::m_logicEventHeader_precluster = nullptr
private

Definition at line 103 of file FPGATrackSimDataPrepAlg.h.

◆ m_monTool

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

Definition at line 129 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_nMaxClusters

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

Definition at line 113 of file FPGATrackSimDataPrepAlg.h.

◆ m_nMaxPixClusters

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

Definition at line 110 of file FPGATrackSimDataPrepAlg.h.

◆ m_nMaxStripClusters

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

Definition at line 112 of file FPGATrackSimDataPrepAlg.h.

◆ m_nPixClusters

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

Definition at line 109 of file FPGATrackSimDataPrepAlg.h.

◆ m_nStripClusters

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

Definition at line 111 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 100 of file FPGATrackSimDataPrepAlg.h.

100{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 99 of file FPGATrackSimDataPrepAlg.h.

99{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 95 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_rootWriteMutex

std::mutex FPGATrackSimDataPrepAlg::m_rootWriteMutex
mutableprivate

Definition at line 143 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 86 of file FPGATrackSimDataPrepAlg.h.

86{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 137 of file FPGATrackSimDataPrepAlg.h.

137{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 94 of file FPGATrackSimDataPrepAlg.h.

94{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 89 of file FPGATrackSimDataPrepAlg.h.

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

◆ m_writeOutputTool

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

Definition at line 78 of file FPGATrackSimDataPrepAlg.h.

78{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 90 of file FPGATrackSimDataPrepAlg.h.

90{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 96 of file FPGATrackSimDataPrepAlg.h.

96{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: