ATLAS Offline Software
Loading...
Searching...
No Matches
ITrackValidationNtupleTool.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// IValidationNtupleTool.h
7// Header file for interface of ValidationNtupleTools
9// (c) ATLAS Detector software
11// Sebastian.Fleischmann@cern.ch
13
14#ifndef TRK_ITRACKVALIDATIONNTUPLETOOL_H
15#define TRK_ITRACKVALIDATIONNTUPLETOOL_H
16
17#include "GaudiKernel/IAlgTool.h"
19
20class TrackTruth;
21class TTree;
23
24namespace Trk {
25static const InterfaceID IID_ITrackValidationNtupleTool("ITrackValidationNtupleTool",1,0);
26
28class MeasurementBase;
29class Track;
31
32
37
38class ITrackValidationNtupleTool : virtual public IAlgTool {
39public:
41 static const InterfaceID& interfaceID();
42
46 virtual StatusCode addNtupleItems (
47 TTree* tree ) = 0;
48
51 virtual StatusCode fillTrackData (
52 const Trk::Track&,
53 const int iterationIndex,
54 const unsigned int fitStatCode = 0) = 0;
55
58 virtual StatusCode fillTrackParticleData (
59 const Trk::TrackParticleBase&) = 0;
60
61 virtual StatusCode fillTrackTruthData ( const Trk::TrackParameters*&,
62 const TrackTruth&,
63 const int truthIndex = -1 ) = 0;
64
66 virtual void resetVariables( ) = 0;
67};
68
72
73} // end of namespace
74
75#endif // TRK_ITRACKVALIDATIONNTUPLETOOL_H
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...
virtual StatusCode fillTrackTruthData(const Trk::TrackParameters *&, const TrackTruth &, const int truthIndex=-1)=0
static const InterfaceID & interfaceID()
Interface ID, declared here, and defined below.
virtual void resetVariables()=0
reset the variables after writing the record to disk ntuple
virtual StatusCode fillTrackData(const Trk::Track &, const int iterationIndex, const unsigned int fitStatCode=0)=0
fill ntuple data of a given track without writing the record.
virtual StatusCode fillTrackParticleData(const Trk::TrackParticleBase &)=0
fill ntuple data of a given track particle without writing the record.
virtual StatusCode addNtupleItems(TTree *tree)=0
add branches to the tree Should be called once (per track collection and tree) dunring the initialisa...
This class is the pure abstract base class for all fittable tracking measurements.
represents the track state (measurement, material, fit parameters and quality) at a surface.
Ensure that the ATLAS eigen extensions are properly loaded.
static const InterfaceID IID_ITrackValidationNtupleTool("ITrackValidationNtupleTool", 1, 0)
ParametersBase< TrackParametersDim, Charged > TrackParameters
TChain * tree