ATLAS Offline Software
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 
20 class TrackTruth;
21 class TTree;
22 class HepMcParticleLink;
23 
24 namespace Trk {
25 static const InterfaceID IID_ITrackValidationNtupleTool("ITrackValidationNtupleTool",1,0);
26 
27 class TrackParticleBase;
28 class MeasurementBase;
29 class Track;
30 class TrackStateOnSurface;
31 
32 
38 class ITrackValidationNtupleTool : virtual public IAlgTool {
39 public:
41  static const InterfaceID& interfaceID();
42 
47  TTree* tree ) = 0;
48 
52  const Trk::Track&,
53  const int iterationIndex,
54  const unsigned int fitStatCode = 0) = 0;
55 
59  const Trk::TrackParticleBase&) = 0;
60 
62  const TrackTruth&,
63  const int truthIndex = -1 ) = 0;
64 
66  virtual void resetVariables( ) = 0;
67 };
68 
69 inline const InterfaceID& Trk::ITrackValidationNtupleTool::interfaceID() {
70  return IID_ITrackValidationNtupleTool;
71 }
72 
73 } // end of namespace
74 
75 #endif // TRK_ITRACKVALIDATIONNTUPLETOOL_H
Trk::ITrackValidationNtupleTool::fillTrackTruthData
virtual StatusCode fillTrackTruthData(const Trk::TrackParameters *&, const TrackTruth &, const int truthIndex=-1)=0
TrackParameters.h
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::ITrackValidationNtupleTool::fillTrackParticleData
virtual StatusCode fillTrackParticleData(const Trk::TrackParticleBase &)=0
fill ntuple data of a given track particle without writing the record.
Trk::ITrackValidationNtupleTool
Definition: ITrackValidationNtupleTool.h:38
Trk::TrackParticleBase
Definition: TrackParticleBase.h:41
Trk::ITrackValidationNtupleTool::fillTrackData
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.
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::ITrackValidationNtupleTool::addNtupleItems
virtual StatusCode addNtupleItems(TTree *tree)=0
add branches to the tree Should be called once (per track collection and tree) dunring the initialisa...
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
TrackTruth
MC particle associated with a reco track + the quality of match.
Definition: TrackTruth.h:14
Track
Definition: TriggerChamberClusterOnTrackCreator.h:21
Trk::ITrackValidationNtupleTool::resetVariables
virtual void resetVariables()=0
reset the variables after writing the record to disk ntuple
Trk::ITrackValidationNtupleTool::interfaceID
static const InterfaceID & interfaceID()
Interface ID, declared here, and defined below.
Definition: ITrackValidationNtupleTool.h:69