9#ifndef TRK_TRACKVALIDATIONNTUPLEWRITER_H
10#define TRK_TRACKVALIDATIONNTUPLEWRITER_H
14#include "GaudiKernel/ToolHandle.h"
68 std::vector<Trk::ValidationTrackTruthData>& truthData,
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
MC particle associated with a reco track + the quality of match.
provides the interface for determining truth jets (inside Tracking validation framework)
provides the interface for tools to select generated particles
provides the interface for tools which classify gen particles
ITruthToTrack is an interface to create Trk::TrackParameters from a HepMC::GenParticle.
std::vector< std::string > m_inputTrackCollection
name of the TrackCollection
bool m_useExternalEventLinkTree
if TVNW should make event tree itself or assume CBNT does
StatusCode writeTrackParticleData(unsigned int trackParticleColIndex)
method to write track particle data to Ntuple.
std::string m_ntupleDirName
jobOption: Ntuple directory name
StatusCode initialize()
standard Athena-Algorithm method
std::vector< unsigned int > m_nTrackTreeRecords
ToolHandle< Trk::IGenParticleSelector > m_genPartSelector
Tool handle to the Trk::IGenParticleSelector.
StatusCode finalize()
standard Athena-Algorithm method
std::vector< TTree * > m_trees
Pointer to the NTuple trees (one for each input track collection)
ToolHandleArray< Trk::ITrackValidationNtupleTool > m_ValidationNtupleTools
set of tools for writing Trk::Track into the Ntuple
std::string m_inputPrimaryVertexCollection
SG key of the input primary vertex collection (used by the track selector)
StatusCode execute()
standard Athena-Algorithm method
TTree * m_eventLinkTree
pointer to event-wise ntuple trees (one for all input track collections + truth)
bool m_doTruth
Switch to turn on / off truth.
StatusCode writeTrackData(unsigned int trackColIndex, std::vector< Trk::ValidationTrackTruthData > &truthData, const Trk::Vertex *primaryVertex=NULL)
< following methods and atributes are used in derived class TrigTrackValidationNtupleWriter Private m...
ToolHandleArray< Trk::ITrackTruthClassifier > m_trackTruthClassifierHandles
jobO: list of truth classifiers
ToolHandle< Trk::ITrackSelectorTool > m_trackSelector
Tool handle to the Trk::ITrackSelectorTool.
ToolHandle< Trk::IValidationNtupleTool > m_ValTrkParticleNtupleTool
Tool for writting Rec::TrackParticle into the Ntuple – OBSOLETE.
std::string m_McEventCollectionName
name of the McEventCollection
std::vector< const Trk::ITrackTruthClassifier * > m_trackTruthClassifiers
the truth classifiers
ToolHandle< Trk::ITruthNtupleTool > m_truthNtupleTool
ToolHandle< Trk::IJetTruthNtupleTool > m_jetTruthNtupleTool
std::vector< Trk::IEventPropertyNtupleTool * > m_eventPropertyNtupleTools
list of event property tools
ToolHandleArray< Trk::IEventPropertyNtupleTool > m_eventPropertyNtupleHandles
jobO: list of event property tools
ToolHandle< Trk::ITruthToTrack > m_truthToTrack
Tool handle to the Trk::TruthToTrack tool.
std::string m_ntupleFileName
jobOption: Ntuple file name
std::vector< std::string > m_trackTruthCollectionName
name of the TrackTruthCollection
~TrackValidationNtupleWriter()
Default Destructor.
HepMC::GenParticlePtr m_visibleParticleWithoutTruth
Switch to turn on/pff recording track particle trees into Ntuple.
std::vector< std::string > m_inputTrackParticleCollection
name of the TrackParticleCollection
ToolHandle< Trk::IGenParticleJetFinder > m_genJetFinder
Tool to find jets.
TrackValidationNtupleWriter(const std::string &name, ISvcLocator *pSvcLocator)
Standard Athena-Algorithm Constructor.
This class is a simplest representation of a vertex candidate.
GenParticle * GenParticlePtr
Ensure that the ATLAS eigen extensions are properly loaded.