ATLAS Offline Software
Loading...
Searching...
No Matches
JetTruthNtupleTool.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// JetTruthNtupleTool.h
7// Header file for JetTruthNtupleTool
9// (c) ATLAS Detector software
11// Wolfgang.Liebig@cern.ch
13
14#ifndef TRK_JETTRUTHNTUPLETOOL_H
15#define TRK_JETTRUTHNTUPLETOOL_H
16
18#include "GaudiKernel/ToolHandle.h"
21
23#include <vector>
24
25class TTree;
26
27namespace Trk {
28
29
36
38public:
39
40 // standard AlgToolmethods
41 JetTruthNtupleTool(const std::string&,const std::string&,const IInterface*);
43
44 // standard Athena methods
45 StatusCode initialize();
46 StatusCode finalize();
47
49 virtual StatusCode writeJetTruthData (const std::vector< Trk::GenParticleJet >&,
50 const int& );
51
52 virtual unsigned int getNumberOfTreeRecords() const;
53
54private:
55
56 // jobOptions
57 std::string m_ntupleTreeName;
58 std::string m_ntupleFileName;
59 std::vector<double> m_etaBins;
60
61 TTree* m_nt;
62
64
65 // ntuple variables
68
69 // truth jet information
70 std::vector<unsigned int>* m_genParticleLinkIndex;
71 std::vector<float>* m_mc_trackToJetAngle;
77
78 SG::ReadHandleKey<xAOD::EventInfo> m_evt {this, "EvtInfo", "EventInfo", "EventInfo name"};
79};
80
81
82} // end of namespace
83
84#endif // TRK_TRUTHNTUPLETOOL_H
85
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.
provides the interface for validation tools which write special information about truth particles int...
std::vector< double > m_etaBins
TTree * m_nt
Pointer to the NTuple tree.
virtual unsigned int getNumberOfTreeRecords() const
std::string m_ntupleFileName
jobOption: Ntuple file and dir name
SG::ReadHandleKey< xAOD::EventInfo > m_evt
virtual StatusCode writeJetTruthData(const std::vector< Trk::GenParticleJet > &, const int &)
fill ntuple data for a given vector of truth jets
StatusCode finalize()
finalize
JetTruthNtupleTool(const std::string &, const std::string &, const IInterface *)
std::vector< unsigned int > * m_genParticleLinkIndex
std::vector< float > * m_mc_trackToJetAngle
std::string m_ntupleTreeName
jobOption: Ntuple tree name
Ensure that the ATLAS eigen extensions are properly loaded.