ATLAS Offline Software
Loading...
Searching...
No Matches
DirectTrackNtupleWriterTool.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// DirectTrackNtupleWriterTool.h
7// Header file for DirectTrackNtupleWriterTool
9// (c) ATLAS Detector software
11// Sebastian.Fleischmann@cern.ch
13
14#ifndef TRK_DIRECTTRACKVALIDATIONNTUPLETOOL_H
15#define TRK_DIRECTTRACKVALIDATIONNTUPLETOOL_H
16
17
19#include "GaudiKernel/ToolHandle.h"
21
22class TTree;
23
24namespace Trk {
25
26class IExtrapolator;
28class Track;
29
30
31
48
50public:
51
52 // standard AlgToolmethods
53 DirectTrackNtupleWriterTool(const std::string&,const std::string&,const IInterface*);
55
56 // standard Athena methods
57 StatusCode initialize();
58 StatusCode finalize();
59
61 virtual StatusCode writeTrackData (
62 const Trk::Track&,
63 const int iterationIndex,
64 const unsigned int fitStatCode );
65
67 virtual StatusCode writeTrackParticleData ( const Trk::TrackParticleBase& );
68
69
70private:
72 StatusCode writeRecord(TTree* tree);
73
74 ToolHandleArray<Trk::ITrackValidationNtupleTool> m_ValidationNtupleTools;
75 ToolHandle<Trk::IExtrapolator> m_extrapolatorHandle;
76 std::string m_ntupleFileName;
77 std::string m_ntupleDirName;
78 std::string m_ntupleTreeName;
79 TTree* m_nt;
80 bool m_doTruth;
81};
82
83
84} // end of namespace
85
86#endif // TRK_DIRECTTRACKVALIDATIONNTUPLETOOL_H
87
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
DirectTrackNtupleWriterTool(const std::string &, const std::string &, const IInterface *)
StatusCode writeRecord(TTree *tree)
write the filled data into the ntuple
virtual StatusCode writeTrackData(const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode)
fill AND write ntuple data of a given track
std::string m_ntupleFileName
jobOption: Ntuple file name
bool m_doTruth
switch to turn truth on/off
std::string m_ntupleTreeName
jobOption: Ntuple tree name
ToolHandle< Trk::IExtrapolator > m_extrapolatorHandle
extrapolator, in case tracks do not have Perigee
virtual StatusCode writeTrackParticleData(const Trk::TrackParticleBase &)
fill AND write ntuple data of a given track particle
ToolHandleArray< Trk::ITrackValidationNtupleTool > m_ValidationNtupleTools
set of tools for writting Trk::Track into the Ntuple
TTree * m_nt
Pointer to the NTuple tree.
std::string m_ntupleDirName
jobOption: Ntuple directory name
Interface to set up and write a TrkValidation ntuple so that it can be called for validation action '...
Interface class for the extrapolation AlgTool, it inherits from IAlgTool Detailed information about p...
provides the interface for validation tools which write special information about generated tracks in...
Ensure that the ATLAS eigen extensions are properly loaded.
TChain * tree