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

#include <FPGATrackSimReportingAlg.h>

Inheritance diagram for FPGATrackSim::FPGATrackSimReportingAlg:

Public Member Functions

 FPGATrackSimReportingAlg (const std::string &name, ISvcLocator *pSvcLocator)
virtual ~FPGATrackSimReportingAlg ()=default
virtual StatusCode initialize () override final
virtual StatusCode execute (const EventContext &ctx) const override final
virtual StatusCode finalize () override final
template<>
void printxAODClusters (SG::ReadHandle< DataVector< xAOD::PixelCluster > > &clusterContainer) const
template<>
void printxAODClusters (SG::ReadHandle< DataVector< xAOD::StripCluster > > &clusterContainer) const
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

template<class XAOD_CLUSTER>
void processxAODClusters (SG::ReadHandle< DataVector< XAOD_CLUSTER > > &clusterContainer) const
template<class XAOD_CLUSTER>
void printxAODClusters (SG::ReadHandle< DataVector< XAOD_CLUSTER > > &clusterContainer) const
void processxAODSpacePoints (SG::ReadHandle< DataVector< xAOD::SpacePoint > > &spContainer) const
void printxAODSpacePoints (SG::ReadHandle< DataVector< xAOD::SpacePoint > > &spContainer) const
void processFPGAClusters (SG::ReadHandle< FPGATrackSimClusterCollection > &FPGAClusters) const
void printFPGAClusters (SG::ReadHandle< FPGATrackSimClusterCollection > &FPGAClusters) const
void processFPGARoads (SG::ReadHandle< FPGATrackSimRoadCollection > &FPGARoads) const
void printFPGARoads (SG::ReadHandle< FPGATrackSimRoadCollection > &FPGARoads) const
void processFPGATracks (SG::ReadHandle< FPGATrackSimTrackCollection > &FPGATracks) const
void printFPGATracks (SG::ReadHandle< FPGATrackSimTrackCollection > &FPGATracks) const
void processFPGASeeds (SG::ReadHandle< ActsTrk::SeedContainer > &FPGASeeds) const
void printFPGASeeds (SG::ReadHandle< ActsTrk::SeedContainer > &FPGASeeds) const
void processFPGASeedsParam (SG::ReadHandle< ActsTrk::BoundTrackParametersContainer > &FPGASeedsParam) const
void printFPGASeedsParam (SG::ReadHandle< ActsTrk::BoundTrackParametersContainer > &FPGASeedsParam) const
void processFPGAPrototracks (SG::ReadHandle< ActsTrk::ProtoTrackCollection > &FPGAPrototracks) const
void printFPGAPrototracks (SG::ReadHandle< ActsTrk::ProtoTrackCollection > &FPGAPrototracks) const
void processActsTracks (SG::ReadHandle< ActsTrk::TrackContainer > &ActsTracks) const
StatusCode summaryReportForEDMConversion ()
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

std::vector< uint32_t > m_pixelClustersPerFPGATrack ATLAS_THREAD_SAFE
std::vector< uint32_t > m_pixelClustersPerFPGATrack m_stripClustersPerFPGATrack ATLAS_THREAD_SAFE
std::vector< uint32_t > m_pixelClustersPerPrototrack ATLAS_THREAD_SAFE
std::vector< uint32_t > m_pixelClustersPerPrototrack m_stripClustersPerPrototrack ATLAS_THREAD_SAFE
std::map< std::string, std::vector< FPGATrackSimActsEventTracks > > m_allActsTracks ATLAS_THREAD_SAFE
std::map< std::string, std::map< Acts::TrackStateFlag, std::vector< uint32_t > > > m_actsTrackStats ATLAS_THREAD_SAFE
Gaudi::Property< bool > m_printoutForEveryEvent {this, "perEventReports", false, "A flag to enable per event printout"}
Gaudi::Property< bool > m_isDataPrep {this, "isDataPrep", false, "If True, this is for data prep pipeline only"}
SG::ReadHandleKeyArray< xAOD::PixelClusterContainerm_xAODPixelClusterContainerKeys
SG::ReadHandleKeyArray< xAOD::StripClusterContainerm_xAODStripClusterContainerKeys
SG::ReadHandleKeyArray< xAOD::SpacePointContainerm_xAODSpacePointContainerKeys
SG::ReadHandleKey< FPGATrackSimRoadCollectionm_FPGARoadsKey { this, "FPGATrackSimRoads","","FPGATrackSim Roads key" }
SG::ReadHandleKey< FPGATrackSimTrackCollectionm_FPGATracksKey { this, "FPGATrackSimTracks","","FPGATrackSim Tracks key" }
SG::ReadHandleKeyArray< ActsTrk::ProtoTrackCollectionm_FPGAProtoTrackCollections {this, "FPGATrackSimProtoTracks",{},"FPGATrackSim PrototrackCollection"}
SG::ReadHandleKeyArray< ActsTrk::TrackContainerm_ActsTrackCollections {this, "FPGAActsTracks",{},"Acts track collections from (C)KF"}
SG::ReadHandleKeyArray< ActsTrk::SeedContainerm_ActsSeedCollections {this, "FPGAActsSeeds",{},"Acts Seeds collections from (C)KF"}
SG::ReadHandleKeyArray< ActsTrk::BoundTrackParametersContainerm_ActsSeedParamCollections {this, "FPGAActsSeedsParam",{},"Acts Seeds param collections from (C)KF"}
ToolHandle< FPGATrackSim::ActsTrackInspectionToolm_ActsInspectionTool {this, "ActsInspectionTool", "FPGATrackSim::ActsTrackInspectionTool/ActsTrackInspectionTool", "Monitoring tool for acts tracks"}
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 30 of file FPGATrackSimReportingAlg.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

◆ FPGATrackSimReportingAlg()

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

Definition at line 8 of file FPGATrackSimReportingAlg.cxx.

8 : AthReentrantAlgorithm(name, pSvcLocator) {
9}

◆ ~FPGATrackSimReportingAlg()

virtual FPGATrackSim::FPGATrackSimReportingAlg::~FPGATrackSimReportingAlg ( )
virtualdefault

Member Function Documentation

◆ cardinality()

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

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

Override this to return 0 for reentrant algorithms.

Definition at line 75 of file AthCommonReentrantAlgorithm.cxx.

64{
65 return 0;
66}

◆ declareGaudiProperty()

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

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

Definition at line 156 of file AthCommonDataStore.h.

158 {
160 hndl.value(),
161 hndl.documentation());
162
163 }
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)

◆ declareProperty()

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

Definition at line 145 of file AthCommonDataStore.h.

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

◆ detStore()

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

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

Definition at line 95 of file AthCommonDataStore.h.

◆ evtStore()

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

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

Definition at line 85 of file AthCommonDataStore.h.

◆ execute()

StatusCode FPGATrackSim::FPGATrackSimReportingAlg::execute ( const EventContext & ctx) const
finaloverridevirtual

Definition at line 27 of file FPGATrackSimReportingAlg.cxx.

28{
29 // Process xAOD Pixel Clusters
30 std::vector<SG::ReadHandle<xAOD::PixelClusterContainer>> xAODPixelClusterContainers = m_xAODPixelClusterContainerKeys.makeHandles(ctx);
31 for (SG::ReadHandle<xAOD::PixelClusterContainer>& clusterContainer : xAODPixelClusterContainers)
32 {
33 if (!clusterContainer.isValid()) {
34 ATH_MSG_WARNING("SG key not available " << clusterContainer.key());
35 continue;
36 }
38 }
39 // Process xAOD Strip Clusters
40 std::vector<SG::ReadHandle<xAOD::StripClusterContainer>> xAODStripClusterContainers = m_xAODStripClusterContainerKeys.makeHandles(ctx);
41 for (SG::ReadHandle<xAOD::StripClusterContainer>& clusterContainer : xAODStripClusterContainers)
42 {
43 if (!clusterContainer.isValid()) {
44 ATH_MSG_WARNING("SG key not available " << clusterContainer.key());
45 continue;
46 }
48 }
49 // Process xAOD SpacePoints
50 std::vector<SG::ReadHandle<xAOD::SpacePointContainer>> xAODSpacePointContainers = m_xAODSpacePointContainerKeys.makeHandles(ctx);
51 for (SG::ReadHandle<xAOD::SpacePointContainer>& spContainer : xAODSpacePointContainers)
52 {
53 if (!spContainer.isValid()) {
54 ATH_MSG_WARNING("SG key not available " << spContainer.key());
55 }
56 else {processxAODSpacePoints(spContainer);}
57 }
58 if (!m_isDataPrep.value()) {
59 // Process FPGATrackSim Roads
60 SG::ReadHandle<FPGATrackSimRoadCollection> FPGATrackSimRoads(m_FPGARoadsKey, ctx);
61 if (FPGATrackSimRoads.isValid()) {
62 processFPGARoads(FPGATrackSimRoads);
63 }
64 else ATH_MSG_WARNING("Could not find FPGA Roads Collection with key " << FPGATrackSimRoads.key());
65
66
67 // Process FPGATrackSim Tracks
68 SG::ReadHandle<FPGATrackSimTrackCollection> FPGATrackSimTracks(m_FPGATracksKey, ctx);
69 if (FPGATrackSimTracks.isValid()) {
70 processFPGATracks(FPGATrackSimTracks);
71 }
72 else ATH_MSG_WARNING("Could not find FPGA Track Collection with key " << FPGATrackSimTracks.key());
73
74 // Process FPGATrackSim Prototracks
75 std::vector<SG::ReadHandle<ActsTrk::ProtoTrackCollection>> FPGATrackSimProtoTracks = m_FPGAProtoTrackCollections.makeHandles(ctx);
76 for (SG::ReadHandle<ActsTrk::ProtoTrackCollection>& prototrackContainer : FPGATrackSimProtoTracks)
77 {
78 if (!prototrackContainer.isValid()) {
79 ATH_MSG_WARNING("SG key not available " << prototrackContainer.key());
80 continue;
81 }
82 processFPGAPrototracks(prototrackContainer);
83 }
84 } // if it's not the data preparation chain
85 // Process Acts tracks
86 std::vector<SG::ReadHandle<ActsTrk::TrackContainer>> FPGAActsTracks = m_ActsTrackCollections.makeHandles(ctx);
87 for (SG::ReadHandle<ActsTrk::TrackContainer>& actsTrackContainer : FPGAActsTracks)
88 {
89 if (actsTrackContainer.cptr()) ATH_MSG_DEBUG("Proccessing " << actsTrackContainer.key());
90 else continue;
91 // initialize the ReadHandle pair if necessarys
92 m_allActsTracks.try_emplace(actsTrackContainer.key(), std::vector<FPGATrackSimActsEventTracks>{});
93
94 // fetch acts tracks
95 m_allActsTracks[actsTrackContainer.key()].push_back(m_ActsInspectionTool->getActsTracks(*(actsTrackContainer.cptr())));
96
97 // initialize ReadHandle stats map for all tracks if necessary
98 m_actsTrackStats.try_emplace(actsTrackContainer.key(), std::map<Acts::TrackStateFlag, std::vector<uint32_t>>{});
99
100 m_actsTrackStats[actsTrackContainer.key()].emplace(
101 Acts::TrackStateFlag::IsOutlier, std::vector<uint32_t>{});
102 m_actsTrackStats[actsTrackContainer.key()].emplace(
103 Acts::TrackStateFlag::IsHole, std::vector<uint32_t>{});
104 m_actsTrackStats[actsTrackContainer.key()].emplace(
105 Acts::TrackStateFlag::HasMeasurement, std::vector<uint32_t>{});
106 for (const auto& track : m_allActsTracks[actsTrackContainer.key()].back()) {
107 uint32_t t_nOutliers = 0, t_nMeasurements = 0, t_nHoles = 0;
108 for (const auto& measurement : track->trackMeasurements)
109 {
110 if (measurement->outlierFlag) ++t_nOutliers;
111 if (measurement->measurementFlag) ++t_nMeasurements;
112 if (measurement->holeFlag) ++t_nHoles;
113 }
114 m_actsTrackStats[actsTrackContainer.key()][Acts::TrackStateFlag::IsOutlier].push_back(t_nOutliers);
115 m_actsTrackStats[actsTrackContainer.key()][Acts::TrackStateFlag::IsHole].push_back(t_nHoles);
116 m_actsTrackStats[actsTrackContainer.key()][Acts::TrackStateFlag::HasMeasurement].push_back(t_nMeasurements);
117 }
118 if (m_printoutForEveryEvent) ATH_MSG_INFO("ACTS tracks in " << actsTrackContainer.key() << m_ActsInspectionTool->getPrintoutActsEventTracks(m_allActsTracks[actsTrackContainer.key()].back()));
119 }
120
121 std::vector<SG::ReadHandle<ActsTrk::SeedContainer>> FPGAActsSeeds = m_ActsSeedCollections.makeHandles(ctx);
122
123 for (SG::ReadHandle<ActsTrk::SeedContainer>& actsTrackContainer : FPGAActsSeeds)
124 {
125 if (!actsTrackContainer.isValid()) {
126 ATH_MSG_WARNING("SG key not available " << actsTrackContainer.key());
127 continue;
128 }
129 processFPGASeeds(actsTrackContainer);
130 }
131
132
133 std::vector<SG::ReadHandle<ActsTrk::BoundTrackParametersContainer>> FPGAActsSeedsParam = m_ActsSeedParamCollections.makeHandles(ctx);
134
135 for (SG::ReadHandle<ActsTrk::BoundTrackParametersContainer>& actsTrackContainer : FPGAActsSeedsParam)
136 {
137 if (!actsTrackContainer.isValid()) {
138 ATH_MSG_WARNING("SG key not available " << actsTrackContainer.key());
139 continue;
140 }
141 processFPGASeedsParam(actsTrackContainer);
142 }
143
144 return StatusCode::SUCCESS;
145}
#define ATH_MSG_INFO(x)
#define ATH_MSG_WARNING(x)
#define ATH_MSG_DEBUG(x)
SG::ReadHandleKeyArray< xAOD::StripClusterContainer > m_xAODStripClusterContainerKeys
void processFPGASeeds(SG::ReadHandle< ActsTrk::SeedContainer > &FPGASeeds) const
SG::ReadHandleKeyArray< ActsTrk::BoundTrackParametersContainer > m_ActsSeedParamCollections
SG::ReadHandleKeyArray< ActsTrk::SeedContainer > m_ActsSeedCollections
SG::ReadHandleKeyArray< xAOD::SpacePointContainer > m_xAODSpacePointContainerKeys
SG::ReadHandleKeyArray< ActsTrk::ProtoTrackCollection > m_FPGAProtoTrackCollections
void processFPGARoads(SG::ReadHandle< FPGATrackSimRoadCollection > &FPGARoads) const
SG::ReadHandleKey< FPGATrackSimTrackCollection > m_FPGATracksKey
ToolHandle< FPGATrackSim::ActsTrackInspectionTool > m_ActsInspectionTool
void processFPGAPrototracks(SG::ReadHandle< ActsTrk::ProtoTrackCollection > &FPGAPrototracks) const
void processFPGATracks(SG::ReadHandle< FPGATrackSimTrackCollection > &FPGATracks) const
void processFPGASeedsParam(SG::ReadHandle< ActsTrk::BoundTrackParametersContainer > &FPGASeedsParam) const
SG::ReadHandleKey< FPGATrackSimRoadCollection > m_FPGARoadsKey
void processxAODClusters(SG::ReadHandle< DataVector< XAOD_CLUSTER > > &clusterContainer) const
SG::ReadHandleKeyArray< ActsTrk::TrackContainer > m_ActsTrackCollections
void processxAODSpacePoints(SG::ReadHandle< DataVector< xAOD::SpacePoint > > &spContainer) const
SG::ReadHandleKeyArray< xAOD::PixelClusterContainer > m_xAODPixelClusterContainerKeys
setEventNumber uint32_t

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase & ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ extraOutputDeps()

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

Return the list of extra output dependencies.

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

Definition at line 94 of file AthCommonReentrantAlgorithm.cxx.

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

◆ filterPassed()

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

Definition at line 96 of file AthCommonReentrantAlgorithm.h.

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

◆ finalize()

StatusCode FPGATrackSim::FPGATrackSimReportingAlg::finalize ( )
finaloverridevirtual

Definition at line 147 of file FPGATrackSimReportingAlg.cxx.

148{
149 ATH_MSG_INFO("Printing statistics for FPGA objects");
150
151 if (!m_isDataPrep.value()) {
152 // Printing summary for clusters/FPGATracks
153 std::string summaryTableFPGATracks = "\n"
154 "Number of measurements for FPGA Tracks\n"
155 "|-----------------------------------|\n"
156 "| | min | max | Avg |\n"
157 "|-----------------------------------|\n";
158
159 if (not m_pixelClustersPerFPGATrack.empty()) {
160 summaryTableFPGATracks += std::format("| Pixels | {:>4} | {:>4} | {:>10.2f} |\n",
161 *std::min_element(m_pixelClustersPerFPGATrack.begin(), m_pixelClustersPerFPGATrack.end()),
162 *std::max_element(m_pixelClustersPerFPGATrack.begin(), m_pixelClustersPerFPGATrack.end()),
163 std::accumulate(m_pixelClustersPerFPGATrack.begin(), m_pixelClustersPerFPGATrack.end(), 0.0) / m_pixelClustersPerFPGATrack.size());
164 }
165 else summaryTableFPGATracks += std::format("| Pixels | ---- | ---- | inf |\n");
166
167 if (not m_stripClustersPerFPGATrack.empty()) {
168 summaryTableFPGATracks += std::format("| Strips | {:>4} | {:>4} | {:>10.2f} |\n",
169 *std::min_element(m_stripClustersPerFPGATrack.begin(), m_stripClustersPerFPGATrack.end()),
170 *std::max_element(m_stripClustersPerFPGATrack.begin(), m_stripClustersPerFPGATrack.end()),
171 std::accumulate(m_stripClustersPerFPGATrack.begin(), m_stripClustersPerFPGATrack.end(), 0.0) / m_stripClustersPerFPGATrack.size());
172 }
173 else summaryTableFPGATracks += std::format("| Strips | ---- | ---- | inf |\n");
174
175 summaryTableFPGATracks += "|-----------------------------------|";
176 ATH_MSG_INFO( summaryTableFPGATracks );
177
178
179 // Printing summary for clusters/prototracks
180 std::string summaryTableFPGAPrototracks = std::format("\n"
181 "Number of measurements for FPGA Prototracks\n"
182 "|-----------------------------------|\n"
183 "| | min | max | Avg |\n"
184 "|-----------------------------------|\n");
185
186 if (not m_pixelClustersPerPrototrack.empty()) {
187 summaryTableFPGAPrototracks += std::format("| Pixels | {:>4} | {:>4} | {:>10.2f} |\n",
188 *std::min_element(m_pixelClustersPerPrototrack.begin(), m_pixelClustersPerPrototrack.end()),
189 *std::max_element(m_pixelClustersPerPrototrack.begin(), m_pixelClustersPerPrototrack.end()),
190 std::accumulate(m_pixelClustersPerPrototrack.begin(), m_pixelClustersPerPrototrack.end(), 0.0) / m_pixelClustersPerPrototrack.size());
191 }
192 else summaryTableFPGAPrototracks += std::format("| Pixels | ---- | ---- | inf |\n");
193
194 if (not m_stripClustersPerPrototrack.empty()) {
195 summaryTableFPGAPrototracks += std::format("| Strips | {:>4} | {:>4} | {:>10.2f} |\n",
196 *std::min_element(m_stripClustersPerPrototrack.begin(), m_stripClustersPerPrototrack.end()),
197 *std::max_element(m_stripClustersPerPrototrack.begin(), m_stripClustersPerPrototrack.end()),
198 std::accumulate(m_stripClustersPerPrototrack.begin(), m_stripClustersPerPrototrack.end(), 0.0) / m_stripClustersPerPrototrack.size());
199 }
200 else summaryTableFPGAPrototracks += std::format("| Strips | ---- | ---- | inf |\n");
201
202 summaryTableFPGAPrototracks += "|-----------------------------------|";
203 ATH_MSG_INFO( summaryTableFPGAPrototracks );
204 }
205
206 ATH_MSG_INFO(m_ActsInspectionTool->getPrintoutStatistics(m_actsTrackStats));
207 return StatusCode::SUCCESS;
208}

◆ initialize()

StatusCode FPGATrackSim::FPGATrackSimReportingAlg::initialize ( )
finaloverridevirtual

Definition at line 11 of file FPGATrackSimReportingAlg.cxx.

12{
20 ATH_CHECK(m_ActsSeedCollections.initialize());
22
24 return StatusCode::SUCCESS;
25}
#define ATH_CHECK
Evaluate an expression and check for errors.

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

◆ printFPGAClusters()

void FPGATrackSim::FPGATrackSimReportingAlg::printFPGAClusters ( SG::ReadHandle< FPGATrackSimClusterCollection > & FPGAClusters) const
private

◆ printFPGAPrototracks()

void FPGATrackSim::FPGATrackSimReportingAlg::printFPGAPrototracks ( SG::ReadHandle< ActsTrk::ProtoTrackCollection > & FPGAPrototracks) const
private

Definition at line 565 of file FPGATrackSimReportingAlg.cxx.

566{
567 std::string mainTable = "\n";
568 if(not (*FPGAPrototracks).empty()) mainTable += "|---------------------------------------------------------------------------------------------|\n";
569
570 unsigned int prototrackCounter = 0;
571 for (auto const& prototrack : *FPGAPrototracks)
572 {
573 ++prototrackCounter;
574 const Acts::BoundTrackParameters& initialParameters = *prototrack.parameters;
575 const Acts::BoundVector& parameters = initialParameters.parameters();
576 mainTable +=
577 "| # | QopT | Theta | Phi | d0 | z0 |\n"
578 "|---------------------------------------------------------------------------------------------|\n";
579 mainTable += std::format("| {:>6} | {:>14.10f} | {:>14.10f} | {:>14.10f} | {:>14.10f} | {:>14.10f} |\n",
580 prototrackCounter,
581 parameters[Acts::eBoundQOverP],
582 parameters[Acts::eBoundTheta],
583 parameters[Acts::eBoundPhi],
584 parameters[Acts::eBoundLoc0],
585 parameters[Acts::eBoundLoc1]);
586
587 const std::vector<ActsTrk::ATLASUncalibSourceLink>* measurements = &prototrack.measurements;
588 unsigned int measurementCounter = 0;
589 if (measurements->size())
590 {
591 mainTable +=
592 "| _____________________________________________________________________________________|\n"
593 "| | | type | Global coordinates | HashID | Identifier |\n"
594 "| | ## | | x | y | z | | |\n"
595 "| | |...........................................................................|\n";
596
597 }
598 for (const ActsTrk::ATLASUncalibSourceLink& measurementLink : *measurements)
599 {
600 ++measurementCounter;
601 const xAOD::UncalibratedMeasurement& measurement = ActsTrk::getUncalibratedMeasurement(measurementLink);
602 if (measurement.type() == xAOD::UncalibMeasType::PixelClusterType) {
603 const xAOD::PixelCluster* pixelCluster = dynamic_cast<const xAOD::PixelCluster*>(&measurement);
604 mainTable += std::format("| | {:>6} | Pixel | {:>8.3f} | {:>8.3f} | {:>8.3f} | {:>7} | {:>19} |\n",
605 measurementCounter,
606 pixelCluster->globalPosition().cast<double>().x(),
607 pixelCluster->globalPosition().cast<double>().y(),
608 pixelCluster->globalPosition().cast<double>().z(),
609 pixelCluster->identifierHash(),
610 pixelCluster->identifier());
611 }
612 else if (measurement.type() == xAOD::UncalibMeasType::StripClusterType) {
613 const xAOD::StripCluster* stripCluster = dynamic_cast<const xAOD::StripCluster*>(&measurement);
614 mainTable += std::format("| | {:>6} | Strip | {:>8.3f} | {:>8.3f} | {:>8.3f} | {:>7} | {:>19} |\n",
615 measurementCounter,
616 stripCluster->globalPosition().cast<double>().x(),
617 stripCluster->globalPosition().cast<double>().y(),
618 stripCluster->globalPosition().cast<double>().z(),
619 stripCluster->identifierHash(),
620 stripCluster->identifier());
621 }
622 }
623 mainTable += "|---------------------------------------------------------------------------------------------|\n";
624 }
625 ATH_MSG_INFO("Printing out prototracks coming from " << FPGAPrototracks.key() << mainTable);
626}
virtual xAOD::UncalibMeasType type() const =0
Returns the type of the measurement type as a simple enumeration.
const xAOD::UncalibratedMeasurement & getUncalibratedMeasurement(const ATLASUncalibSourceLink &source_link)
const xAOD::UncalibratedMeasurement * ATLASUncalibSourceLink
@ stripCluster
@ pixelCluster
StripCluster_v1 StripCluster
Define the version of the strip cluster class.
PixelCluster_v1 PixelCluster
Define the version of the pixel cluster class.
UncalibratedMeasurement_v1 UncalibratedMeasurement
Define the version of the uncalibrated measurement class.

◆ printFPGARoads()

void FPGATrackSim::FPGATrackSimReportingAlg::printFPGARoads ( SG::ReadHandle< FPGATrackSimRoadCollection > & FPGARoads) const
private

Definition at line 410 of file FPGATrackSimReportingAlg.cxx.

411{
412 std::string mainTable = "\n"
413 "|--------------------------------------------------------------------------------------------------|\n"
414 "| # | SubRegion | xBin | yBin | X | Y | RoadID | Sector |\n"
415 "|--------------------------------------------------------------------------------------------------|\n";
416
417 unsigned int roadCounter = 0, hitCounter = 0;
418 for (const FPGATrackSimRoad& road : *FPGARoads)
419 {
420 ++roadCounter;
421 mainTable += std::format("| {:>6} | {:>11} | {:>8} | {:>8} | {:>12} | {:>12} | {:>10} | {:>8} |\n",
422 roadCounter,
423 road.getSubRegion(),
424 road.getXBin(),
425 road.getYBin(),
426 road.getX(),
427 road.getY(),
428 road.getRoadID(),
429 road.getSector());
430 mainTable +=
431 "| __________________________________________________________________________________________|\n"
432 "| | layer | ## | type | Global coordinates | isReal |\n"
433 "| | | | | x | y | z | |\n"
434 "| |.........................................................................................|\n";
435 for (unsigned int i = 0; i < road.getNLayers(); ++i)
436 {
437 hitCounter = 0;
438 const std::vector<std::shared_ptr<const FPGATrackSimHit>>& hits = road.getHitPtrs(i);
439 for (auto const& hit : hits)
440 {
441 if (!hit) {
442 ATH_MSG_WARNING("Null pointer for FPGATrackSimHit");
443 continue;
444 }
445 try {
446 ++hitCounter;
447 mainTable += std::format("| | {:>9} | {:>6} | {:>8} | {:>13} | {:>13} | {:>13} | {:>7} |\n",
448 (hit->isMapped() ? hit->getLayer() : 9999),
449 hitCounter,
450 (hit->isPixel() ? "Pixel" : hit->isStrip() ? "Strip" : "FAILED"),
451 hit->getX(),
452 hit->getY(),
453 hit->getZ(),
454 hit->isReal());
455 } catch (const std::exception& e) {
456 ATH_MSG_ERROR("Exception while processing FPGATrackSimHit: " << e.what());
457 }
458
459 }
460 }
461 mainTable += "|--------------------------------------------------------------------------------------------------|\n";
462 }
463 ATH_MSG_INFO("List of FPGA roads for " << FPGARoads.key() << mainTable);
464}
#define ATH_MSG_ERROR(x)

◆ printFPGASeeds()

void FPGATrackSim::FPGATrackSimReportingAlg::printFPGASeeds ( SG::ReadHandle< ActsTrk::SeedContainer > & FPGASeeds) const
private

Definition at line 342 of file FPGATrackSimReportingAlg.cxx.

343{
344 std::string mainTable = "\n"
345 "|=====================================================================================|\n"
346 "| # | seed | Global coordinates | element ID list |\n"
347 "| | i | x | y | z | |\n"
348 "|-------------------------------------------------------------------------------------|\n";
349 unsigned int counter = 0;
350 for (const auto thisTrack : *seedContainer)
351 {
352 auto spList = thisTrack.sp();
353 ++counter;
354 for(int i = 0; i < 3; i++)
355 {
356 auto sp = spList.at(i);
357 mainTable += std::format("| {:>6} | {:>6} | {:>12} | {:>12} | {:>12} | {:>9}, {:>9} |\n",
358 counter,
359 i,
360 sp->globalPosition().x(),
361 sp->globalPosition().y(),
362 sp->globalPosition().z(),
363 sp->elementIdList()[0],
364 sp->elementIdList().size() == 2 ? sp->elementIdList()[1] : 0);
365 }
366
367 }
368 mainTable += "|=========================================================================================|";
369 ATH_MSG_INFO("Printout of ACTS seeds coming from " << seedContainer.key() << mainTable );
370}
static Double_t sp

◆ printFPGASeedsParam()

void FPGATrackSim::FPGATrackSimReportingAlg::printFPGASeedsParam ( SG::ReadHandle< ActsTrk::BoundTrackParametersContainer > & FPGASeedsParam) const
private

Definition at line 378 of file FPGATrackSimReportingAlg.cxx.

379{
380 std::string mainTable = "\n"
381 "|=============================================================================================|\n"
382 "| # | QopT | Theta | Phi | d0 | z0 |\n"
383 "|---------------------------------------------------------------------------------------------|\n";
384 unsigned int counter = 0;
385 for (const auto paramSet : *seedContainer)
386 {
387 ++counter;
388 auto parameters = paramSet->parameters();
389 mainTable += std::format("| {:>6} | {:>14.10f} | {:>14.10f} | {:>14.10f} | {:>14.10f} | {:>14.10f} |\n",
390 counter,
391 parameters[Acts::eBoundQOverP],
392 parameters[Acts::eBoundTheta],
393 parameters[Acts::eBoundPhi],
394 parameters[Acts::eBoundLoc0],
395 parameters[Acts::eBoundLoc1]);
396 }
397 mainTable += "|=========================================================================================|";
398 ATH_MSG_INFO("Printout of ACTS seeds Param coming from " << seedContainer.key() << mainTable );
399}

◆ printFPGATracks()

void FPGATrackSim::FPGATrackSimReportingAlg::printFPGATracks ( SG::ReadHandle< FPGATrackSimTrackCollection > & FPGATracks) const
private

Definition at line 487 of file FPGATrackSimReportingAlg.cxx.

488{
489 std::string maintable = "\n|--------------------------------------------------------------------------------------------------|\n";
490 unsigned int trackCounter = 0;
491 for (auto const& track : *FPGATracks)
492 {
493 ++trackCounter;
494 maintable += "| # | Eta | Phi | D0 | Z0 | QOverPt | chi2/ndf |\n"
495 "|--------------------------------------------------------------------------------------------------|\n";
496
497 try
498 {
499 maintable += std::format("| {:>6} | {:>12.8f} | {:>12.8f} | {:>12.8f} | {:>12.5f} | {:>12.9f} | {:>12.8f} |\n",
500 trackCounter,
501 track.getEta(),
502 track.getPhi(),
503 track.getD0(),
504 track.getZ0(),
505 track.getQOverPt(),
506 track.getChi2ndof());
507 }
508 catch (const std::exception& e)
509 {
510 ATH_MSG_ERROR("Exception while processing FPGATrackSimTrack: " << e.what());
511 continue;
512 }
513
514 maintable += "|__________________________________________________________________________________________________|\n"
515 "| | ## | type | layer | Global coordinates | isReal | HashID |\n"
516 "| | | | | x | y | z | | |\n"
517 "| |.........................................................................................|\n";
518 const auto& hits = track.getFPGATrackSimHitPtrs();
519 unsigned int hitCounter = 0;
520 for (const auto& hit_ptr : hits)
521 {
522 if (!hit_ptr) {
523 throw std::runtime_error("Null hit pointer in track");
524 }
525 try {
526 ++hitCounter;
527 maintable += std::format("| | {:>6} | {:>8} | {:>5} | {:>9.3f} | {:>9.3f} | {:>9.3f} | {:>6} | {:>14} |\n",
528 hitCounter,
529 (hit_ptr->isPixel() ? "Pixel" : hit_ptr->isStrip() ? "Strip" : "FAILED"),
530 hit_ptr->getLayer(),
531 hit_ptr->getX(),
532 hit_ptr->getY(),
533 hit_ptr->getZ(),
534 hit_ptr->isReal(),
535 hit_ptr->getIdentifierHash());
536 } catch (const std::exception& e) {
537 ATH_MSG_ERROR("Exception while processing FPGATrackSimHits: " << e.what());
538 }
539 }
540 maintable += "|--------------------------------------------------------------------------------------------------|\n";
541 }
542 ATH_MSG_INFO("List of FPGA tracks for " << FPGATracks.key() << maintable);
543}

◆ printxAODClusters() [1/3]

template<>
void FPGATrackSim::FPGATrackSimReportingAlg::printxAODClusters ( SG::ReadHandle< DataVector< xAOD::PixelCluster > > & clusterContainer) const

Definition at line 241 of file FPGATrackSimReportingAlg.cxx.

242{
243 std::string mainTable = "\n"
244 "|===================================================================================================================================================================================|\n"
245 "| # | Global coordinates | Local coordinates | Local Covariance | Size | Hash ID | Identifier |\n"
246 "| | x | y | z | 0 | 1 | 0,0 | 1,1 | phi | eta | | |\n"
247 "|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n";
248 unsigned int counter = 0;
249 std::map<int, int> counterMap;
250 for (const xAOD::PixelCluster* cluster : *clusterContainer)
251 {
252 ++counter;
253
254 mainTable += std::format("| {:>6} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:#018x} |\n",
255 counter,
256 cluster->globalPosition().x(),
257 cluster->globalPosition().y(),
258 cluster->globalPosition().z(),
259 cluster->localPosition<2>()[0],
260 cluster->localPosition<2>()[1],
261 cluster->localCovariance<2>()(0, 0),
262 cluster->localCovariance<2>()(1, 1),
263 cluster->channelsInPhi(),
264 cluster->channelsInEta(),
265 cluster->identifierHash(),
266 cluster->identifier());
267
268 counterMap[cluster->identifierHash()]++;
269 }
270 mainTable += "|=========================================================================================|";
271
272 ATH_MSG_INFO("Printout of xAOD clusters coming from " << clusterContainer.key() << mainTable );
273}

◆ printxAODClusters() [2/3]

template<>
void FPGATrackSim::FPGATrackSimReportingAlg::printxAODClusters ( SG::ReadHandle< DataVector< xAOD::StripCluster > > & clusterContainer) const

Definition at line 276 of file FPGATrackSimReportingAlg.cxx.

277{
278 std::string mainTable = "\n"
279 "|======================================================================================================================================|\n"
280 "| # | Global coordinates | Local | Local | Size | Hash ID | Identifier |\n"
281 "| | x | y | z | Pos | Cov | | | |\n"
282 "|--------------------------------------------------------------------------------------------------------------------------------------|\n";
283 unsigned int counter = 0;
284 std::map<int, int> counterMap;
285 for (const xAOD::StripCluster* cluster : *clusterContainer)
286 {
287 ++counter;
288
289 mainTable += std::format("| {:>6} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:>12} | {:#018x} |\n",
290 counter,
291 cluster->globalPosition().x(),
292 cluster->globalPosition().y(),
293 cluster->globalPosition().z(),
294 cluster->localPosition<1>()[0],
295 cluster->localCovariance<1>()(0, 0),
296 cluster->channelsInPhi(),
297 cluster->identifierHash(),
298 cluster->identifier());
299
300 counterMap[cluster->identifierHash()]++;
301 }
302 mainTable += "|=========================================================================================|";
303
304 ATH_MSG_INFO("Printout of xAOD clusters coming from " << clusterContainer.key() << mainTable );
305}

◆ printxAODClusters() [3/3]

template<class XAOD_CLUSTER>
void FPGATrackSim::FPGATrackSimReportingAlg::printxAODClusters ( SG::ReadHandle< DataVector< XAOD_CLUSTER > > & clusterContainer) const
private

Definition at line 217 of file FPGATrackSimReportingAlg.cxx.

218{
219 std::string mainTable = "\n"
220 "|=========================================================================================|\n"
221 "| # | Global coordinates | Hash ID | Identifier |\n"
222 "| | x | y | z | | |\n"
223 "|-----------------------------------------------------------------------------------------|\n";
224 unsigned int counter = 0;
225 for (const auto& cluster : *clusterContainer)
226 {
227 ++counter;
228 mainTable += std::format("| {:>6} | {:>12} | {:>12} | {:>12} | {:>12} | {:>18} |\n",
229 counter,
230 cluster->globalPosition().x(),
231 cluster->globalPosition().y(),
232 cluster->globalPosition().z(),
233 cluster->identifierHash(),
234 cluster->identifier());
235 }
236 mainTable += "|=========================================================================================|";
237 ATH_MSG_INFO("Printout of xAOD clusters coming from " << clusterContainer.key() << mainTable );
238}

◆ printxAODSpacePoints()

void FPGATrackSim::FPGATrackSimReportingAlg::printxAODSpacePoints ( SG::ReadHandle< DataVector< xAOD::SpacePoint > > & spContainer) const
private

Definition at line 313 of file FPGATrackSimReportingAlg.cxx.

314{
315 std::string mainTable = "\n"
316 "|============================================================================|\n"
317 "| # | Global coordinates | element ID list |\n"
318 "| | x | y | z | |\n"
319 "|----------------------------------------------------------------------------|\n";
320 unsigned int counter = 0;
321 for (const auto sp : *spContainer)
322 {
323 ++counter;
324 mainTable += std::format("| {:>6} | {:>12} | {:>12} | {:>12} | {:>9}, {:>9} |\n",
325 counter,
326 sp->globalPosition().x(),
327 sp->globalPosition().y(),
328 sp->globalPosition().z(),
329 sp->elementIdList()[0],
330 sp->elementIdList().size() == 2 ? sp->elementIdList()[1] : 0);
331 }
332 mainTable += "|=========================================================================================|";
333 ATH_MSG_INFO("Printout of xAOD space points coming from " << spContainer.key() << mainTable );
334}

◆ processActsTracks()

void FPGATrackSim::FPGATrackSimReportingAlg::processActsTracks ( SG::ReadHandle< ActsTrk::TrackContainer > & ActsTracks) const
private

◆ processFPGAClusters()

void FPGATrackSim::FPGATrackSimReportingAlg::processFPGAClusters ( SG::ReadHandle< FPGATrackSimClusterCollection > & FPGAClusters) const
private

◆ processFPGAPrototracks()

void FPGATrackSim::FPGATrackSimReportingAlg::processFPGAPrototracks ( SG::ReadHandle< ActsTrk::ProtoTrackCollection > & FPGAPrototracks) const
private

Definition at line 545 of file FPGATrackSimReportingAlg.cxx.

546{
547 unsigned int nPixelMeasurements, nStripMeasurements;
548 for (auto const& prototrack : *FPGAPrototracks)
549 {
550 nPixelMeasurements = 0, nStripMeasurements = 0;
551 const std::vector<ActsTrk::ATLASUncalibSourceLink>* measurements = &prototrack.measurements;
552 for (const ActsTrk::ATLASUncalibSourceLink& measurementLink : *measurements)
553 {
554 const xAOD::UncalibratedMeasurement& measurement = ActsTrk::getUncalibratedMeasurement(measurementLink);
555 if (measurement.type() == xAOD::UncalibMeasType::PixelClusterType) ++nPixelMeasurements;
556 else if (measurement.type() == xAOD::UncalibMeasType::StripClusterType) ++nStripMeasurements;
557 }
558 m_pixelClustersPerPrototrack.push_back(nPixelMeasurements);
559 m_stripClustersPerPrototrack.push_back(nStripMeasurements);
560
561 }
562 if (m_printoutForEveryEvent) printFPGAPrototracks(FPGAPrototracks);
563}
void printFPGAPrototracks(SG::ReadHandle< ActsTrk::ProtoTrackCollection > &FPGAPrototracks) const

◆ processFPGARoads()

void FPGATrackSim::FPGATrackSimReportingAlg::processFPGARoads ( SG::ReadHandle< FPGATrackSimRoadCollection > & FPGARoads) const
private

Definition at line 405 of file FPGATrackSimReportingAlg.cxx.

406{
408}
void printFPGARoads(SG::ReadHandle< FPGATrackSimRoadCollection > &FPGARoads) const

◆ processFPGASeeds()

void FPGATrackSim::FPGATrackSimReportingAlg::processFPGASeeds ( SG::ReadHandle< ActsTrk::SeedContainer > & FPGASeeds) const
private

Definition at line 337 of file FPGATrackSimReportingAlg.cxx.

338{
339 if (m_printoutForEveryEvent) printFPGASeeds(spContainer);
340}
void printFPGASeeds(SG::ReadHandle< ActsTrk::SeedContainer > &FPGASeeds) const

◆ processFPGASeedsParam()

void FPGATrackSim::FPGATrackSimReportingAlg::processFPGASeedsParam ( SG::ReadHandle< ActsTrk::BoundTrackParametersContainer > & FPGASeedsParam) const
private

Definition at line 373 of file FPGATrackSimReportingAlg.cxx.

374{
376}
void printFPGASeedsParam(SG::ReadHandle< ActsTrk::BoundTrackParametersContainer > &FPGASeedsParam) const

◆ processFPGATracks()

void FPGATrackSim::FPGATrackSimReportingAlg::processFPGATracks ( SG::ReadHandle< FPGATrackSimTrackCollection > & FPGATracks) const
private

Definition at line 467 of file FPGATrackSimReportingAlg.cxx.

468{
469 for (auto const& track : *FPGATracks)
470 {
471 const auto& hits = track.getFPGATrackSimHitPtrs();
472 uint32_t pixelHits = 0, stripHits = 0;
473 for (const auto& hit_ptr : hits)
474 {
475 if (!hit_ptr) {
476 throw std::runtime_error("Null hit pointer in track");
477 }
478 if (hit_ptr->isPixel()) ++pixelHits;
479 if (hit_ptr->isStrip()) ++stripHits;
480 }
481 m_pixelClustersPerFPGATrack.push_back(pixelHits);
482 m_stripClustersPerFPGATrack.push_back(stripHits);
483 }
485}
void printFPGATracks(SG::ReadHandle< FPGATrackSimTrackCollection > &FPGATracks) const

◆ processxAODClusters()

template<class XAOD_CLUSTER>
void FPGATrackSim::FPGATrackSimReportingAlg::processxAODClusters ( SG::ReadHandle< DataVector< XAOD_CLUSTER > > & clusterContainer) const
private

Definition at line 211 of file FPGATrackSimReportingAlg.cxx.

212{
213 if (m_printoutForEveryEvent) printxAODClusters(clusterContainer);
214}
void printxAODClusters(SG::ReadHandle< DataVector< XAOD_CLUSTER > > &clusterContainer) const

◆ processxAODSpacePoints()

void FPGATrackSim::FPGATrackSimReportingAlg::processxAODSpacePoints ( SG::ReadHandle< DataVector< xAOD::SpacePoint > > & spContainer) const
private

Definition at line 308 of file FPGATrackSimReportingAlg.cxx.

309{
311}
void printxAODSpacePoints(SG::ReadHandle< DataVector< xAOD::SpacePoint > > &spContainer) const

◆ 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

◆ summaryReportForEDMConversion()

StatusCode FPGATrackSim::FPGATrackSimReportingAlg::summaryReportForEDMConversion ( )
private

◆ 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}
virtual std::vector< Gaudi::DataHandle * > outputHandles() const override

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< Gaudi::Algorithm > >::updateVHKA ( Gaudi::Details::PropertyBase & )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308 {
309 // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310 // << " size: " << m_vhka.size() << endmsg;
311 for (auto &a : m_vhka) {
313 for (auto k : keys) {
314 k->setOwner(this);
315 }
316 }
317 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE [1/6]

std::vector<uint32_t> m_pixelClustersPerFPGATrack FPGATrackSim::FPGATrackSimReportingAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 40 of file FPGATrackSimReportingAlg.h.

◆ ATLAS_THREAD_SAFE [2/6]

std::vector<uint32_t> m_pixelClustersPerFPGATrack m_stripClustersPerFPGATrack FPGATrackSim::FPGATrackSimReportingAlg::ATLAS_THREAD_SAFE
private

Definition at line 40 of file FPGATrackSimReportingAlg.h.

◆ ATLAS_THREAD_SAFE [3/6]

std::vector<uint32_t> m_pixelClustersPerPrototrack FPGATrackSim::FPGATrackSimReportingAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 41 of file FPGATrackSimReportingAlg.h.

◆ ATLAS_THREAD_SAFE [4/6]

std::vector<uint32_t> m_pixelClustersPerPrototrack m_stripClustersPerPrototrack FPGATrackSim::FPGATrackSimReportingAlg::ATLAS_THREAD_SAFE
private

Definition at line 41 of file FPGATrackSimReportingAlg.h.

◆ ATLAS_THREAD_SAFE [5/6]

std::map<std::string, std::vector<FPGATrackSimActsEventTracks> > m_allActsTracks FPGATrackSim::FPGATrackSimReportingAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 43 of file FPGATrackSimReportingAlg.h.

◆ ATLAS_THREAD_SAFE [6/6]

std::map<std::string, std::map<Acts::TrackStateFlag,std::vector<uint32_t> > > m_actsTrackStats FPGATrackSim::FPGATrackSimReportingAlg::ATLAS_THREAD_SAFE
mutableprivate

Definition at line 44 of file FPGATrackSimReportingAlg.h.

◆ m_ActsInspectionTool

ToolHandle<FPGATrackSim::ActsTrackInspectionTool> FPGATrackSim::FPGATrackSimReportingAlg::m_ActsInspectionTool {this, "ActsInspectionTool", "FPGATrackSim::ActsTrackInspectionTool/ActsTrackInspectionTool", "Monitoring tool for acts tracks"}
private

Definition at line 82 of file FPGATrackSimReportingAlg.h.

82{this, "ActsInspectionTool", "FPGATrackSim::ActsTrackInspectionTool/ActsTrackInspectionTool", "Monitoring tool for acts tracks"};

◆ m_ActsSeedCollections

SG::ReadHandleKeyArray<ActsTrk::SeedContainer> FPGATrackSim::FPGATrackSimReportingAlg::m_ActsSeedCollections {this, "FPGAActsSeeds",{},"Acts Seeds collections from (C)KF"}
private

Definition at line 75 of file FPGATrackSimReportingAlg.h.

75{this, "FPGAActsSeeds",{},"Acts Seeds collections from (C)KF"};

◆ m_ActsSeedParamCollections

SG::ReadHandleKeyArray<ActsTrk::BoundTrackParametersContainer> FPGATrackSim::FPGATrackSimReportingAlg::m_ActsSeedParamCollections {this, "FPGAActsSeedsParam",{},"Acts Seeds param collections from (C)KF"}
private

Definition at line 77 of file FPGATrackSimReportingAlg.h.

77{this, "FPGAActsSeedsParam",{},"Acts Seeds param collections from (C)KF"};

◆ m_ActsTrackCollections

SG::ReadHandleKeyArray<ActsTrk::TrackContainer> FPGATrackSim::FPGATrackSimReportingAlg::m_ActsTrackCollections {this, "FPGAActsTracks",{},"Acts track collections from (C)KF"}
private

Definition at line 73 of file FPGATrackSimReportingAlg.h.

73{this, "FPGAActsTracks",{},"Acts track collections from (C)KF"};

◆ 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_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_FPGAProtoTrackCollections

SG::ReadHandleKeyArray<ActsTrk::ProtoTrackCollection> FPGATrackSim::FPGATrackSimReportingAlg::m_FPGAProtoTrackCollections {this, "FPGATrackSimProtoTracks",{},"FPGATrackSim PrototrackCollection"}
private

Definition at line 71 of file FPGATrackSimReportingAlg.h.

71{this, "FPGATrackSimProtoTracks",{},"FPGATrackSim PrototrackCollection"};

◆ m_FPGARoadsKey

SG::ReadHandleKey<FPGATrackSimRoadCollection> FPGATrackSim::FPGATrackSimReportingAlg::m_FPGARoadsKey { this, "FPGATrackSimRoads","","FPGATrackSim Roads key" }
private

Definition at line 67 of file FPGATrackSimReportingAlg.h.

67{ this, "FPGATrackSimRoads","","FPGATrackSim Roads key" };

◆ m_FPGATracksKey

SG::ReadHandleKey<FPGATrackSimTrackCollection> FPGATrackSim::FPGATrackSimReportingAlg::m_FPGATracksKey { this, "FPGATrackSimTracks","","FPGATrackSim Tracks key" }
private

Definition at line 69 of file FPGATrackSimReportingAlg.h.

69{ this, "FPGATrackSimTracks","","FPGATrackSim Tracks key" };

◆ m_isDataPrep

Gaudi::Property<bool> FPGATrackSim::FPGATrackSimReportingAlg::m_isDataPrep {this, "isDataPrep", false, "If True, this is for data prep pipeline only"}
private

Definition at line 47 of file FPGATrackSimReportingAlg.h.

47{this, "isDataPrep", false, "If True, this is for data prep pipeline only"};

◆ m_printoutForEveryEvent

Gaudi::Property<bool> FPGATrackSim::FPGATrackSimReportingAlg::m_printoutForEveryEvent {this, "perEventReports", false, "A flag to enable per event printout"}
private

Definition at line 46 of file FPGATrackSimReportingAlg.h.

46{this, "perEventReports", false, "A flag to enable per event printout"};

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

SG::ReadHandleKeyArray<xAOD::PixelClusterContainer> FPGATrackSim::FPGATrackSimReportingAlg::m_xAODPixelClusterContainerKeys
private
Initial value:
{
this, "xAODPixelClusterContainers", {},
"input list of xAOD Pixel Cluster Containers, as resulted from FPGATrackSim (hit/road) EDM conversion" }

Definition at line 50 of file FPGATrackSimReportingAlg.h.

50 {
51 this, "xAODPixelClusterContainers", {},
52 "input list of xAOD Pixel Cluster Containers, as resulted from FPGATrackSim (hit/road) EDM conversion" };

◆ m_xAODSpacePointContainerKeys

SG::ReadHandleKeyArray<xAOD::SpacePointContainer> FPGATrackSim::FPGATrackSimReportingAlg::m_xAODSpacePointContainerKeys
private
Initial value:
{
this, "xAODSpacePointContainersFromFPGA", {"xAODStripSpacePoints_1stFromFPGA","xAODPixelSpacePoints_1stFromFPGA"},
"input list of xAOD SpacePoint Containers, as resulted from FPGATrackSim (hit/road) EDM conversion" }

Definition at line 60 of file FPGATrackSimReportingAlg.h.

60 {
61 this, "xAODSpacePointContainersFromFPGA", {"xAODStripSpacePoints_1stFromFPGA","xAODPixelSpacePoints_1stFromFPGA"},
62 "input list of xAOD SpacePoint Containers, as resulted from FPGATrackSim (hit/road) EDM conversion" };

◆ m_xAODStripClusterContainerKeys

SG::ReadHandleKeyArray<xAOD::StripClusterContainer> FPGATrackSim::FPGATrackSimReportingAlg::m_xAODStripClusterContainerKeys
private
Initial value:
{
this, "xAODStripClusterContainers", {"ITkStripClusters" ,"xAODStripClusters_1stFromFPGACluster", "xAODStripClusters_1stFromFPGAHit"},
"input list of xAOD Strip Cluster Containers, as resulted from FPGATrackSim (hit/road) EDM conversion" }

Definition at line 55 of file FPGATrackSimReportingAlg.h.

55 {
56 this, "xAODStripClusterContainers", {"ITkStripClusters" ,"xAODStripClusters_1stFromFPGACluster", "xAODStripClusters_1stFromFPGAHit"},
57 "input list of xAOD Strip Cluster Containers, as resulted from FPGATrackSim (hit/road) EDM conversion" };

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