 |
ATLAS Offline Software
|
#include <FPGATrackSimGNNRootOutputTool.h>
|
| 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< std::shared_ptr< const FPGATrackSimRoad >> &roads) |
|
ServiceHandle< StoreGateSvc > & | evtStore () |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | evtStore () const |
| The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
const ServiceHandle< StoreGateSvc > & | detStore () const |
| The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc . More...
|
|
virtual StatusCode | sysInitialize () override |
| Perform system initialization for an algorithm. More...
|
|
virtual StatusCode | sysStart () override |
| Handle START transition. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | inputHandles () const override |
| Return this algorithm's input handles. More...
|
|
virtual std::vector< Gaudi::DataHandle * > | outputHandles () const override |
| Return this algorithm's output handles. More...
|
|
Gaudi::Details::PropertyBase & | declareProperty (Gaudi::Property< T, V, H > &t) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &) |
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &) |
| Declare a new Gaudi property. More...
|
|
Gaudi::Details::PropertyBase * | declareProperty (const std::string &name, T &property, const std::string &doc="none") |
| Declare a new Gaudi property. More...
|
|
void | updateVHKA (Gaudi::Details::PropertyBase &) |
|
MsgStream & | msg () const |
|
MsgStream & | msg (const MSG::Level lvl) const |
|
bool | msgLvl (const MSG::Level lvl) const |
|
|
StatusCode | bookTree () |
|
void | resetVectors () |
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyArrayType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleType &) |
| specialization for handling Gaudi::Property<SG::VarHandleBase> More...
|
|
Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &t, const SG::NotHandleType &) |
| specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
|
|
◆ StoreGateSvc_t
◆ FPGATrackSimGNNRootOutputTool()
FPGATrackSimGNNRootOutputTool::FPGATrackSimGNNRootOutputTool |
( |
const std::string & |
algname, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
ifc |
|
) |
| |
◆ bookTree()
StatusCode FPGATrackSimGNNRootOutputTool::bookTree |
( |
| ) |
|
|
private |
Definition at line 23 of file FPGATrackSimGNNRootOutputTool.cxx.
25 std::string hittree_str =
"FPGATrackSimHit_reg" +
m_region.value();
26 m_hit_tree =
new TTree(hittree_str.c_str(), hittree_str.c_str());
43 std::string GNNhittree_str =
"FPGATrackSimGNNHit_reg" +
m_region.value();
44 m_GNNHit_tree =
new TTree(GNNhittree_str.c_str(), GNNhittree_str.c_str());
67 std::string GNNedgetree_str =
"FPGATrackSimGNNEdge_reg" +
m_region.value();
68 m_GNNEdge_tree =
new TTree(GNNedgetree_str.c_str(), GNNedgetree_str.c_str());
79 std::string roadtree_str =
"FPGATrackSimRoad_reg" +
m_region.value();
80 m_road_tree =
new TTree(roadtree_str.c_str(), roadtree_str.c_str());
95 return StatusCode::SUCCESS;
◆ declareGaudiProperty() [1/4]
specialization for handling Gaudi::Property<SG::VarHandleKeyArray>
Definition at line 170 of file AthCommonDataStore.h.
175 hndl.documentation());
◆ declareGaudiProperty() [2/4]
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
161 hndl.documentation());
◆ declareGaudiProperty() [3/4]
specialization for handling Gaudi::Property<SG::VarHandleBase>
Definition at line 184 of file AthCommonDataStore.h.
189 hndl.documentation());
◆ declareGaudiProperty() [4/4]
◆ declareProperty() [1/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleBase
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 245 of file AthCommonDataStore.h.
250 this->declare(hndl.
vhKey());
251 hndl.
vhKey().setOwner(
this);
253 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [2/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
hndl | Object holding the property value. |
doc | Documentation string for the property. |
This is the version for types that derive from SG::VarHandleKey
. The property value object is put on the input and output lists as appropriate; then we forward to the base class.
Definition at line 221 of file AthCommonDataStore.h.
229 return PBASE::declareProperty(
name,hndl,
doc);
◆ declareProperty() [3/6]
◆ declareProperty() [4/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This is the generic version, for types that do not derive from SG::VarHandleKey
. It just forwards to the base class version of declareProperty
.
Definition at line 333 of file AthCommonDataStore.h.
338 return PBASE::declareProperty(
name, property,
doc);
◆ declareProperty() [5/6]
Declare a new Gaudi property.
- Parameters
-
name | Name of the property. |
property | Object holding the property value. |
doc | Documentation string for the property. |
This dispatches to either the generic declareProperty
or the one for VarHandle/Key/KeyArray.
Definition at line 352 of file AthCommonDataStore.h.
◆ declareProperty() [6/6]
◆ detStore()
◆ evtStore() [1/2]
◆ evtStore() [2/2]
◆ extraDeps_update_handler()
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()
Definition at line 98 of file FPGATrackSimGNNRootOutputTool.cxx.
105 for (
const auto& hit :
hits) {
108 m_hit_x.push_back(hit->getX());
109 m_hit_y.push_back(hit->getY());
110 m_hit_z.push_back(hit->getZ());
111 m_hit_r.push_back(hit->getR());
115 m_hit_hitType.push_back(
static_cast<int>(hit->getHitType()));
126 for (
const auto& hit : gnn_hits) {
152 for (
const auto& edge : edges) {
165 for (
const auto& road : roads) {
171 std::vector<std::vector<HepMcParticleLink::barcode_type>> road_hit_uniqueID(road->getNLayers());
172 std::vector<std::vector<HepMcParticleLink::barcode_type>> road_hit_barcode(road->getNLayers());
173 std::vector<std::vector<float>> road_hit_z(road->getNLayers());
174 std::vector<std::vector<float>> road_hit_r(road->getNLayers());
175 for (
size_t l = 0;
l < road->getNLayers(); ++
l) {
176 for (
const auto &layerH : road->getHits(
l)) {
177 road_hit_uniqueID[
l].push_back((*layerH).getUniqueID());
178 road_hit_barcode[
l].push_back((*layerH).getBarcode());
179 road_hit_z[
l].push_back((*layerH).getOriginalHit().getZ());
180 road_hit_r[
l].push_back((*layerH).getOriginalHit().getR());
194 return StatusCode::SUCCESS;
◆ initialize()
StatusCode FPGATrackSimGNNRootOutputTool::initialize |
( |
| ) |
|
|
overridevirtual |
◆ inputHandles()
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() [1/2]
◆ msg() [2/2]
◆ msgLvl()
◆ outputHandles()
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()
◆ renounceArray()
◆ resetVectors()
void FPGATrackSimGNNRootOutputTool::resetVectors |
( |
| ) |
|
|
private |
◆ sysInitialize()
◆ sysStart()
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
◆ updateVHKA()
◆ m_detStore
◆ m_evtStore
◆ m_GNNEdge_dEta
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dEta {} |
|
private |
◆ m_GNNEdge_dPhi
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dPhi {} |
|
private |
◆ m_GNNEdge_dR
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dR {} |
|
private |
◆ m_GNNEdge_dZ
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_dZ {} |
|
private |
◆ m_GNNEdge_index_1
std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_GNNEdge_index_1 {} |
|
private |
◆ m_GNNEdge_index_2
std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_GNNEdge_index_2 {} |
|
private |
◆ m_GNNEdge_phiSlope
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_phiSlope {} |
|
private |
◆ m_GNNEdge_rPhiSlope
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_rPhiSlope {} |
|
private |
◆ m_GNNEdge_score
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNEdge_score {} |
|
private |
◆ m_GNNEdge_tree
TTree* FPGATrackSimGNNRootOutputTool::m_GNNEdge_tree = nullptr |
|
private |
◆ m_GNNHit_cluster_eta_1
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_eta_1 {} |
|
private |
◆ m_GNNHit_cluster_eta_2
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_eta_2 {} |
|
private |
◆ m_GNNHit_cluster_phi_1
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_phi_1 {} |
|
private |
◆ m_GNNHit_cluster_phi_2
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_phi_2 {} |
|
private |
◆ m_GNNHit_cluster_r_1
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_r_1 {} |
|
private |
◆ m_GNNHit_cluster_r_2
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_r_2 {} |
|
private |
◆ m_GNNHit_cluster_x_1
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_x_1 {} |
|
private |
◆ m_GNNHit_cluster_x_2
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_x_2 {} |
|
private |
◆ m_GNNHit_cluster_y_1
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_y_1 {} |
|
private |
◆ m_GNNHit_cluster_y_2
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_y_2 {} |
|
private |
◆ m_GNNHit_cluster_z_1
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_z_1 {} |
|
private |
◆ m_GNNHit_cluster_z_2
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_cluster_z_2 {} |
|
private |
◆ m_GNNHit_eta
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_eta {} |
|
private |
◆ m_GNNHit_id
std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_GNNHit_id {} |
|
private |
◆ m_GNNHit_module_id
std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_GNNHit_module_id {} |
|
private |
◆ m_GNNHit_phi
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_phi {} |
|
private |
◆ m_GNNHit_r
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_r {} |
|
private |
◆ m_GNNHit_road_id
std::vector<int> FPGATrackSimGNNRootOutputTool::m_GNNHit_road_id {} |
|
private |
◆ m_GNNHit_tree
TTree* FPGATrackSimGNNRootOutputTool::m_GNNHit_tree = nullptr |
|
private |
◆ m_GNNHit_x
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_x {} |
|
private |
◆ m_GNNHit_y
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_y {} |
|
private |
◆ m_GNNHit_z
std::vector<float> FPGATrackSimGNNRootOutputTool::m_GNNHit_z {} |
|
private |
◆ m_hit_cluster_x
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_cluster_x {} |
|
private |
◆ m_hit_cluster_y
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_cluster_y {} |
|
private |
◆ m_hit_cluster_z
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_cluster_z {} |
|
private |
◆ m_hit_eventIndex
std::vector<long> FPGATrackSimGNNRootOutputTool::m_hit_eventIndex {} |
|
private |
◆ m_hit_hitType
std::vector<int> FPGATrackSimGNNRootOutputTool::m_hit_hitType {} |
|
private |
◆ m_hit_id
std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_hit_id {} |
|
private |
◆ m_hit_isPixel
std::vector<bool> FPGATrackSimGNNRootOutputTool::m_hit_isPixel {} |
|
private |
◆ m_hit_isStrip
std::vector<bool> FPGATrackSimGNNRootOutputTool::m_hit_isStrip {} |
|
private |
◆ m_hit_module_id
std::vector<unsigned int> FPGATrackSimGNNRootOutputTool::m_hit_module_id {} |
|
private |
◆ m_hit_phi
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_phi {} |
|
private |
◆ m_hit_r
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_r {} |
|
private |
◆ m_hit_tree
TTree* FPGATrackSimGNNRootOutputTool::m_hit_tree = nullptr |
|
private |
◆ m_hit_uniqueID
◆ m_hit_x
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_x {} |
|
private |
◆ m_hit_y
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_y {} |
|
private |
◆ m_hit_z
std::vector<float> FPGATrackSimGNNRootOutputTool::m_hit_z {} |
|
private |
◆ m_region
Gaudi::Property<std::string> FPGATrackSimGNNRootOutputTool::m_region { this, "OutputRegion", "", "region ID"} |
|
private |
◆ m_road_hit_barcode
◆ m_road_hit_r
std::vector<std::vector<std::vector<float> > > FPGATrackSimGNNRootOutputTool::m_road_hit_r {} |
|
private |
◆ m_road_hit_uniqueID
◆ m_road_hit_z
std::vector<std::vector<std::vector<float> > > FPGATrackSimGNNRootOutputTool::m_road_hit_z {} |
|
private |
◆ m_road_id
std::vector<int> FPGATrackSimGNNRootOutputTool::m_road_id {} |
|
private |
◆ m_road_nHits
std::vector<size_t> FPGATrackSimGNNRootOutputTool::m_road_nHits {} |
|
private |
◆ m_road_nHits_layer
std::vector<std::vector<size_t> > FPGATrackSimGNNRootOutputTool::m_road_nHits_layer {} |
|
private |
◆ m_road_nLayers
std::vector<size_t> FPGATrackSimGNNRootOutputTool::m_road_nLayers {} |
|
private |
◆ m_road_tree
TTree* FPGATrackSimGNNRootOutputTool::m_road_tree = nullptr |
|
private |
◆ m_tHistSvc
ServiceHandle<ITHistSvc> FPGATrackSimGNNRootOutputTool::m_tHistSvc {this, "THistSvc", "THistSvc"} |
|
private |
◆ m_varHandleArraysDeclared
◆ m_vhka
The documentation for this class was generated from the following files:
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
std::vector< SG::VarHandleKeyArray * > m_vhka
virtual void setOwner(IDataHandleHolder *o)=0
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
virtual void renounce()=0
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.