ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkValidation
TrkValTools
src
TrackInformationNtupleTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// BasicValidationNtupleTool.h
7
// Header file for BasicValidationNtupleTool
9
// (c) ATLAS Detector software
11
// Sebastian.Fleischmann -at- cern.ch, Wolfgang.Liebig -at- cern.ch
13
#ifndef TRK_TRACKINFONTUPLETOOL_H
14
#define TRK_TRACKINFONTUPLETOOL_H
15
16
#include "
AthenaBaseComps/AthAlgTool.h
"
17
#include "
TrkValInterfaces/ITrackValidationNtupleTool.h
"
18
#include "
StoreGate/ReadHandleKey.h
"
19
#include "
xAODEventInfo/EventInfo.h
"
20
21
namespace
Trk
{
22
23
class
TrackInfo
;
24
36
37
class
TrackInformationNtupleTool
:
virtual
public
Trk::ITrackValidationNtupleTool
,
public
AthAlgTool
{
38
public
:
39
40
// standard AlgToolmethods
41
TrackInformationNtupleTool
(
const
std::string&,
const
std::string&,
const
IInterface*);
42
~TrackInformationNtupleTool
();
43
44
// standard Athena methods
45
StatusCode
initialize
();
46
StatusCode
finalize
();
47
51
virtual
StatusCode
addNtupleItems
( TTree*
tree
);
52
55
virtual
StatusCode
fillTrackData
(
56
const
Trk::Track
&,
57
const
int
iterationIndex,
58
const
unsigned
int
fitStatCode );
59
62
virtual
StatusCode
fillTrackParticleData
(
const
Trk::TrackParticleBase
& );
63
65
virtual
StatusCode
fillTrackTruthData
(
const
TrackParameters
*&,
66
const
TrackTruth
&,
67
const
int
);
68
70
virtual
void
resetVariables
( );
71
72
private
:
73
74
// attempts to assign a clear seed based on the hierarchy of pattern algs
75
int
getSeed
(
const
Trk::TrackInfo
& info)
const
;
76
77
int
m_TrackIDcounter
;
78
unsigned
int
m_lastEventNumber
;
79
80
// --- ntuple variables, doxygen comments are also basis for wiki texts ---
81
int
m_runNumber
;
82
int
m_eventNumber
;
83
int
m_TrackID
;
84
int
m_iterIndex
;
85
int
m_fitStatusCode
;
86
int
m_trackFitAuthor
;
87
int
m_trackSeedAuthor
;
88
int
m_particleHypothesis
;
89
float
m_Rec_chi2overNdof
;
90
int
m_ndof
;
91
int
m_nHits
;
92
93
SG::ReadHandleKey<xAOD::EventInfo>
m_evt
{
this
,
"EvtInfo"
,
"EventInfo"
,
"EventInfo name"
};
94
};
95
96
97
}
// end of namespace
98
99
inline
StatusCode
Trk::TrackInformationNtupleTool::fillTrackTruthData
(
const
TrackParameters
*&,
100
const
TrackTruth
&,
101
const
int
)
102
{
return
StatusCode::SUCCESS;}
103
104
105
#endif
// TRK_TRACKINFONTUPLETOOL_H
AthAlgTool.h
ITrackValidationNtupleTool.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TrackTruth
MC particle associated with a reco track + the quality of match.
Definition
TrackTruth.h:14
Trk::ITrackValidationNtupleTool
provides the interface for validation tools which write special information about generated tracks in...
Definition
ITrackValidationNtupleTool.h:38
Trk::TrackInfo
Contains information about the 'fitter' of this track.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/TrackInfo.h:32
Trk::TrackInformationNtupleTool::m_nHits
int m_nHits
number of measurements on the track (including outliers)
Definition
TrackInformationNtupleTool.h:91
Trk::TrackInformationNtupleTool::m_eventNumber
int m_eventNumber
event number the track belongs to
Definition
TrackInformationNtupleTool.h:82
Trk::TrackInformationNtupleTool::fillTrackData
virtual StatusCode fillTrackData(const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode)
fill ntuple data of a given track without writing the record.
Definition
TrackInformationNtupleTool.cxx:95
Trk::TrackInformationNtupleTool::m_fitStatusCode
int m_fitStatusCode
return status code of the track fitter (for fit debugging)
Definition
TrackInformationNtupleTool.h:85
Trk::TrackInformationNtupleTool::TrackInformationNtupleTool
TrackInformationNtupleTool(const std::string &, const std::string &, const IInterface *)
Definition
TrackInformationNtupleTool.cxx:25
Trk::TrackInformationNtupleTool::fillTrackTruthData
virtual StatusCode fillTrackTruthData(const TrackParameters *&, const TrackTruth &, const int)
fill data about the truth match (score, parameter-pulls etc)
Definition
TrackInformationNtupleTool.h:99
Trk::TrackInformationNtupleTool::m_lastEventNumber
unsigned int m_lastEventNumber
Definition
TrackInformationNtupleTool.h:78
Trk::TrackInformationNtupleTool::m_trackSeedAuthor
int m_trackSeedAuthor
author (main seed finder) of the current track.
Definition
TrackInformationNtupleTool.h:87
Trk::TrackInformationNtupleTool::m_TrackID
int m_TrackID
number of the track within the current event
Definition
TrackInformationNtupleTool.h:83
Trk::TrackInformationNtupleTool::m_iterIndex
int m_iterIndex
iteration index of the track (for DAF & internal call, EDM tracks always 0)
Definition
TrackInformationNtupleTool.h:84
Trk::TrackInformationNtupleTool::m_ndof
int m_ndof
number of degrees of freedom of track fit
Definition
TrackInformationNtupleTool.h:90
Trk::TrackInformationNtupleTool::resetVariables
virtual void resetVariables()
reset the variables after writing the record to disk ntuple
Definition
TrackInformationNtupleTool.cxx:226
Trk::TrackInformationNtupleTool::m_TrackIDcounter
int m_TrackIDcounter
Definition
TrackInformationNtupleTool.h:77
Trk::TrackInformationNtupleTool::initialize
StatusCode initialize()
Definition
TrackInformationNtupleTool.cxx:55
Trk::TrackInformationNtupleTool::m_particleHypothesis
int m_particleHypothesis
particle hypothesis with which track was fitted
Definition
TrackInformationNtupleTool.h:88
Trk::TrackInformationNtupleTool::m_Rec_chi2overNdof
float m_Rec_chi2overNdof
chi2 / n.d.o.f of reconstructed track
Definition
TrackInformationNtupleTool.h:89
Trk::TrackInformationNtupleTool::fillTrackParticleData
virtual StatusCode fillTrackParticleData(const Trk::TrackParticleBase &)
fill ntuple data of a given TrackParticle without writing the record.
Definition
TrackInformationNtupleTool.cxx:170
Trk::TrackInformationNtupleTool::m_evt
SG::ReadHandleKey< xAOD::EventInfo > m_evt
Definition
TrackInformationNtupleTool.h:93
Trk::TrackInformationNtupleTool::m_runNumber
int m_runNumber
run number the track belongs to
Definition
TrackInformationNtupleTool.h:81
Trk::TrackInformationNtupleTool::~TrackInformationNtupleTool
~TrackInformationNtupleTool()
Trk::TrackInformationNtupleTool::addNtupleItems
virtual StatusCode addNtupleItems(TTree *tree)
add branches to the tree Should be called once (per track collection and tree) dunring the initialisa...
Definition
TrackInformationNtupleTool.cxx:70
Trk::TrackInformationNtupleTool::m_trackFitAuthor
int m_trackFitAuthor
author (fitter) of the current track
Definition
TrackInformationNtupleTool.h:86
Trk::TrackInformationNtupleTool::finalize
StatusCode finalize()
Definition
TrackInformationNtupleTool.cxx:64
Trk::TrackInformationNtupleTool::getSeed
int getSeed(const Trk::TrackInfo &info) const
Definition
TrackInformationNtupleTool.cxx:232
Trk::TrackParticleBase
Definition
TrackParticleBase.h:41
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
tree
TChain * tree
Definition
tile_monitor.h:30
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0