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

#include <FPGATrackSimGNNRootOutputTool.h>

Inheritance diagram for FPGATrackSimGNNRootOutputTool:

Public Member Functions

 FPGATrackSimGNNRootOutputTool (const std::string &, const std::string &, const IInterface *)
virtual StatusCode initialize () override
StatusCode fillTree (const std::vector< std::shared_ptr< const FPGATrackSimHit > > &hits, const std::vector< std::shared_ptr< FPGATrackSimGNNHit > > &gnn_hits, const std::vector< std::shared_ptr< FPGATrackSimGNNEdge > > &edges, const std::vector< FPGATrackSimRoad > &roads)
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 sysInitialize () override
 Perform system initialization for an algorithm.
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 bookTree ()
void resetVectors ()
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey>

Private Attributes

ServiceHandle< ITHistSvc > m_tHistSvc {this, "THistSvc", "THistSvc"}
Gaudi::Property< std::string > m_region { this, "OutputRegion", "", "region ID"}
ToolHandle< ITrigL2LayerNumberToolm_layerNumberTool {this, "LayerNumberTool", "TrigL2LayerNumberToolITk"}
const std::vector< short > * m_pix_h2l {nullptr}
const std::vector< TrigInDetSiLayer > * m_layerGeometry {nullptr}
TTree * m_hit_tree = nullptr
std::vector< unsigned > m_hit_id {}
std::vector< unsigned > m_hit_module_id {}
std::vector< float > m_hit_x {}
std::vector< float > m_hit_y {}
std::vector< float > m_hit_z {}
std::vector< float > m_hit_r {}
std::vector< float > m_hit_phi {}
std::vector< bool > m_hit_isPixel {}
std::vector< bool > m_hit_isStrip {}
std::vector< int > m_hit_hitType {}
std::vector< HepMcParticleLink::barcode_typem_hit_uniqueID {}
std::vector< long > m_hit_eventIndex {}
std::vector< float > m_hit_cluster_x {}
std::vector< float > m_hit_cluster_y {}
std::vector< float > m_hit_cluster_z {}
std::vector< int > m_hit_globalLayerID {}
TTree * m_GNNHit_tree = nullptr
std::vector< unsigned > m_GNNHit_id {}
std::vector< unsigned > m_GNNHit_module_id {}
std::vector< HepMcParticleLink::barcode_typem_GNNHit_uniqueID {}
std::vector< long > m_GNNHit_eventIndex {}
std::vector< int > m_GNNHit_road_id {}
std::vector< float > m_GNNHit_x {}
std::vector< float > m_GNNHit_y {}
std::vector< float > m_GNNHit_z {}
std::vector< float > m_GNNHit_r {}
std::vector< float > m_GNNHit_phi {}
std::vector< float > m_GNNHit_eta {}
std::vector< float > m_GNNHit_cluster_x_1 {}
std::vector< float > m_GNNHit_cluster_y_1 {}
std::vector< float > m_GNNHit_cluster_z_1 {}
std::vector< float > m_GNNHit_cluster_r_1 {}
std::vector< float > m_GNNHit_cluster_phi_1 {}
std::vector< float > m_GNNHit_cluster_eta_1 {}
std::vector< float > m_GNNHit_cluster_x_2 {}
std::vector< float > m_GNNHit_cluster_y_2 {}
std::vector< float > m_GNNHit_cluster_z_2 {}
std::vector< float > m_GNNHit_cluster_r_2 {}
std::vector< float > m_GNNHit_cluster_phi_2 {}
std::vector< float > m_GNNHit_cluster_eta_2 {}
TTree * m_GNNEdge_tree = nullptr
std::vector< unsigned int > m_GNNEdge_index_1 {}
std::vector< unsigned int > m_GNNEdge_index_2 {}
std::vector< float > m_GNNEdge_dR {}
std::vector< float > m_GNNEdge_dPhi {}
std::vector< float > m_GNNEdge_dZ {}
std::vector< float > m_GNNEdge_dEta {}
std::vector< float > m_GNNEdge_phiSlope {}
std::vector< float > m_GNNEdge_rPhiSlope {}
std::vector< float > m_GNNEdge_score {}
TTree * m_road_tree = nullptr
std::vector< int > m_road_id {}
std::vector< size_t > m_road_nHits {}
std::vector< std::vector< size_t > > m_road_nHits_layer {}
std::vector< size_t > m_road_nLayers {}
std::vector< std::vector< std::vector< HepMcParticleLink::barcode_type > > > m_road_hit_uniqueID {}
std::vector< std::vector< std::vector< HepMcParticleLink::barcode_type > > > m_road_hit_barcode {}
std::vector< std::vector< std::vector< long > > > m_road_hit_eventIndex {}
std::vector< std::vector< std::vector< float > > > m_road_hit_z {}
std::vector< std::vector< std::vector< float > > > m_road_hit_r {}
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 34 of file FPGATrackSimGNNRootOutputTool.h.

Member Typedef Documentation

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Constructor & Destructor Documentation

◆ FPGATrackSimGNNRootOutputTool()

FPGATrackSimGNNRootOutputTool::FPGATrackSimGNNRootOutputTool ( const std::string & algname,
const std::string & name,
const IInterface * ifc )

Definition at line 8 of file FPGATrackSimGNNRootOutputTool.cxx.

8 :
9 AthAlgTool(algname, name, ifc)
10{
11}
AthAlgTool()
Default constructor:

Member Function Documentation

◆ bookTree()

StatusCode FPGATrackSimGNNRootOutputTool::bookTree ( )
private

Definition at line 26 of file FPGATrackSimGNNRootOutputTool.cxx.

27{
28 std::string hittree_str = "FPGATrackSimHit_reg" + m_region.value();
29 m_hit_tree = new TTree(hittree_str.c_str(), hittree_str.c_str());
30 m_hit_tree->Branch("hit_id",&m_hit_id);
31 m_hit_tree->Branch("hit_module_id",&m_hit_module_id);
32 m_hit_tree->Branch("hit_x",&m_hit_x);
33 m_hit_tree->Branch("hit_y",&m_hit_y);
34 m_hit_tree->Branch("hit_z",&m_hit_z);
35 m_hit_tree->Branch("hit_r",&m_hit_r);
36 m_hit_tree->Branch("hit_phi",&m_hit_phi);
37 m_hit_tree->Branch("hit_isPixel",&m_hit_isPixel);
38 m_hit_tree->Branch("hit_isStrip",&m_hit_isStrip);
39 m_hit_tree->Branch("hit_hitType",&m_hit_hitType);
40 m_hit_tree->Branch("hit_uniqueID",&m_hit_uniqueID);
41 m_hit_tree->Branch("hit_eventIndex",&m_hit_eventIndex);
42 m_hit_tree->Branch("hit_cluster_x",&m_hit_cluster_x);
43 m_hit_tree->Branch("hit_cluster_y",&m_hit_cluster_y);
44 m_hit_tree->Branch("hit_cluster_z",&m_hit_cluster_z);
45 m_hit_tree->Branch("hit_globalLayerID",&m_hit_globalLayerID);
46
47 std::string GNNhittree_str = "FPGATrackSimGNNHit_reg" + m_region.value();
48 m_GNNHit_tree = new TTree(GNNhittree_str.c_str(), GNNhittree_str.c_str());
49 m_GNNHit_tree->Branch("hit_id",&m_GNNHit_id);
50 m_GNNHit_tree->Branch("hit_module_id",&m_GNNHit_module_id);
51 m_GNNHit_tree->Branch("hit_uniqueID",&m_GNNHit_uniqueID);
52 m_GNNHit_tree->Branch("hit_eventIndex",&m_GNNHit_eventIndex);
53 m_GNNHit_tree->Branch("hit_road_id",&m_GNNHit_road_id);
54 m_GNNHit_tree->Branch("hit_x",&m_GNNHit_x);
55 m_GNNHit_tree->Branch("hit_y",&m_GNNHit_y);
56 m_GNNHit_tree->Branch("hit_z",&m_GNNHit_z);
57 m_GNNHit_tree->Branch("hit_r",&m_GNNHit_r);
58 m_GNNHit_tree->Branch("hit_phi",&m_GNNHit_phi);
59 m_GNNHit_tree->Branch("hit_eta",&m_GNNHit_eta);
60 m_GNNHit_tree->Branch("hit_cluster_x_1",&m_GNNHit_cluster_x_1);
61 m_GNNHit_tree->Branch("hit_cluster_y_1",&m_GNNHit_cluster_y_1);
62 m_GNNHit_tree->Branch("hit_cluster_z_1",&m_GNNHit_cluster_z_1);
63 m_GNNHit_tree->Branch("hit_cluster_r_1",&m_GNNHit_cluster_r_1);
64 m_GNNHit_tree->Branch("hit_cluster_phi_1",&m_GNNHit_cluster_phi_1);
65 m_GNNHit_tree->Branch("hit_cluster_eta_1",&m_GNNHit_cluster_eta_1);
66 m_GNNHit_tree->Branch("hit_cluster_x_2",&m_GNNHit_cluster_x_2);
67 m_GNNHit_tree->Branch("hit_cluster_y_2",&m_GNNHit_cluster_y_2);
68 m_GNNHit_tree->Branch("hit_cluster_z_2",&m_GNNHit_cluster_z_2);
69 m_GNNHit_tree->Branch("hit_cluster_r_2",&m_GNNHit_cluster_r_2);
70 m_GNNHit_tree->Branch("hit_cluster_phi_2",&m_GNNHit_cluster_phi_2);
71 m_GNNHit_tree->Branch("hit_cluster_eta_2",&m_GNNHit_cluster_eta_2);
72
73 std::string GNNedgetree_str = "FPGATrackSimGNNEdge_reg" + m_region.value();
74 m_GNNEdge_tree = new TTree(GNNedgetree_str.c_str(), GNNedgetree_str.c_str());
75 m_GNNEdge_tree->Branch("edge_index_1",&m_GNNEdge_index_1);
76 m_GNNEdge_tree->Branch("edge_index_2",&m_GNNEdge_index_2);
77 m_GNNEdge_tree->Branch("edge_dr",&m_GNNEdge_dR);
78 m_GNNEdge_tree->Branch("edge_dphi",&m_GNNEdge_dPhi);
79 m_GNNEdge_tree->Branch("edge_dz",&m_GNNEdge_dZ);
80 m_GNNEdge_tree->Branch("edge_deta",&m_GNNEdge_dEta);
81 m_GNNEdge_tree->Branch("edge_phislope",&m_GNNEdge_phiSlope);
82 m_GNNEdge_tree->Branch("edge_rphislope",&m_GNNEdge_rPhiSlope);
83 m_GNNEdge_tree->Branch("edge_score",&m_GNNEdge_score);
84
85 std::string roadtree_str = "FPGATrackSimRoad_reg" + m_region.value();
86 m_road_tree = new TTree(roadtree_str.c_str(), roadtree_str.c_str());
87 m_road_tree->Branch("road_id",&m_road_id);
88 m_road_tree->Branch("road_nHits",&m_road_nHits);
89 m_road_tree->Branch("road_nHits_layer",&m_road_nHits_layer);
90 m_road_tree->Branch("road_nLayers",&m_road_nLayers);
91 m_road_tree->Branch("road_hit_uniqueID",&m_road_hit_uniqueID);
92 m_road_tree->Branch("road_hit_barcode",&m_road_hit_barcode);
93 m_road_tree->Branch("road_hit_eventIndex",&m_road_hit_eventIndex);
94 m_road_tree->Branch("road_hit_z",&m_road_hit_z);
95 m_road_tree->Branch("road_hit_r",&m_road_hit_r);
96
97 ATH_CHECK(m_tHistSvc->regTree(Form("/TRIGFPGATrackSimGNNOUTPUT/%s",m_hit_tree->GetName()), m_hit_tree));
98 ATH_CHECK(m_tHistSvc->regTree(Form("/TRIGFPGATrackSimGNNOUTPUT/%s",m_GNNHit_tree->GetName()), m_GNNHit_tree));
99 ATH_CHECK(m_tHistSvc->regTree(Form("/TRIGFPGATrackSimGNNOUTPUT/%s",m_GNNEdge_tree->GetName()), m_GNNEdge_tree));
100 ATH_CHECK(m_tHistSvc->regTree(Form("/TRIGFPGATrackSimGNNOUTPUT/%s",m_road_tree->GetName()), m_road_tree));
101
102 return StatusCode::SUCCESS;
103}
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< unsigned int > m_GNNEdge_index_1
std::vector< std::vector< std::vector< float > > > m_road_hit_r
std::vector< HepMcParticleLink::barcode_type > m_hit_uniqueID
std::vector< std::vector< std::vector< float > > > m_road_hit_z
std::vector< unsigned int > m_GNNEdge_index_2
Gaudi::Property< std::string > m_region
std::vector< HepMcParticleLink::barcode_type > m_GNNHit_uniqueID
std::vector< std::vector< std::vector< long > > > m_road_hit_eventIndex
std::vector< std::vector< size_t > > m_road_nHits_layer
std::vector< std::vector< std::vector< HepMcParticleLink::barcode_type > > > m_road_hit_uniqueID
std::vector< std::vector< std::vector< HepMcParticleLink::barcode_type > > > m_road_hit_barcode

◆ declareGaudiProperty()

Gaudi::Details::PropertyBase & AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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< AlgTool > >::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< AlgTool > >::evtStore ( )
inlineinherited

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

Definition at line 85 of file AthCommonDataStore.h.

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::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

◆ fillTree()

StatusCode FPGATrackSimGNNRootOutputTool::fillTree ( const std::vector< std::shared_ptr< const FPGATrackSimHit > > & hits,
const std::vector< std::shared_ptr< FPGATrackSimGNNHit > > & gnn_hits,
const std::vector< std::shared_ptr< FPGATrackSimGNNEdge > > & edges,
const std::vector< FPGATrackSimRoad > & roads )

Definition at line 105 of file FPGATrackSimGNNRootOutputTool.cxx.

109{
110 // fill the FPGATrackSimHits
111 int hit_count = 0;
112 for (const auto& hit : hits) {
113 if (hit->isStrip()) continue;
114
115 m_hit_id.push_back(hit_count);
116 m_hit_module_id.push_back(hit->getIdentifierHash());
117 m_hit_x.push_back(hit->getX());
118 m_hit_y.push_back(hit->getY());
119 m_hit_z.push_back(hit->getZ());
120 m_hit_r.push_back(hit->getR());
121 m_hit_phi.push_back(hit->getGPhi());
122 m_hit_isPixel.push_back(hit->isPixel());
123 m_hit_isStrip.push_back(hit->isStrip());
124 m_hit_hitType.push_back(static_cast<int>(hit->getHitType()));
125 m_hit_uniqueID.push_back(hit->getUniqueID());
126 m_hit_eventIndex.push_back(hit->getEventIndex());
127 m_hit_cluster_x.push_back(hit->getOriginalHit().getX());
128 m_hit_cluster_y.push_back(hit->getOriginalHit().getY());
129 m_hit_cluster_z.push_back(hit->getOriginalHit().getZ());
130 hit_count++;
131
132 short layer = m_pix_h2l->at(static_cast<int>(hit->getIdentifierHash()));
133 TrigInDetSiLayer layerGeometry = m_layerGeometry->at(layer);
134 int combinedId = layerGeometry.m_subdet;
135 m_hit_globalLayerID.push_back(combinedId);
136 }
137 m_hit_tree->Fill();
138
139 // fill the FPGATrackSimGNNHits
140 for (const auto& hit : gnn_hits) {
141 m_GNNHit_id.push_back(hit->getHitID());
142 m_GNNHit_module_id.push_back(hit->getIdentifierHash());
143 m_GNNHit_uniqueID.push_back(hit->getUniqueID());
144 m_GNNHit_eventIndex.push_back(hit->getEventIndex());
145 m_GNNHit_road_id.push_back(hit->getRoadID());
146 m_GNNHit_x.push_back(hit->getX());
147 m_GNNHit_y.push_back(hit->getY());
148 m_GNNHit_z.push_back(hit->getZ());
149 m_GNNHit_r.push_back(hit->getR());
150 m_GNNHit_phi.push_back(hit->getPhi());
151 m_GNNHit_eta.push_back(hit->getEta());
152 m_GNNHit_cluster_x_1.push_back(hit->getCluster1X());
153 m_GNNHit_cluster_y_1.push_back(hit->getCluster1Y());
154 m_GNNHit_cluster_z_1.push_back(hit->getCluster1Z());
155 m_GNNHit_cluster_r_1.push_back(hit->getCluster1R());
156 m_GNNHit_cluster_phi_1.push_back(hit->getCluster1Phi());
157 m_GNNHit_cluster_eta_1.push_back(hit->getCluster1Eta());
158 m_GNNHit_cluster_x_2.push_back(hit->getCluster2X());
159 m_GNNHit_cluster_y_2.push_back(hit->getCluster2Y());
160 m_GNNHit_cluster_z_2.push_back(hit->getCluster2Z());
161 m_GNNHit_cluster_r_2.push_back(hit->getCluster2R());
162 m_GNNHit_cluster_phi_2.push_back(hit->getCluster2Phi());
163 m_GNNHit_cluster_eta_2.push_back(hit->getCluster2Eta());
164 }
165 m_GNNHit_tree->Fill();
166
167 // fill the FPGATrackSimGNNEdges
168 for (const auto& edge : edges) {
169 m_GNNEdge_index_1.push_back(edge->getEdgeIndex1());
170 m_GNNEdge_index_2.push_back(edge->getEdgeIndex2());
171 m_GNNEdge_dR.push_back(edge->getEdgeDR());
172 m_GNNEdge_dPhi.push_back(edge->getEdgeDPhi());
173 m_GNNEdge_dZ.push_back(edge->getEdgeDZ());
174 m_GNNEdge_dEta.push_back(edge->getEdgeDEta());
175 m_GNNEdge_phiSlope.push_back(edge->getEdgePhiSlope());
176 m_GNNEdge_rPhiSlope.push_back(edge->getEdgeRPhiSlope());
177 m_GNNEdge_score.push_back(edge->getEdgeScore());
178 }
179 m_GNNEdge_tree->Fill();
180
181 for (const auto& road : roads) {
182 m_road_id.push_back(road.getRoadID());
183 m_road_nHits.push_back(road.getNHits());
184 m_road_nHits_layer.push_back(road.getNHits_layer());
185 m_road_nLayers.push_back(road.getNLayers());
186
187 std::vector<std::vector<HepMcParticleLink::barcode_type>> road_hit_uniqueID(road.getNLayers());
188 std::vector<std::vector<HepMcParticleLink::barcode_type>> road_hit_barcode(road.getNLayers());
189 std::vector<std::vector<long>> road_hit_eventIndex(road.getNLayers());
190 std::vector<std::vector<float>> road_hit_z(road.getNLayers());
191 std::vector<std::vector<float>> road_hit_r(road.getNLayers());
192 for (size_t l = 0; l < road.getNLayers(); ++l) {
193 for (const auto &layerH : road.getHitPtrs(l)) {
194 road_hit_uniqueID[l].push_back((*layerH).getUniqueID());
195 road_hit_barcode[l].push_back((*layerH).getBarcode());
196 road_hit_eventIndex[l].push_back((*layerH).getEventIndex());
197 road_hit_z[l].push_back((*layerH).getOriginalHit().getZ());
198 road_hit_r[l].push_back((*layerH).getOriginalHit().getR());
199 }
200 }
201
202 m_road_hit_uniqueID.push_back(std::move(road_hit_uniqueID));
203 m_road_hit_barcode.push_back(std::move(road_hit_barcode));
204 m_road_hit_eventIndex.push_back(std::move(road_hit_eventIndex));
205 m_road_hit_z.push_back(std::move(road_hit_z));
206 m_road_hit_r.push_back(std::move(road_hit_r));
207
208 }
209 m_road_tree->Fill();
210
211 resetVectors();
212
213 return StatusCode::SUCCESS;
214}
const std::vector< TrigInDetSiLayer > * m_layerGeometry
l
Printing final latex table to .tex output file.
@ layer
Definition HitInfo.h:79

◆ initialize()

StatusCode FPGATrackSimGNNRootOutputTool::initialize ( )
overridevirtual

Definition at line 13 of file FPGATrackSimGNNRootOutputTool.cxx.

14{
15 ATH_CHECK(m_tHistSvc.retrieve());
17 ATH_CHECK(m_layerNumberTool.retrieve());
18 m_pix_h2l = m_layerNumberTool->pixelLayers();
19 m_layerGeometry = m_layerNumberTool->layerGeometry();
20 return StatusCode::SUCCESS;
21}
ToolHandle< ITrigL2LayerNumberTool > m_layerNumberTool

◆ inputHandles()

virtual std::vector< Gaudi::DataHandle * > AthCommonDataStore< AthCommonMsg< AlgTool > >::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.

◆ msg()

MsgStream & AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24 {
25 return this->msgStream();
26 }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::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< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ renounce()

std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::renounceArray ( SG::VarHandleKeyArray & handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364 {
366 }

◆ resetVectors()

void FPGATrackSimGNNRootOutputTool::resetVectors ( )
private

Definition at line 216 of file FPGATrackSimGNNRootOutputTool.cxx.

217{
218 m_hit_id.clear();
219 m_hit_module_id.clear();
220 m_hit_x.clear();
221 m_hit_y.clear();
222 m_hit_z.clear();
223 m_hit_r.clear();
224 m_hit_phi.clear();
225 m_hit_isPixel.clear();
226 m_hit_isStrip.clear();
227 m_hit_hitType.clear();
228 m_hit_uniqueID.clear();
229 m_hit_eventIndex.clear();
230 m_hit_cluster_x.clear();
231 m_hit_cluster_y.clear();
232 m_hit_cluster_z.clear();
233 m_hit_globalLayerID.clear();
234 m_GNNHit_id.clear();
235 m_GNNHit_module_id.clear();
236 m_GNNHit_uniqueID.clear();
237 m_GNNHit_eventIndex.clear();
238 m_GNNHit_road_id.clear();
239 m_GNNHit_x.clear();
240 m_GNNHit_y.clear();
241 m_GNNHit_z.clear();
242 m_GNNHit_r.clear();
243 m_GNNHit_phi.clear();
244 m_GNNHit_eta.clear();
245 m_GNNHit_cluster_x_1.clear();
246 m_GNNHit_cluster_y_1.clear();
247 m_GNNHit_cluster_z_1.clear();
248 m_GNNHit_cluster_r_1.clear();
251 m_GNNHit_cluster_x_2.clear();
252 m_GNNHit_cluster_y_2.clear();
253 m_GNNHit_cluster_z_2.clear();
254 m_GNNHit_cluster_r_2.clear();
257 m_GNNEdge_index_1.clear();
258 m_GNNEdge_index_2.clear();
259 m_GNNEdge_dR.clear();
260 m_GNNEdge_dPhi.clear();
261 m_GNNEdge_dZ.clear();
262 m_GNNEdge_dEta.clear();
263 m_GNNEdge_phiSlope.clear();
264 m_GNNEdge_rPhiSlope.clear();
265 m_GNNEdge_score.clear();
266 m_road_id.clear();
267 m_road_nHits.clear();
268 m_road_nHits_layer.clear();
269 m_road_nLayers.clear();
270 m_road_hit_uniqueID.clear();
271 m_road_hit_barcode.clear();
272 m_road_hit_eventIndex.clear();
273 m_road_hit_z.clear();
274 m_road_hit_r.clear();
275}

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in asg::AsgMetadataTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and DerivationFramework::CfAthAlgTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::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< AlgTool > >::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 }
std::vector< SG::VarHandleKeyArray * > m_vhka

Member Data Documentation

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default).

Definition at line 393 of file AthCommonDataStore.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default).

Definition at line 390 of file AthCommonDataStore.h.

◆ m_GNNEdge_dEta

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dEta {}
private

Definition at line 123 of file FPGATrackSimGNNRootOutputTool.h.

123{};

◆ m_GNNEdge_dPhi

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dPhi {}
private

Definition at line 121 of file FPGATrackSimGNNRootOutputTool.h.

121{};

◆ m_GNNEdge_dR

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dR {}
private

Definition at line 120 of file FPGATrackSimGNNRootOutputTool.h.

120{};

◆ m_GNNEdge_dZ

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dZ {}
private

Definition at line 122 of file FPGATrackSimGNNRootOutputTool.h.

122{};

◆ m_GNNEdge_index_1

std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_GNNEdge_index_1 {}
private

Definition at line 118 of file FPGATrackSimGNNRootOutputTool.h.

118{};

◆ m_GNNEdge_index_2

std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_GNNEdge_index_2 {}
private

Definition at line 119 of file FPGATrackSimGNNRootOutputTool.h.

119{};

◆ m_GNNEdge_phiSlope

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_phiSlope {}
private

Definition at line 124 of file FPGATrackSimGNNRootOutputTool.h.

124{};

◆ m_GNNEdge_rPhiSlope

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_rPhiSlope {}
private

Definition at line 125 of file FPGATrackSimGNNRootOutputTool.h.

125{};

◆ m_GNNEdge_score

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_score {}
private

Definition at line 126 of file FPGATrackSimGNNRootOutputTool.h.

126{};

◆ m_GNNEdge_tree

TTree* FPGATrackSimGNNRootOutputTool::m_GNNEdge_tree = nullptr
private

Definition at line 117 of file FPGATrackSimGNNRootOutputTool.h.

◆ m_GNNHit_cluster_eta_1

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_eta_1 {}
private

Definition at line 109 of file FPGATrackSimGNNRootOutputTool.h.

109{};

◆ m_GNNHit_cluster_eta_2

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_eta_2 {}
private

Definition at line 115 of file FPGATrackSimGNNRootOutputTool.h.

115{};

◆ m_GNNHit_cluster_phi_1

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_phi_1 {}
private

Definition at line 108 of file FPGATrackSimGNNRootOutputTool.h.

108{};

◆ m_GNNHit_cluster_phi_2

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_phi_2 {}
private

Definition at line 114 of file FPGATrackSimGNNRootOutputTool.h.

114{};

◆ m_GNNHit_cluster_r_1

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_r_1 {}
private

Definition at line 107 of file FPGATrackSimGNNRootOutputTool.h.

107{};

◆ m_GNNHit_cluster_r_2

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_r_2 {}
private

Definition at line 113 of file FPGATrackSimGNNRootOutputTool.h.

113{};

◆ m_GNNHit_cluster_x_1

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_x_1 {}
private

Definition at line 104 of file FPGATrackSimGNNRootOutputTool.h.

104{};

◆ m_GNNHit_cluster_x_2

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_x_2 {}
private

Definition at line 110 of file FPGATrackSimGNNRootOutputTool.h.

110{};

◆ m_GNNHit_cluster_y_1

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_y_1 {}
private

Definition at line 105 of file FPGATrackSimGNNRootOutputTool.h.

105{};

◆ m_GNNHit_cluster_y_2

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_y_2 {}
private

Definition at line 111 of file FPGATrackSimGNNRootOutputTool.h.

111{};

◆ m_GNNHit_cluster_z_1

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_z_1 {}
private

Definition at line 106 of file FPGATrackSimGNNRootOutputTool.h.

106{};

◆ m_GNNHit_cluster_z_2

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_z_2 {}
private

Definition at line 112 of file FPGATrackSimGNNRootOutputTool.h.

112{};

◆ m_GNNHit_eta

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_eta {}
private

Definition at line 103 of file FPGATrackSimGNNRootOutputTool.h.

103{};

◆ m_GNNHit_eventIndex

std::vector<long> FPGATrackSimGNNRootOutputTool::m_GNNHit_eventIndex {}
private

Definition at line 96 of file FPGATrackSimGNNRootOutputTool.h.

96{};

◆ m_GNNHit_id

std::vector<unsigned> FPGATrackSimGNNRootOutputTool::m_GNNHit_id {}
private

Definition at line 93 of file FPGATrackSimGNNRootOutputTool.h.

93{};

◆ m_GNNHit_module_id

std::vector<unsigned> FPGATrackSimGNNRootOutputTool::m_GNNHit_module_id {}
private

Definition at line 94 of file FPGATrackSimGNNRootOutputTool.h.

94{};

◆ m_GNNHit_phi

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_phi {}
private

Definition at line 102 of file FPGATrackSimGNNRootOutputTool.h.

102{};

◆ m_GNNHit_r

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_r {}
private

Definition at line 101 of file FPGATrackSimGNNRootOutputTool.h.

101{};

◆ m_GNNHit_road_id

std::vector<int> FPGATrackSimGNNRootOutputTool::m_GNNHit_road_id {}
private

Definition at line 97 of file FPGATrackSimGNNRootOutputTool.h.

97{};

◆ m_GNNHit_tree

TTree* FPGATrackSimGNNRootOutputTool::m_GNNHit_tree = nullptr
private

Definition at line 92 of file FPGATrackSimGNNRootOutputTool.h.

◆ m_GNNHit_uniqueID

std::vector<HepMcParticleLink::barcode_type> FPGATrackSimGNNRootOutputTool::m_GNNHit_uniqueID {}
private

Definition at line 95 of file FPGATrackSimGNNRootOutputTool.h.

95{};

◆ m_GNNHit_x

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_x {}
private

Definition at line 98 of file FPGATrackSimGNNRootOutputTool.h.

98{};

◆ m_GNNHit_y

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_y {}
private

Definition at line 99 of file FPGATrackSimGNNRootOutputTool.h.

99{};

◆ m_GNNHit_z

std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_z {}
private

Definition at line 100 of file FPGATrackSimGNNRootOutputTool.h.

100{};

◆ m_hit_cluster_x

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_cluster_x {}
private

Definition at line 87 of file FPGATrackSimGNNRootOutputTool.h.

87{};

◆ m_hit_cluster_y

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_cluster_y {}
private

Definition at line 88 of file FPGATrackSimGNNRootOutputTool.h.

88{};

◆ m_hit_cluster_z

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_cluster_z {}
private

Definition at line 89 of file FPGATrackSimGNNRootOutputTool.h.

89{};

◆ m_hit_eventIndex

std::vector<long> FPGATrackSimGNNRootOutputTool::m_hit_eventIndex {}
private

Definition at line 86 of file FPGATrackSimGNNRootOutputTool.h.

86{};

◆ m_hit_globalLayerID

std::vector<int> FPGATrackSimGNNRootOutputTool::m_hit_globalLayerID {}
private

Definition at line 90 of file FPGATrackSimGNNRootOutputTool.h.

90{};

◆ m_hit_hitType

std::vector<int> FPGATrackSimGNNRootOutputTool::m_hit_hitType {}
private

Definition at line 84 of file FPGATrackSimGNNRootOutputTool.h.

84{};

◆ m_hit_id

std::vector<unsigned> FPGATrackSimGNNRootOutputTool::m_hit_id {}
private

Definition at line 75 of file FPGATrackSimGNNRootOutputTool.h.

75{};

◆ m_hit_isPixel

std::vector<bool> FPGATrackSimGNNRootOutputTool::m_hit_isPixel {}
private

Definition at line 82 of file FPGATrackSimGNNRootOutputTool.h.

82{};

◆ m_hit_isStrip

std::vector<bool> FPGATrackSimGNNRootOutputTool::m_hit_isStrip {}
private

Definition at line 83 of file FPGATrackSimGNNRootOutputTool.h.

83{};

◆ m_hit_module_id

std::vector<unsigned> FPGATrackSimGNNRootOutputTool::m_hit_module_id {}
private

Definition at line 76 of file FPGATrackSimGNNRootOutputTool.h.

76{};

◆ m_hit_phi

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_phi {}
private

Definition at line 81 of file FPGATrackSimGNNRootOutputTool.h.

81{};

◆ m_hit_r

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_r {}
private

Definition at line 80 of file FPGATrackSimGNNRootOutputTool.h.

80{};

◆ m_hit_tree

TTree* FPGATrackSimGNNRootOutputTool::m_hit_tree = nullptr
private

Definition at line 74 of file FPGATrackSimGNNRootOutputTool.h.

◆ m_hit_uniqueID

std::vector<HepMcParticleLink::barcode_type> FPGATrackSimGNNRootOutputTool::m_hit_uniqueID {}
private

Definition at line 85 of file FPGATrackSimGNNRootOutputTool.h.

85{};

◆ m_hit_x

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_x {}
private

Definition at line 77 of file FPGATrackSimGNNRootOutputTool.h.

77{};

◆ m_hit_y

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_y {}
private

Definition at line 78 of file FPGATrackSimGNNRootOutputTool.h.

78{};

◆ m_hit_z

std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_z {}
private

Definition at line 79 of file FPGATrackSimGNNRootOutputTool.h.

79{};

◆ m_layerGeometry

const std::vector<TrigInDetSiLayer>* FPGATrackSimGNNRootOutputTool::m_layerGeometry {nullptr}
private

Definition at line 72 of file FPGATrackSimGNNRootOutputTool.h.

72{nullptr};

◆ m_layerNumberTool

ToolHandle<ITrigL2LayerNumberTool> FPGATrackSimGNNRootOutputTool::m_layerNumberTool {this, "LayerNumberTool", "TrigL2LayerNumberToolITk"}
private

Definition at line 66 of file FPGATrackSimGNNRootOutputTool.h.

66{this, "LayerNumberTool", "TrigL2LayerNumberToolITk"};

◆ m_pix_h2l

const std::vector<short>* FPGATrackSimGNNRootOutputTool::m_pix_h2l {nullptr}
private

Definition at line 71 of file FPGATrackSimGNNRootOutputTool.h.

71{nullptr};

◆ m_region

Gaudi::Property<std::string> FPGATrackSimGNNRootOutputTool::m_region { this, "OutputRegion", "", "region ID"}
private

Definition at line 65 of file FPGATrackSimGNNRootOutputTool.h.

65{ this, "OutputRegion", "", "region ID"};

◆ m_road_hit_barcode

std::vector<std::vector<std::vector<HepMcParticleLink::barcode_type> > > FPGATrackSimGNNRootOutputTool::m_road_hit_barcode {}
private

Definition at line 134 of file FPGATrackSimGNNRootOutputTool.h.

134{};

◆ m_road_hit_eventIndex

std::vector<std::vector<std::vector<long> > > FPGATrackSimGNNRootOutputTool::m_road_hit_eventIndex {}
private

Definition at line 135 of file FPGATrackSimGNNRootOutputTool.h.

135{};

◆ m_road_hit_r

std::vector<std::vector<std::vector<float> > > FPGATrackSimGNNRootOutputTool::m_road_hit_r {}
private

Definition at line 137 of file FPGATrackSimGNNRootOutputTool.h.

137{};

◆ m_road_hit_uniqueID

std::vector<std::vector<std::vector<HepMcParticleLink::barcode_type> > > FPGATrackSimGNNRootOutputTool::m_road_hit_uniqueID {}
private

Definition at line 133 of file FPGATrackSimGNNRootOutputTool.h.

133{};

◆ m_road_hit_z

std::vector<std::vector<std::vector<float> > > FPGATrackSimGNNRootOutputTool::m_road_hit_z {}
private

Definition at line 136 of file FPGATrackSimGNNRootOutputTool.h.

136{};

◆ m_road_id

std::vector<int> FPGATrackSimGNNRootOutputTool::m_road_id {}
private

Definition at line 129 of file FPGATrackSimGNNRootOutputTool.h.

129{};

◆ m_road_nHits

std::vector<size_t> FPGATrackSimGNNRootOutputTool::m_road_nHits {}
private

Definition at line 130 of file FPGATrackSimGNNRootOutputTool.h.

130{};

◆ m_road_nHits_layer

std::vector<std::vector<size_t> > FPGATrackSimGNNRootOutputTool::m_road_nHits_layer {}
private

Definition at line 131 of file FPGATrackSimGNNRootOutputTool.h.

131{};

◆ m_road_nLayers

std::vector<size_t> FPGATrackSimGNNRootOutputTool::m_road_nLayers {}
private

Definition at line 132 of file FPGATrackSimGNNRootOutputTool.h.

132{};

◆ m_road_tree

TTree* FPGATrackSimGNNRootOutputTool::m_road_tree = nullptr
private

Definition at line 128 of file FPGATrackSimGNNRootOutputTool.h.

◆ m_tHistSvc

ServiceHandle<ITHistSvc> FPGATrackSimGNNRootOutputTool::m_tHistSvc {this, "THistSvc", "THistSvc"}
private

Definition at line 64 of file FPGATrackSimGNNRootOutputTool.h.

64{this, "THistSvc", "THistSvc"};

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

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

Definition at line 398 of file AthCommonDataStore.h.


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