![]() |
ATLAS Offline Software
|
#include <FPGATrackSimDataFlowTool.h>
Public Member Functions | |
| FPGATrackSimDataFlowTool (std::string const &, std::string const &, IInterface const *) | |
| virtual | ~FPGATrackSimDataFlowTool ()=default |
| virtual StatusCode | initialize () override |
| StatusCode | calculateDataFlow (FPGATrackSimDataFlowInfo *info, FPGATrackSimLogicalEventInputHeader const *header_1st, std::vector< FPGATrackSimCluster > const &clusters_1st, const std::vector< std::shared_ptr< const FPGATrackSimRoad > > &roads_1st, std::vector< FPGATrackSimTrack > const &tracks_1st, const std::vector< std::shared_ptr< const FPGATrackSimRoad > > &roads_2nd, std::vector< FPGATrackSimTrack > const &tracks_2nd) |
| StatusCode | getDataFlowInfo (FPGATrackSimDataFlowInfo const &info) |
| virtual StatusCode | finalize () override |
| 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< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| StatusCode | makeDataFlowTable () |
| StatusCode | addDataFlow (float const n, std::string const &key, bool const isInt=true) |
| StatusCode | printDataFlow (std::string const &key, int const div=1) |
| void | addTableBreak (unsigned const n=1) |
| void | findAndReplaceAll (std::string &data, std::string const &toFind, std::string const &replaceStr) const |
| void | setMaxAcceptance (TH1 *h, double const max_frac, double &max_value) const |
| double | roundTo (double const v, int const nSigDigits) const |
| void | setHistDir (std::string const &dir) |
| std::string const & | getHistDir () |
| void | clearHistDir () |
| StatusCode | regHist (std::string const &dir, TH1 *h) |
| 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"} |
| ServiceHandle< IFPGATrackSimMappingSvc > | m_FPGATrackSimMapping {this,"FPGATrackSimMappingSvc","FPGATrackSimMappingSvc"} |
| ServiceHandle< IFPGATrackSimEventSelectionSvc > | m_evtSel {this,"FPGATrackSimEventSelectionSvc","FPGATrackSimEventSelectionSvc"} |
| Gaudi::Property< bool > | m_runSecondStage {this, "RunSecondStage", false, "flag to enable running the second stage fitting"} |
| Gaudi::Property< std::string > | m_outputtag {this, "outputTag", "", "Extra string to use in output folder names - default none"} |
| Gaudi::Property< float > | m_cut_chi2ndof {this, "Chi2ndofCut", 40., "cut on Chi2 of FPGATrackSimTrack"} |
| std::string const | m_dataFlowTxtName = "./dataflow.txt" |
| std::string const | m_dataFlowTeXName = "./dataflow.tex" |
| std::ofstream | m_dataFlowTxt |
| std::ofstream | m_dataFlowTeX |
| std::string | m_dir |
| size_t | m_nEvents = 0 |
| unsigned | m_nLayers_1st = 0U |
| unsigned const | m_nSigDigits = 2 |
| unsigned const | m_tableTypeWidth = 32 |
| unsigned const | m_tableDataWidth = 9 |
| double const | m_max_frac = 0.99 |
| std::unordered_map< std::string, int > | m_dataFlowDataI_min |
| std::unordered_map< std::string, int > | m_dataFlowDataI_max |
| std::unordered_map< std::string, float > | m_dataFlowDataF_min |
| std::unordered_map< std::string, float > | m_dataFlowDataF_max |
| std::unordered_map< std::string, TH1I * > | m_dataFlowHistsI |
| std::unordered_map< std::string, TH1F * > | m_dataFlowHistsF |
| 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 |
Definition at line 26 of file FPGATrackSimDataFlowTool.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| FPGATrackSimDataFlowTool::FPGATrackSimDataFlowTool | ( | std::string const & | algname, |
| std::string const & | name, | ||
| IInterface const * | ifc ) |
Definition at line 18 of file FPGATrackSimDataFlowTool.cxx.
|
virtualdefault |
|
private |
Definition at line 332 of file FPGATrackSimDataFlowTool.cxx.
|
private |
Definition at line 469 of file FPGATrackSimDataFlowTool.cxx.
| StatusCode FPGATrackSimDataFlowTool::calculateDataFlow | ( | FPGATrackSimDataFlowInfo * | info, |
| FPGATrackSimLogicalEventInputHeader const * | header_1st, | ||
| std::vector< FPGATrackSimCluster > const & | clusters_1st, | ||
| const std::vector< std::shared_ptr< const FPGATrackSimRoad > > & | roads_1st, | ||
| std::vector< FPGATrackSimTrack > const & | tracks_1st, | ||
| const std::vector< std::shared_ptr< const FPGATrackSimRoad > > & | roads_2nd, | ||
| std::vector< FPGATrackSimTrack > const & | tracks_2nd ) |
Definition at line 43 of file FPGATrackSimDataFlowTool.cxx.
|
inlineprivate |
Definition at line 58 of file FPGATrackSimDataFlowTool.h.
|
inlineprivateinherited |
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition at line 156 of file AthCommonDataStore.h.
|
inlineinherited |
Definition at line 145 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 95 of file AthCommonDataStore.h.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
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
|
overridevirtual |
Definition at line 323 of file FPGATrackSimDataFlowTool.cxx.
|
private |
Definition at line 479 of file FPGATrackSimDataFlowTool.cxx.
| StatusCode FPGATrackSimDataFlowTool::getDataFlowInfo | ( | FPGATrackSimDataFlowInfo const & | info | ) |
Definition at line 146 of file FPGATrackSimDataFlowTool.cxx.
|
inlineprivate |
Definition at line 57 of file FPGATrackSimDataFlowTool.h.
|
overridevirtual |
Definition at line 25 of file FPGATrackSimDataFlowTool.cxx.
|
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.
|
private |
Definition at line 210 of file FPGATrackSimDataFlowTool.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
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.
|
private |
Definition at line 407 of file FPGATrackSimDataFlowTool.cxx.
|
inlineprivate |
Definition at line 59 of file FPGATrackSimDataFlowTool.h.
|
inlineprotectedinherited |
Definition at line 380 of file AthCommonDataStore.h.
|
inlineprotectedinherited |
remove all handles from I/O resolution
Definition at line 364 of file AthCommonDataStore.h.
|
private |
Definition at line 505 of file FPGATrackSimDataFlowTool.cxx.
|
inlineprivate |
Definition at line 56 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 490 of file FPGATrackSimDataFlowTool.cxx.
|
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.
|
overridevirtualinherited |
Handle START transition.
We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.
|
inlineinherited |
Definition at line 308 of file AthCommonDataStore.h.
|
private |
Definition at line 68 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 91 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 90 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 89 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 88 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 94 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 93 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 74 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 72 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 73 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 71 of file FPGATrackSimDataFlowTool.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 77 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 63 of file FPGATrackSimDataFlowTool.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
private |
Definition at line 62 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 86 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 79 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 80 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 83 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 67 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 66 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 85 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 84 of file FPGATrackSimDataFlowTool.h.
|
private |
Definition at line 61 of file FPGATrackSimDataFlowTool.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.