![]() |
ATLAS Offline Software
|
#include <FPGATrackSimNNTrackTool.h>
Public Member Functions | |
| FPGATrackSimNNTrackTool (const std::string &, const std::string &, const IInterface *) | |
| virtual StatusCode | initialize () override |
| StatusCode | getTracks_1st (std::vector< std::shared_ptr< const FPGATrackSimRoad > > &roads, std::vector< FPGATrackSimTrack > &tracks) |
| StatusCode | getTracks_2nd (std::vector< std::shared_ptr< const FPGATrackSimRoad > > &roads, std::vector< FPGATrackSimTrack > &tracks) |
| StatusCode | getTracks_GNN (std::vector< std::shared_ptr< const FPGATrackSimRoad > > &roads, std::vector< FPGATrackSimTrack > &tracks) |
| StatusCode | setTrackParameters (std::vector< FPGATrackSimTrack > &tracks, bool isFirst, const FPGATrackSimTrackPars &min, const FPGATrackSimTrackPars &max) |
| StatusCode | setRoadSectors (std::vector< std::shared_ptr< const FPGATrackSimRoad > > &roads) |
| void | matchIdealGeoSector (FPGATrackSimRoad &r) |
| void | initialize (TString) |
| std::vector< float > | runONNXInference (std::vector< float > &inputTensorValues) const |
| std::vector< std::vector< float > > | runONNXInference (std::vector< std::vector< float > > &inputTensorValues) const |
| std::vector< std::vector< float > > | runONNXInference (NetworkBatchInput &inputTensorValues) const |
| std::map< int, Eigen::MatrixXf > | runONNXInferenceMultilayerOutput (NetworkBatchInput &inputTensorValues) const |
| const std::vector< int64_t > & | getInputNodesDims () |
| const std::vector< int64_t > & | getOutputNodesDims () |
Static Public Member Functions | |
| static float | getXScale () |
| static float | getYScale () |
| static float | getZScale () |
| static float | getQoverPtScale () |
| static float | getEtaScale () |
| static float | getPhiScale () |
| static float | getD0Scale () |
| static float | getZ0Scale () |
| static float | getRScale () |
Public Attributes | |
| Gaudi::Property< unsigned int > | m_minNumberOfRealHitsInATrack { this, "MinNumberOfRealHitsInATrack", 4, "Minimum number of real hits in a track candidate to process" } |
| Gaudi::Property< bool > | m_doGNNTracking { this, "doGNNTracking", false, "Flag to turn on GNN Tracking configuration for road-to-track" } |
| Gaudi::Property< int > | m_nInputsGNN { this, "nInputsGNN", 9, "Number of Hit Inputs for NN for GNN configuration. Depends on which model is chosen."} |
| Gaudi::Property< bool > | m_useCartesian { this, "useCartesian", true, "If true, NNs use Cartestian coordinates. If false,they use cylindrical coordiantes"} |
| TString | m_fileName |
Protected Attributes | |
| ServiceHandle< IFPGATrackSimBankSvc > | m_FPGATrackSimBank { this,"FPGATrackSimBankSvc","FPGATrackSimBankSvc" } |
| ToolHandle< IFPGATrackSimRoadFilterTool > | m_spRoadFilterTool {this, "SPRoadFilterTool", "FPGATrackSimSpacepointRoadFilterTool", "Spacepoint Road Filter Tool"} |
| Gaudi::Property< bool > | m_doRegionalMapping { this, "RegionalMapping", false, "Use the sub-region maps to define the sector" } |
| Gaudi::Property< bool > | m_doEtaPatternConsts { this, "doEtaPatternConsts", false, "Whether to use the eta pattern tool for constant generation" } |
| Gaudi::Property< bool > | m_useSpacePoints { this, "useSpacePoints", false, "Whether we are using spacepoints." } |
| Gaudi::Property< bool > | m_useSectors { this, "useSectors", false, "Will reverse calculate the sector for track-fitting purposes" } |
| Gaudi::Property< bool > | m_idealGeoRoads { this, "IdealGeoRoads", true, "Set sectors to use ideal geometry fit constants" } |
| Gaudi::Property< bool > | m_isSecondStage { this, "isSecondStage", true, "Is this the second stage?" } |
| Gaudi::Property< bool > | m_do2ndStage {this, "Do2ndStageTrackFit", false, "Do 2nd stage track fit"} |
Private Member Functions | |
| void | compute_truth (FPGATrackSimTrack &newtrk) const |
| OnnxRuntimeBase (TString fileName) | |
| OnnxRuntimeBase () | |
Private Attributes | |
| ServiceHandle< IFPGATrackSimMappingSvc > | m_FPGATrackSimMapping {this, "FPGATrackSimMappingSvc", ""} |
| ServiceHandle< ITHistSvc > | m_tHistSvc {this, "THistSvc","THistSvc"} |
| OnnxRuntimeBase | m_paramNN_1st |
| OnnxRuntimeBase | m_paramNN_2nd |
| OnnxRuntimeBase | m_fakeNN_1st |
| OnnxRuntimeBase | m_fakeNN_2nd |
| bool | m_useParamNN_1st = true |
| bool | m_useParamNN_2nd = true |
| std::vector< float > | m_x |
| std::vector< float > | m_y |
| std::vector< float > | m_z |
| std::vector< float > | m_barcodefrac |
| std::vector< int > | m_barcode |
| std::vector< int > | m_eventindex |
| std::vector< unsigned int > | m_isPixel |
| std::vector< unsigned int > | m_layer |
| std::vector< unsigned int > | m_isBarrel |
| std::vector< unsigned int > | m_etawidth |
| std::vector< unsigned int > | m_phiwidth |
| std::vector< unsigned int > | m_etamodule |
| std::vector< unsigned int > | m_phimodule |
| std::vector< unsigned int > | m_ID |
| std::vector< float > | m_truth_d0 |
| std::vector< float > | m_truth_z0 |
| std::vector< float > | m_truth_pt |
| std::vector< float > | m_truth_eta |
| std::vector< float > | m_truth_phi |
| std::vector< float > | m_truth_pdg |
| std::vector< int > | m_truth_q |
| std::vector< int > | m_truth_barcode |
| std::vector< int > | m_truth_eventindex |
| std::vector< const char * > | m_input_node_names |
| std::vector< int64_t > | m_input_node_dims |
| std::vector< const char * > | m_output_node_names |
| std::unique_ptr< Ort::Session > | m_session |
| ONNX runtime session / model properties. | |
| std::vector< const char * > | m_inputNodeNames |
| std::vector< int64_t > | m_inputNodeDims |
| std::vector< const char * > | m_outputNodeNames |
| std::vector< int64_t > | m_outputNodeDims |
| std::unique_ptr< Ort::Env > | m_env |
Definition at line 37 of file FPGATrackSimNNTrackTool.h.
| FPGATrackSimNNTrackTool::FPGATrackSimNNTrackTool | ( | const std::string & | algname, |
| const std::string & | name, | ||
| const IInterface * | ifc ) |
Definition at line 21 of file FPGATrackSimNNTrackTool.cxx.
|
private |
Definition at line 975 of file FPGATrackSimNNTrackTool.cxx.
|
inlinestatic |
Definition at line 60 of file FPGATrackSimNNTrackTool.h.
|
inlinestatic |
Definition at line 58 of file FPGATrackSimNNTrackTool.h.
|
inlineinherited |
Definition at line 33 of file OnnxRuntimeBase.h.
|
inlineinherited |
Definition at line 34 of file OnnxRuntimeBase.h.
|
inlinestatic |
Definition at line 59 of file FPGATrackSimNNTrackTool.h.
|
inlinestatic |
Definition at line 57 of file FPGATrackSimNNTrackTool.h.
|
inlinestatic |
Definition at line 62 of file FPGATrackSimNNTrackTool.h.
| StatusCode FPGATrackSimNNTrackTool::getTracks_1st | ( | std::vector< std::shared_ptr< const FPGATrackSimRoad > > & | roads, |
| std::vector< FPGATrackSimTrack > & | tracks ) |
should be 2 missing coords for pixel
now we have saved our values, time to run inference and get the output
Definition at line 233 of file FPGATrackSimNNTrackTool.cxx.
| StatusCode FPGATrackSimNNTrackTool::getTracks_2nd | ( | std::vector< std::shared_ptr< const FPGATrackSimRoad > > & | roads, |
| std::vector< FPGATrackSimTrack > & | tracks ) |
should be 2 missing coords for pixel
now we have saved our values, time to run inference and get the output
Definition at line 479 of file FPGATrackSimNNTrackTool.cxx.
| StatusCode FPGATrackSimNNTrackTool::getTracks_GNN | ( | std::vector< std::shared_ptr< const FPGATrackSimRoad > > & | roads, |
| std::vector< FPGATrackSimTrack > & | tracks ) |
should be 2 missing coords for pixel
now we have saved our values, time to run inference and get the output
Definition at line 722 of file FPGATrackSimNNTrackTool.cxx.
|
inlinestatic |
Definition at line 54 of file FPGATrackSimNNTrackTool.h.
|
inlinestatic |
Definition at line 55 of file FPGATrackSimNNTrackTool.h.
|
inlinestatic |
Definition at line 61 of file FPGATrackSimNNTrackTool.h.
|
inlinestatic |
Definition at line 56 of file FPGATrackSimNNTrackTool.h.
|
overridevirtual |
Definition at line 25 of file FPGATrackSimNNTrackTool.cxx.
|
inherited |
Definition at line 16 of file OnnxRuntimeBase.cxx.
|
inherited |
Definition at line 36 of file FPGATrackSimTrackingToolBase.cxx.
|
private |
Definition at line 24 of file OnnxRuntimeBase.cxx.
|
private |
Definition at line 23 of file OnnxRuntimeBase.cxx.
|
inherited |
Definition at line 96 of file OnnxRuntimeBase.cxx.
|
inherited |
Definition at line 84 of file OnnxRuntimeBase.cxx.
|
inherited |
Definition at line 66 of file OnnxRuntimeBase.cxx.
|
inherited |
Definition at line 162 of file OnnxRuntimeBase.cxx.
|
inherited |
Definition at line 11 of file FPGATrackSimTrackingToolBase.cxx.
| StatusCode FPGATrackSimNNTrackTool::setTrackParameters | ( | std::vector< FPGATrackSimTrack > & | tracks, |
| bool | isFirst, | ||
| const FPGATrackSimTrackPars & | min, | ||
| const FPGATrackSimTrackPars & | max ) |
only set this for tracks passing goodness of fit AND overlap removal
Definition at line 66 of file FPGATrackSimNNTrackTool.cxx.
|
private |
Definition at line 87 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 86 of file FPGATrackSimNNTrackTool.h.
|
protectedinherited |
Definition at line 40 of file FPGATrackSimTrackingToolBase.h.
|
protectedinherited |
Definition at line 35 of file FPGATrackSimTrackingToolBase.h.
| Gaudi::Property<bool> FPGATrackSimNNTrackTool::m_doGNNTracking { this, "doGNNTracking", false, "Flag to turn on GNN Tracking configuration for road-to-track" } |
Definition at line 66 of file FPGATrackSimNNTrackTool.h.
|
protectedinherited |
Definition at line 34 of file FPGATrackSimTrackingToolBase.h.
|
privateinherited |
Definition at line 45 of file OnnxRuntimeBase.h.
|
private |
Definition at line 94 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 92 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 88 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 77 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 78 of file FPGATrackSimNNTrackTool.h.
|
inherited |
Definition at line 17 of file OnnxRuntimeBase.h.
|
protectedinherited |
Definition at line 30 of file FPGATrackSimTrackingToolBase.h.
|
private |
Definition at line 72 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 96 of file FPGATrackSimNNTrackTool.h.
|
protectedinherited |
Definition at line 38 of file FPGATrackSimTrackingToolBase.h.
|
private |
Definition at line 111 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 110 of file FPGATrackSimNNTrackTool.h.
|
privateinherited |
Definition at line 41 of file OnnxRuntimeBase.h.
|
privateinherited |
Definition at line 40 of file OnnxRuntimeBase.h.
|
private |
Definition at line 91 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 89 of file FPGATrackSimNNTrackTool.h.
|
protectedinherited |
Definition at line 39 of file FPGATrackSimTrackingToolBase.h.
|
private |
Definition at line 90 of file FPGATrackSimNNTrackTool.h.
| Gaudi::Property<unsigned int> FPGATrackSimNNTrackTool::m_minNumberOfRealHitsInATrack { this, "MinNumberOfRealHitsInATrack", 4, "Minimum number of real hits in a track candidate to process" } |
Definition at line 65 of file FPGATrackSimNNTrackTool.h.
| Gaudi::Property<int> FPGATrackSimNNTrackTool::m_nInputsGNN { this, "nInputsGNN", 9, "Number of Hit Inputs for NN for GNN configuration. Depends on which model is chosen."} |
Definition at line 67 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 112 of file FPGATrackSimNNTrackTool.h.
|
privateinherited |
Definition at line 43 of file OnnxRuntimeBase.h.
|
privateinherited |
Definition at line 42 of file OnnxRuntimeBase.h.
|
private |
Definition at line 75 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 76 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 95 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 93 of file FPGATrackSimNNTrackTool.h.
|
privateinherited |
ONNX runtime session / model properties.
Definition at line 38 of file OnnxRuntimeBase.h.
|
protectedinherited |
Definition at line 32 of file FPGATrackSimTrackingToolBase.h.
|
private |
Definition at line 73 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 105 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 98 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 101 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 106 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 103 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 102 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 100 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 104 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 99 of file FPGATrackSimNNTrackTool.h.
| Gaudi::Property<bool> FPGATrackSimNNTrackTool::m_useCartesian { this, "useCartesian", true, "If true, NNs use Cartestian coordinates. If false,they use cylindrical coordiantes"} |
Definition at line 68 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 80 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 81 of file FPGATrackSimNNTrackTool.h.
|
protectedinherited |
Definition at line 37 of file FPGATrackSimTrackingToolBase.h.
|
protectedinherited |
Definition at line 36 of file FPGATrackSimTrackingToolBase.h.
|
private |
Definition at line 83 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 84 of file FPGATrackSimNNTrackTool.h.
|
private |
Definition at line 85 of file FPGATrackSimNNTrackTool.h.