![]() |
ATLAS Offline Software
|
#include <InDetRecStatisticsAlg.h>
Classes | |
| struct | Counter |
Public Member Functions | |
| InDetRecStatisticsAlg (const std::string &name, ISvcLocator *pSvcLocator) | |
| Default Constructor. | |
| StatusCode | initialize () |
| Initialization of services, track collections, creates TrackStatHelper for each Track Collection. | |
| StatusCode | execute (const EventContext &ctx) const |
| Calculation of statistics. | |
| StatusCode | finalize () |
| Statistics table printed, collection cleared. | |
| StatusCode | getServices () |
| Get various services such as StoreGate, dictionaries, detector managers etc. | |
| StatusCode | resetStatistics () |
| Clear statistics counters, called before each track collection is processed. | |
| void | printStatistics () |
| Print tracking statistics calculated with TrackStatHelper. | |
| void | printTrackSummary (MsgStream &out, enum eta_region) |
| Print track statistics for all and low proability tracks. | |
| virtual StatusCode | sysInitialize () override |
| Override sysInitialize. | |
| virtual bool | isClonable () const override |
| Specify if the algorithm is clonable. | |
| virtual unsigned int | cardinality () const override |
| Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant. | |
| virtual StatusCode | sysExecute (const EventContext &ctx) override |
| Execute an algorithm. | |
| virtual const DataObjIDColl & | extraOutputDeps () const override |
| Return the list of extra output dependencies. | |
| virtual bool | filterPassed (const EventContext &ctx) const |
| virtual void | setFilterPassed (bool state, const EventContext &ctx) const |
| 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 | |
| enum | ECounter { kN_rec_tracks_without_perigee , kN_unknown_hits , kN_rec_tracks_processed , kN_gen_tracks_processed , kN_spacepoints_processed , kNCounter } |
| using | CounterLocal = Counter<int> |
| typedef ServiceHandle< StoreGateSvc > | StoreGateSvc_t |
Private Member Functions | |
| void | selectGenSignal (const McEventCollection *, std::vector< std::pair< HepMC::ConstGenParticlePtr, int > > &, unsigned int, unsigned int, CounterLocal &counter) const |
| Select charged,stable particles which pass pt and eta cuts for analysis. | |
| void | selectRecSignal (const TrackCollection *, std::vector< const Trk::Track * > &, std::vector< const Trk::Track * > &, CounterLocal &counter) const |
| Select for analysis reconstructed tracks passing Pt and eta cuts. | |
| const Trk::TrackParameters * | getUnbiasedTrackParameters (const Trk::TrackParameters *, const Trk::MeasurementBase *) |
| Get Unbiased Track Parameters. | |
| Identifier | getIdentifier (const Trk::MeasurementBase *measurement) |
| Gaudi::Details::PropertyBase & | declareGaudiProperty (Gaudi::Property< T, V, H > &hndl, const SG::VarHandleKeyType &) |
| specialization for handling Gaudi::Property<SG::VarHandleKey> | |
Static Private Member Functions | |
| static float | calculatePull (const float, const float, const float) |
| Calculate pull from residual, track and hit error. | |
Private Attributes | |
| std::vector< class TrackStatHelper * > | m_SignalCounters |
| Vector of TrackStatHelper objects, one for each track collection. | |
| const AtlasDetectorID * | m_idHelper |
| Used to find out the sub-det from PRD->identify(). | |
| const PixelID * | m_pixelID |
| get pixel layer from hit ID | |
| const SCT_ID * | m_sctID |
| get sct layer from hit ID | |
| const TRT_ID * | m_trtID |
| get trt layer from hit ID | |
| const IdDictManager * | m_idDictMgr |
| ToolHandle< Trk::ITruthToTrack > | m_truthToTrack |
| tool to create track parameters from a gen particle | |
| ToolHandle< Trk::IExtendedTrackSummaryTool > | m_trkSummaryTool |
| tool to get track summary information from track | |
| ToolHandle< Trk::IUpdator > | m_updatorHandle |
| Tool handle of updator for unbiased states. | |
| Trk::IUpdator * | m_updator |
| updator for unbiased states | |
| ToolHandle< Trk::IResidualPullCalculator > | m_residualPullCalculator |
| The residual and pull calculator tool handle. | |
| SG::ReadHandleKey< McEventCollection > | m_McTrackCollection_key |
| ToolHandle< Trk::ITrackSelectorTool > | m_trackSelectorTool |
| bool | m_UseTrackSummary |
| Flag to print detailed statistics for each track collection. | |
| bool | m_printSecondary |
| Flag to print hit information for secondary tracks. | |
| float | m_minPt |
| Minimum Pt cut for tracks used by the algorithm. | |
| float | m_maxEta |
| Maximum Eta cut for tracks used by the algorithm. | |
| float | m_maxEtaBarrel |
| define max eta of barrel region | |
| float | m_maxEtaTransition |
| define max eta of transition region | |
| float | m_maxEtaEndcap |
| define max eta of eta region | |
| float | m_fakeTrackCut |
| Maximum probability for which a track will be considered a fake. | |
| float | m_fakeTrackCut2 |
| Second definition of maximum probability for which a track will be considered a fake. | |
| float | m_matchTrackCut |
| Minimum number of hits from a truth track to be considered a matched reco track. | |
| float | m_maxRStartPrimary |
| Maximum R of start vertex to be considered primary. | |
| float | m_maxRStartSecondary |
| Maximum R of start vertex to be considered secondary. | |
| float | m_maxZStartPrimary |
| Maximum Z of start vertex to be considered primary. | |
| float | m_maxZStartSecondary |
| Maximum Z of start vertex to be considered secondary. | |
| float | m_minREndPrimary |
| If track has end vertex, this is min R of end vertex to be considered primary. | |
| float | m_minREndSecondary |
| If track has end vertex, this is min R of end vertex to be considered secondary. | |
| float | m_minZEndPrimary |
| If track has end vertex, this is min Z of end vertex to be considered primary. | |
| float | m_minZEndSecondary |
| If track has end vertex, this is min Z of end vertex to be considered secondary. | |
| bool | m_useTrackSelection |
| Use track selector tool. | |
| bool | m_doTruth |
| Use truth information. | |
| float | m_minEtaFORWARD |
| float | m_maxEtaFORWARD |
| SG::ReadHandleKeyArray< TrackCollection > | m_RecTrackCollection_keys |
| SG::ReadHandleKeyArray< TrackTruthCollection > | m_TrackTruthCollection_keys |
| std::atomic< bool > | m_pullWarning {} |
| warn only once, if pull cannot be calculated | |
| std::atomic< bool > | m_UpdatorWarning {} |
| warn only once, if unbiased track states can not be calculated | |
| std::atomic< int > | m_isUnbiased |
| if can get unbiased residuals | |
| std::atomic< long > | m_events_processed |
| number of events processed | |
| Counter< std::atomic< long > > m_counter | ATLAS_THREAD_SAFE |
| DataObjIDColl | m_extendedExtraObjects |
| Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks. | |
| 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 46 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 79 of file InDetRecStatisticsAlg.h.
|
privateinherited |
Definition at line 388 of file AthCommonDataStore.h.
|
private |
Definition at line 147 of file InDetRecStatisticsAlg.h.
| InDet::InDetRecStatisticsAlg::InDetRecStatisticsAlg | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Default Constructor.
Definition at line 74 of file InDetRecStatisticsAlg.cxx.
|
staticprivate |
Calculate pull from residual, track and hit error.
Definition at line 771 of file InDetRecStatisticsAlg.cxx.
|
overridevirtualinherited |
Cardinality (Maximum number of clones that can exist) special value 0 means that algorithm is reentrant.
Override this to return 0 for reentrant algorithms.
Definition at line 75 of file AthCommonReentrantAlgorithm.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.
|
inlineinherited |
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition at line 85 of file AthCommonDataStore.h.
| StatusCode InDet::InDetRecStatisticsAlg::execute | ( | const EventContext & | ctx | ) | const |
Calculation of statistics.
Definition at line 265 of file InDetRecStatisticsAlg.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 94 of file AthCommonReentrantAlgorithm.cxx.
|
inlinevirtualinherited |
Definition at line 96 of file AthCommonReentrantAlgorithm.h.
| StatusCode InDet::InDetRecStatisticsAlg::finalize | ( | ) |
Statistics table printed, collection cleared.
Definition at line 382 of file InDetRecStatisticsAlg.cxx.
|
private |
Definition at line 821 of file InDetRecStatisticsAlg.cxx.
| StatusCode InDet::InDetRecStatisticsAlg::getServices | ( | ) |
Get various services such as StoreGate, dictionaries, detector managers etc.
Definition at line 400 of file InDetRecStatisticsAlg.cxx.
|
private |
Get Unbiased Track Parameters.
Definition at line 780 of file InDetRecStatisticsAlg.cxx.
| StatusCode InDet::InDetRecStatisticsAlg::initialize | ( | ) |
Initialization of services, track collections, creates TrackStatHelper for each Track Collection.
Definition at line 156 of file InDetRecStatisticsAlg.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.
|
overridevirtualinherited |
Specify if the algorithm is clonable.
Reentrant algorithms are clonable.
Reimplemented in InDet::GNNSeedingTrackMaker, InDet::SCT_Clusterization, InDet::SiSPGNNTrackMaker, InDet::SiSPSeededTrackFinder, InDet::SiTrackerSpacePointFinder, ITkPixelCablingAlg, ITkStripCablingAlg, RoIBResultToxAOD, SCT_ByteStreamErrorsTestAlg, SCT_CablingCondAlgFromCoraCool, SCT_CablingCondAlgFromText, SCT_ConditionsParameterTestAlg, SCT_ConditionsSummaryTestAlg, SCT_ConfigurationConditionsTestAlg, SCT_FlaggedConditionTestAlg, SCT_LinkMaskingTestAlg, SCT_MajorityConditionsTestAlg, SCT_ModuleVetoTestAlg, SCT_MonitorConditionsTestAlg, SCT_PrepDataToxAOD, SCT_RawDataToxAOD, SCT_ReadCalibChipDataTestAlg, SCT_ReadCalibDataTestAlg, SCT_RODVetoTestAlg, SCT_SensorsTestAlg, SCT_SiliconConditionsTestAlg, SCT_StripVetoTestAlg, SCT_TdaqEnabledTestAlg, SCT_TestCablingAlg, SCTEventFlagWriter, SCTRawDataProvider, SCTSiLorentzAngleTestAlg, SCTSiPropertiesTestAlg, and Simulation::BeamEffectsAlg.
Definition at line 68 of file AthCommonReentrantAlgorithm.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.
| void InDet::InDetRecStatisticsAlg::printStatistics | ( | ) |
Print tracking statistics calculated with TrackStatHelper.
Definition at line 583 of file InDetRecStatisticsAlg.cxx.
| void InDet::InDetRecStatisticsAlg::printTrackSummary | ( | MsgStream & | out, |
| enum eta_region | eta_reg ) |
Print track statistics for all and low proability tracks.
Definition at line 749 of file InDetRecStatisticsAlg.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.
| StatusCode InDet::InDetRecStatisticsAlg::resetStatistics | ( | ) |
Clear statistics counters, called before each track collection is processed.
Definition at line 491 of file InDetRecStatisticsAlg.cxx.
|
private |
Select charged,stable particles which pass pt and eta cuts for analysis.
Classify truth tracks as primary, secondary or truncated
Definition at line 529 of file InDetRecStatisticsAlg.cxx.
|
private |
Select for analysis reconstructed tracks passing Pt and eta cuts.
Definition at line 503 of file InDetRecStatisticsAlg.cxx.
|
inlinevirtualinherited |
Definition at line 100 of file AthCommonReentrantAlgorithm.h.
|
overridevirtualinherited |
Execute an algorithm.
We override this in order to work around an issue with the Algorithm base class storing the event context in a member variable that can cause crashes in MT jobs.
Definition at line 85 of file AthCommonReentrantAlgorithm.cxx.
|
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< Gaudi::Algorithm > >.
Reimplemented in HypoBase, and InputMakerBase.
Definition at line 61 of file AthCommonReentrantAlgorithm.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.
|
mutableprivate |
Definition at line 170 of file InDetRecStatisticsAlg.h.
|
privateinherited |
Pointer to StoreGate (detector store by default)
Definition at line 393 of file AthCommonDataStore.h.
|
private |
Use truth information.
Definition at line 135 of file InDetRecStatisticsAlg.h.
|
mutableprivate |
number of events processed
Definition at line 145 of file InDetRecStatisticsAlg.h.
|
privateinherited |
Pointer to StoreGate (event store by default)
Definition at line 390 of file AthCommonDataStore.h.
|
privateinherited |
Extra output dependency collection, extended by AthAlgorithmDHUpdate to add symlinks.
Empty if no symlinks were found.
Definition at line 114 of file AthCommonReentrantAlgorithm.h.
|
private |
Maximum probability for which a track will be considered a fake.
Definition at line 122 of file InDetRecStatisticsAlg.h.
|
private |
Second definition of maximum probability for which a track will be considered a fake.
Definition at line 123 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 103 of file InDetRecStatisticsAlg.h.
|
private |
Used to find out the sub-det from PRD->identify().
Definition at line 98 of file InDetRecStatisticsAlg.h.
|
mutableprivate |
if can get unbiased residuals
Definition at line 143 of file InDetRecStatisticsAlg.h.
|
private |
Minimum number of hits from a truth track to be considered a matched reco track.
Definition at line 124 of file InDetRecStatisticsAlg.h.
|
private |
Maximum Eta cut for tracks used by the algorithm.
Definition at line 118 of file InDetRecStatisticsAlg.h.
|
private |
define max eta of barrel region
Definition at line 119 of file InDetRecStatisticsAlg.h.
|
private |
define max eta of eta region
Definition at line 121 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 137 of file InDetRecStatisticsAlg.h.
|
private |
define max eta of transition region
Definition at line 120 of file InDetRecStatisticsAlg.h.
|
private |
Maximum R of start vertex to be considered primary.
Definition at line 126 of file InDetRecStatisticsAlg.h.
|
private |
Maximum R of start vertex to be considered secondary.
Definition at line 127 of file InDetRecStatisticsAlg.h.
|
private |
Maximum Z of start vertex to be considered primary.
Definition at line 128 of file InDetRecStatisticsAlg.h.
|
private |
Maximum Z of start vertex to be considered secondary.
Definition at line 129 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 112 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 136 of file InDetRecStatisticsAlg.h.
|
private |
Minimum Pt cut for tracks used by the algorithm.
Definition at line 117 of file InDetRecStatisticsAlg.h.
|
private |
If track has end vertex, this is min R of end vertex to be considered primary.
Definition at line 130 of file InDetRecStatisticsAlg.h.
|
private |
If track has end vertex, this is min R of end vertex to be considered secondary.
Definition at line 131 of file InDetRecStatisticsAlg.h.
|
private |
If track has end vertex, this is min Z of end vertex to be considered primary.
Definition at line 132 of file InDetRecStatisticsAlg.h.
|
private |
If track has end vertex, this is min Z of end vertex to be considered secondary.
Definition at line 133 of file InDetRecStatisticsAlg.h.
|
private |
get pixel layer from hit ID
Definition at line 99 of file InDetRecStatisticsAlg.h.
|
private |
Flag to print hit information for secondary tracks.
Definition at line 116 of file InDetRecStatisticsAlg.h.
|
mutableprivate |
warn only once, if pull cannot be calculated
Definition at line 141 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 138 of file InDetRecStatisticsAlg.h.
|
private |
The residual and pull calculator tool handle.
Definition at line 109 of file InDetRecStatisticsAlg.h.
|
private |
get sct layer from hit ID
Definition at line 100 of file InDetRecStatisticsAlg.h.
|
private |
Vector of TrackStatHelper objects, one for each track collection.
Definition at line 97 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 113 of file InDetRecStatisticsAlg.h.
|
private |
Definition at line 139 of file InDetRecStatisticsAlg.h.
|
private |
tool to get track summary information from track
Definition at line 105 of file InDetRecStatisticsAlg.h.
|
private |
get trt layer from hit ID
Definition at line 101 of file InDetRecStatisticsAlg.h.
|
private |
tool to create track parameters from a gen particle
Definition at line 104 of file InDetRecStatisticsAlg.h.
|
private |
updator for unbiased states
Definition at line 108 of file InDetRecStatisticsAlg.h.
|
private |
Tool handle of updator for unbiased states.
Definition at line 107 of file InDetRecStatisticsAlg.h.
|
mutableprivate |
warn only once, if unbiased track states can not be calculated
Definition at line 142 of file InDetRecStatisticsAlg.h.
|
private |
Use track selector tool.
Definition at line 134 of file InDetRecStatisticsAlg.h.
|
private |
Flag to print detailed statistics for each track collection.
Definition at line 115 of file InDetRecStatisticsAlg.h.
|
privateinherited |
Definition at line 399 of file AthCommonDataStore.h.
|
privateinherited |
Definition at line 398 of file AthCommonDataStore.h.