|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #ifndef INDETRECSTATISTICS_TrackStatistics_H
11 #define INDETRECSTATISTICS_TrackStatistics_H
15 #include "GaudiKernel/ToolHandle.h"
18 #include "Identifier/Identifier.h"
40 class ITrackSummaryTool;
77 template <
typename T_Int=
int>
84 std::vector <std::pair<HepMC::ConstGenParticlePtr,int> > &,
91 std::vector <const Trk::Track *> & ,
92 std::vector <const Trk::Track *> &,
156 template <
typename T_Int>
162 template <
typename T_IntB>
172 static float calculatePull(
const float,
const float,
const float);
180 #endif // INDETRECSTATISTICS_TrackStatistics_H
Identifier getIdentifier(const Trk::MeasurementBase *measurement)
const PixelID * m_pixelID
get pixel layer from hit ID
const AtlasDetectorID * m_idHelper
Used to find out the sub-det from PRD->identify().
@ kN_rec_tracks_processed
number of reconstructed tracks processed
std::atomic< bool > m_pullWarning
warn only once, if pull cannot be calculated
float m_minZEndSecondary
If track has end vertex, this is min Z of end vertex to be considered secondary.
ToolHandle< Trk::IResidualPullCalculator > m_residualPullCalculator
The residual and pull calculator tool handle.
static float calculatePull(const float, const float, const float)
Calculate pull from residual, track and hit error.
ToolHandle< Trk::IExtendedTrackSummaryTool > m_trkSummaryTool
tool to get track summary information from track
StatusCode resetStatistics()
Clear statistics counters, called before each track collection is processed.
float m_maxRStartPrimary
Maximum R of start vertex to be considered primary.
const TRT_ID * m_trtID
get trt layer from hit ID
StatusCode getServices()
Get various services such as StoreGate, dictionaries, detector managers etc.
std::atomic< bool > m_UpdatorWarning
warn only once, if unbiased track states can not be calculated
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.
@ kN_rec_tracks_without_perigee
number of tracks w/o perigee
float m_minREndSecondary
If track has end vertex, this is min R of end vertex to be considered secondary.
bool m_UseTrackSummary
Flag to print detailed statistics for each track collection.
void printTrackSummary(MsgStream &out, enum eta_region)
Print track statistics for all and low proability tracks.
bool m_useTrackSelection
Use track selector tool.
Counter & operator+=(const Counter< T_IntB > &b)
StatusCode execute(const EventContext &ctx) const
Calculation of statistics.
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< McEventCollection > m_McTrackCollection_key
void printStatistics()
Print tracking statistics calculated with TrackStatHelper.
bool m_printSecondary
Flag to print hit information for secondary tracks.
::StatusCode StatusCode
StatusCode definition for legacy code.
ToolHandle< Trk::IUpdator > m_updatorHandle
Tool handle of updator for unbiased states.
T_Int m_counter[kNCounter]
std::atomic< long > m_events_processed
number of events processed
const SCT_ID * m_sctID
get sct layer from hit ID
ToolHandle< Trk::ITruthToTrack > m_truthToTrack
tool to create track parameters from a gen particle
std::vector< class TrackStatHelper * > m_SignalCounters
Vector of TrackStatHelper objects, one for each track collection.
float m_maxEta
Maximum Eta cut for tracks used by the algorithm.
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
float m_matchTrackCut
Minimum number of hits from a truth track to be considered a matched reco track.
Trk::IUpdator * m_updator
updator for unbiased states
float m_maxEtaTransition
define max eta of transition region
Ensure that the ATLAS eigen extensions are properly loaded.
float m_minPt
Minimum Pt cut for tracks used by the algorithm.
ToolHandle< Trk::ITrackSelectorTool > m_trackSelectorTool
@ kN_gen_tracks_processed
number of generated tracks processed
Counter< std::atomic< long > > m_counter ATLAS_THREAD_SAFE
IdDictManager is the interface to identifier dictionaries.
StatusCode finalize()
Statistics table printed, collection cleared.
Set of interfaces for methods operating on track states, mainly for Kalman filtering.
const IdDictManager * m_idDictMgr
float m_fakeTrackCut2
Second definition of maximum probability for which a track will be considered a fake.
float m_minZEndPrimary
If track has end vertex, this is min Z of end vertex to be considered primary.
float m_maxRStartSecondary
Maximum R of start vertex to be considered secondary.
float m_maxZStartSecondary
Maximum Z of start vertex to be considered secondary.
float m_maxEtaEndcap
define max eta of eta region
StatusCode initialize()
Initialization of services, track collections, creates TrackStatHelper for each Track Collection.
SG::ReadHandleKeyArray< TrackTruthCollection > m_TrackTruthCollection_keys
bool m_doTruth
Use truth information.
std::atomic< int > m_isUnbiased
if can get unbiased residuals
float m_maxZStartPrimary
Maximum Z of start vertex to be considered primary.
float m_fakeTrackCut
Maximum probability for which a track will be considered a fake.
float m_maxEtaBarrel
define max eta of barrel region
InDetRecStatisticsAlg(const std::string &name, ISvcLocator *pSvcLocator)
Default Constructor.
@ kN_unknown_hits
number of hits without track
SG::ReadHandleKeyArray< TrackCollection > m_RecTrackCollection_keys
const Trk::TrackParameters * getUnbiasedTrackParameters(const Trk::TrackParameters *, const Trk::MeasurementBase *)
Get Unbiased Track Parameters.
float m_minREndPrimary
If track has end vertex, this is min R of end vertex to be considered primary.
@ kN_spacepoints_processed
number of space points processed
This class provides an interface to generate or decode an identifier for the upper levels of the dete...
TrackSummary_v1 TrackSummary
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.