ATLAS Offline Software
Loading...
Searching...
No Matches
ITruthNtupleTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
6// ITruthNtupleTool.h
7// Header file for interface of TruthNtupleTools
9// (c) ATLAS Detector software
11// Sebastian.Fleischmann -at- cern.ch
13
14#ifndef TRK_ITRUTHNTUPLETOOL_H
15#define TRK_ITRUTHNTUPLETOOL_H
16
17#include "GaudiKernel/IAlgTool.h"
18#include <vector>
19
21//#include "TrkValInterfaces/ITrackTruthClassifier.h"
22
24namespace Trk {
26
27static const InterfaceID IID_ITruthNtupleTool("ITruthNtupleTool",1,0);
28
35
37public:
40 std::vector< std::vector<unsigned int> > truthToTrackIndices;
41 std::vector< std::vector<float> > truthToTrackMatchingProbabilities;
42 unsigned int truthToJetIndex;
43 std::vector<unsigned int> classifications;
44
53};
54
55class ITruthNtupleTool : virtual public IAlgTool {
56public:
58 static const InterfaceID& interfaceID();
59
61 virtual StatusCode writeTruthData (
62 const std::vector< Trk::ValidationTrackTruthData >& ) = 0;
63
64 virtual unsigned int getNumberOfTreeRecords() const = 0;
65
66 virtual StatusCode initBranches(const std::vector<const Trk::ITrackTruthClassifier*>& classifiers,
67 bool,
68 const std::vector<std::string>& trackCollectionNames) = 0;
69};
70
71inline const InterfaceID& Trk::ITruthNtupleTool::interfaceID() {
73}
74
75} // end of namespace
76
77#endif // TRK_ITRUTHNTUPLETOOL_H
provides the interface for tools which classify gen particles
provides the interface for validation tools which write special information about truth particles int...
static const InterfaceID & interfaceID()
Interface ID, declared here, and defined below.
virtual unsigned int getNumberOfTreeRecords() const =0
virtual StatusCode writeTruthData(const std::vector< Trk::ValidationTrackTruthData > &)=0
fill ntuple data for a given vector of truth particle
virtual StatusCode initBranches(const std::vector< const Trk::ITrackTruthClassifier * > &classifiers, bool, const std::vector< std::string > &trackCollectionNames)=0
const Trk::TrackParameters * truthPerigee
std::vector< std::vector< unsigned int > > truthToTrackIndices
std::vector< unsigned int > classifications
HepMC::ConstGenParticlePtr genParticle
std::vector< std::vector< float > > truthToTrackMatchingProbabilities
const GenParticle * ConstGenParticlePtr
Definition GenParticle.h:38
Ensure that the ATLAS eigen extensions are properly loaded.
static const InterfaceID IID_ITruthNtupleTool("ITruthNtupleTool", 1, 0)
ParametersBase< TrackParametersDim, Charged > TrackParameters