ATLAS Offline Software
Loading...
Searching...
No Matches
IEventPropertyNtupleTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
6// IEventPropertyNtupleTool.h
7// Header file for interface of EventPropertyNtupleTool
9// (c) ATLAS Detector software
11// Wolfgang.Liebig -ad- cern.ch
13
14#ifndef TRK_IEVENTPROPERTYNTUPLETOOL_H
15#define TRK_IEVENTPROPERTYNTUPLETOOL_H
16
17#include "GaudiKernel/IAlgTool.h"
18
19class TTree;
20
21namespace Trk {
22
23static const InterfaceID IID_IEventPropertyNtupleTool("IEventPropertyNtupleTool",1,0);
24
33
34class IEventPropertyNtupleTool : virtual public IAlgTool {
35 public:
37 static const InterfaceID& interfaceID();
38
40 virtual void registerTrackCollections ( const std::vector<std::string> & collections,
41 bool doTruth) = 0;
42
43 /*
44 virtual void registerTrackParticleCollections ( std::vector<std::string>,
45 bool ) const = 0; */
46
51 virtual StatusCode addNtupleItems( TTree* tree, const std::string & prefix="" ) = 0;
52
54 virtual void setTrackTreeIndices( unsigned int, int, int) = 0;
55
57 virtual void setGenParticleTreeIndices( int, int) = 0;
58
60 virtual StatusCode fillEventData ( ) = 0;
61
63 virtual StatusCode resetVariables ( ) = 0;
64
66 virtual bool isTrackLinkTool( ) const = 0;
68 virtual bool isTrkParticleLinkTool( ) const = 0;
70 virtual bool isTrkParticleTrigLinkTool( ) const = 0;
72 virtual bool isInDetTrackTrigLinkTool( ) const = 0;
74 virtual bool isEvtPropertyTool( ) const = 0;
75};
76
80
81} // end of namespace
82
83#endif // TRK_IEVENTPROPERTYNTUPLETOOL_H
provides the interface for validation tools which write special information about the whole event int...
virtual StatusCode addNtupleItems(TTree *tree, const std::string &prefix="")=0
define tree entries on external tree
virtual bool isTrackLinkTool() const =0
is True if instance is Tool which links events property to Trk::Tracks
virtual bool isTrkParticleTrigLinkTool() const =0
is True if instance is Tool which links events property to Rec::TrkParticle recieved using TrigDecToo...
virtual StatusCode resetVariables()=0
reset ntuple variables (mainly for vectors which need to be cleared)
virtual void setGenParticleTreeIndices(int, int)=0
transfer of truth-tree indices into event tree variables
virtual bool isEvtPropertyTool() const =0
is True if instance is EventPropertyTool
virtual void setTrackTreeIndices(unsigned int, int, int)=0
transfer of track-tree indices into event tree variables, to allow delayed writing by TV or CBNT
virtual bool isTrkParticleLinkTool() const =0
is True if instance is Tool which links events property to Rec::TrkParticle
virtual StatusCode fillEventData()=0
fill ntuple data from calculations, storegate etc but DO NOT WRITE Tree record
static const InterfaceID & interfaceID()
Interface ID, declared here, and defined below*‍/.
virtual bool isInDetTrackTrigLinkTool() const =0
is True if instance is Tool which links events property to InDetTrack recieved using TrigDecTool
virtual void registerTrackCollections(const std::vector< std::string > &collections, bool doTruth)=0
make active track collections known to tool, such that a delayed addition to tree is possible
Ensure that the ATLAS eigen extensions are properly loaded.
static const InterfaceID IID_IEventPropertyNtupleTool("IEventPropertyNtupleTool", 1, 0)
TChain * tree