ATLAS Offline Software
Loading...
Searching...
No Matches
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
20
21namespace Trk {
22
23class TrackInfo;
24
36
38public:
39
40 // standard AlgToolmethods
41 TrackInformationNtupleTool(const std::string&,const std::string&,const IInterface*);
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
72private:
73
74 // attempts to assign a clear seed based on the hierarchy of pattern algs
75 int getSeed(const Trk::TrackInfo& info) const;
76
78 unsigned int m_lastEventNumber;
79
80 // --- ntuple variables, doxygen comments are also basis for wiki texts ---
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
100 const TrackTruth&,
101 const int )
102{return StatusCode::SUCCESS;}
103
104
105#endif // TRK_TRACKINFONTUPLETOOL_H
Property holding a SG store/key/clid from which a ReadHandle is made.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Property holding a SG store/key/clid from which a ReadHandle is made.
MC particle associated with a reco track + the quality of match.
Definition TrackTruth.h:14
provides the interface for validation tools which write special information about generated tracks in...
Contains information about the 'fitter' of this track.
int m_nHits
number of measurements on the track (including outliers)
int m_eventNumber
event number the track belongs to
virtual StatusCode fillTrackData(const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode)
fill ntuple data of a given track without writing the record.
int m_fitStatusCode
return status code of the track fitter (for fit debugging)
TrackInformationNtupleTool(const std::string &, const std::string &, const IInterface *)
virtual StatusCode fillTrackTruthData(const TrackParameters *&, const TrackTruth &, const int)
fill data about the truth match (score, parameter-pulls etc)
int m_trackSeedAuthor
author (main seed finder) of the current track.
int m_TrackID
number of the track within the current event
int m_iterIndex
iteration index of the track (for DAF & internal call, EDM tracks always 0)
int m_ndof
number of degrees of freedom of track fit
virtual void resetVariables()
reset the variables after writing the record to disk ntuple
int m_particleHypothesis
particle hypothesis with which track was fitted
float m_Rec_chi2overNdof
chi2 / n.d.o.f of reconstructed track
virtual StatusCode fillTrackParticleData(const Trk::TrackParticleBase &)
fill ntuple data of a given TrackParticle without writing the record.
SG::ReadHandleKey< xAOD::EventInfo > m_evt
int m_runNumber
run number the track belongs to
virtual StatusCode addNtupleItems(TTree *tree)
add branches to the tree Should be called once (per track collection and tree) dunring the initialisa...
int m_trackFitAuthor
author (fitter) of the current track
int getSeed(const Trk::TrackInfo &info) const
Ensure that the ATLAS eigen extensions are properly loaded.
ParametersBase< TrackParametersDim, Charged > TrackParameters
TChain * tree