![]() |
ATLAS Offline Software
|
#include <FPGATrackSimConstGenAlgo.h>
Public Member Functions | |
| FPGATrackSimConstGenAlgo (const std::string &name, ISvcLocator *pSvcLocator) | |
| virtual | ~FPGATrackSimConstGenAlgo ()=default |
| StatusCode | initialize () override |
| StatusCode | finalize () override |
| StatusCode | execute () override |
| StatusCode | bookHistograms () |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| 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< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| StatusCode | copySliceTree (TFile *file) |
| StatusCode | prepareOutputTree () |
| void | readSkipList (size_t nEntries) |
| void | generate_constants () |
| void | fillConstTree (std::vector< module_t > &modules, FPGATrackSimMatrixAccumulator &acc, geo_constants &geo) |
| bool | isNAN (double value, const char *name) |
| bool | failedConstants (geo_constants const &geo, std::vector< bool > const &usable) |
| StatusCode | DumpConstants (std::vector< geo_constants > &geo_consts, std::string &filename) |
| StatusCode | writeSectors () |
| bool | GetConstants (FPGATrackSimMatrixAccumulator const &acc_norm, geo_constants &geo, int entryNumber) |
| bool | GetConstants (FPGATrackSimMatrixAccumulator const &acc_norm, geo_constants &geo, int entryNumber, std::vector< bool > const &coordsToUse, unsigned int nusable) |
| void | createMissingHitsConstants (FPGATrackSimMatrixAccumulator const &acc_norm, size_t entry) |
| FPGATrackSimMatrixAccumulator | normalize (FPGATrackSimMatrixAccumulator const &acc_raw) |
| geo_constants | makeConsts (FPGATrackSimMatrixAccumulator const &acc, std::vector< bool > const &usable, std::vector< double > const &inv_covariance, std::vector< double > const &eigvals, vector2D< double > const &eigvecs) |
| std::vector< double > | matrix_multiply (std::vector< double > const &A, std::vector< double > const &b) |
| void | eigen (size_t n_redu, size_t n_full, TMatrixD &mtx, std::vector< bool > const &usable, std::vector< double > &eigvals_v, vector2D< double > &eigvecs_v) |
| std::vector< double > | invert (size_t n_full, TMatrixD mtx, std::vector< bool > const &usable) |
| Inverts a reduced matrix, then pads with zeros to recover a full-sized matrix. | |
| TMatrixD | getReducedMatrix (size_t n, std::vector< double > const &mtx_v, std::vector< bool > const &usable, size_t nDimToUse) |
| Removes the rows/columns specified by !usable. | |
| bool | isSingular (TMatrixD mtx) |
| double | dot (const double *vec1, const double *vec2, size_t size) |
| geo_constants | calculate_gcorth (geo_constants geo, int nCoords, std::vector< bool > const &usable) |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Private Attributes | |
| ServiceHandle< IFPGATrackSimMappingSvc > | m_FPGATrackSimMapping {this, "FPGATrackSimMappingSvc","FPGATrackSimMappingSvc"} |
| ServiceHandle< IFPGATrackSimEventSelectionSvc > | m_EvtSel {this,"FPGATrackSimEventSelectionSvc","FPGATrackSimEventSelectionSvc"} |
| ServiceHandle< ITHistSvc > | m_tHistSvc {this, "THistSvc","THistSvc"} |
| const FPGATrackSimPlaneMap * | m_pmap = nullptr |
| Gaudi::Property< std::string > | m_cfpath {this, "merged_file_path", "", "merged file"} |
| Gaudi::Property< std::string > | m_skipFile {this, "skip_sectors", "File with list of sectors to skip"} |
| Gaudi::Property< bool > | m_Monitor {this,"Monitor",false,"flag to enable the monitor"} |
| Gaudi::Property< int > | m_region {this, "region",0,"region to run"} |
| Gaudi::Property< bool > | m_CheckGood2ndStage {this,"CheckGood2ndStage",true,"Check goodness of 2nd stage fit constants?"} |
| Gaudi::Property< bool > | m_useHitScaleFactor {this,"UseHitScaleFactor",false,"Scale factor for hits"} |
| Gaudi::Property< bool > | m_isSecondStage {this,"IsSecondStage",false,"If false, we're doing a 1st stage fit, otherwise 2nd stage"} |
| Gaudi::Property< bool > | m_dumpMissingHitsConstants {this, "missHitsConsts", false, "if this is true we dump constants assuming a missing hit in each layer, too"} |
| TFile * | m_mafile = nullptr |
| TTree * | m_ctree = nullptr |
| TTree * | m_matrix_tree = nullptr |
| TTree * | m_good_tree = nullptr |
| FPGATrackSimTrackParsI | m_sliceNBins |
| FPGATrackSimTrackPars | m_sliceMin |
| FPGATrackSimTrackPars | m_sliceMax |
| int | m_nLayers = 0 |
| int | m_nKernel = 0 |
| int | m_nKAverages = 0 |
| int | m_nCoords = 0 |
| int | m_nCoords_2 = 0 |
| std::vector< geo_constants > | m_geo_consts |
| std::vector< std::vector< geo_constants > > | m_geo_consts_with_missinghit |
| std::vector< bool > | m_skipList |
| DataObjIDColl | m_extendedExtraObjects |
| 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 78 of file FPGATrackSimConstGenAlgo.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
| FPGATrackSimConstGenAlgo::FPGATrackSimConstGenAlgo | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Definition at line 57 of file FPGATrackSimConstGenAlgo.cxx.
|
virtualdefault |
| StatusCode FPGATrackSimConstGenAlgo::bookHistograms | ( | ) |
Definition at line 118 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 712 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 137 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 297 of file FPGATrackSimConstGenAlgo.cxx.
|
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.
|
private |
Definition at line 703 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 833 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 672 of file FPGATrackSimConstGenAlgo.cxx.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
|
override |
Definition at line 737 of file FPGATrackSimConstGenAlgo.cxx.
|
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
|
overridevirtualinherited |
Return the list of extra output dependencies.
This list is extended to include symlinks implied by inheritance relations.
Definition at line 50 of file AthAlgorithm.cxx.
|
private |
Definition at line 435 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 369 of file FPGATrackSimConstGenAlgo.cxx.
|
override |
Definition at line 750 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 260 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 335 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 340 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Removes the rows/columns specified by !usable.
| n | - Initial size of matrix |
| mtx_v | - Matrix to be reduced (size n*n) |
| usable | - Which rows/columns are to be kept (size n) |
| nDimToUse | - Must be count(usable), size of output matrix |
Definition at line 600 of file FPGATrackSimConstGenAlgo.cxx.
|
override |
Definition at line 63 of file FPGATrackSimConstGenAlgo.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 |
Inverts a reduced matrix, then pads with zeros to recover a full-sized matrix.
| n_full | - Size of full (output) system |
| mtx | - A reduced matrix to be inverted (size n_redu * n_redu) |
| usable | - Which rows/columns were kept (size n_full, count(usable == n_redu)) |
Definition at line 633 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 422 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 584 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 523 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 571 of file FPGATrackSimConstGenAlgo.cxx.
|
inlineinherited |
Definition at line 24 of file AthCommonMsg.h.
|
inlineinherited |
Definition at line 30 of file AthCommonMsg.h.
|
private |
Definition at line 486 of file FPGATrackSimConstGenAlgo.cxx.
|
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 193 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 234 of file FPGATrackSimConstGenAlgo.cxx.
|
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.
|
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< Algorithm > >.
Reimplemented in AthAnalysisAlgorithm, AthFilterAlgorithm, AthHistogramAlgorithm, and PyAthena::Alg.
Definition at line 66 of file AthAlgorithm.cxx.
|
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 775 of file FPGATrackSimConstGenAlgo.cxx.
|
private |
Definition at line 107 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 111 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 120 of file FPGATrackSimConstGenAlgo.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Definition at line 114 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 98 of file FPGATrackSimConstGenAlgo.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 79 of file AthAlgorithm.h.
|
private |
Definition at line 97 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 146 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 150 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 122 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 113 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 119 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 121 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 109 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 138 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 139 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 137 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 136 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 135 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 101 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 110 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 108 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 153 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 130 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 129 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 128 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 99 of file FPGATrackSimConstGenAlgo.h.
|
private |
Definition at line 112 of file FPGATrackSimConstGenAlgo.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.