ATLAS Offline Software
IEventPropertyNtupleTool.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 // 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 
19 class TTree;
20 
21 namespace Trk {
22 
23 static const InterfaceID IID_IEventPropertyNtupleTool("IEventPropertyNtupleTool",1,0);
24 
34 class IEventPropertyNtupleTool : virtual public IAlgTool {
35  public:
37  static const InterfaceID& interfaceID();
38 
40  virtual void registerTrackCollections ( std::vector<std::string>,
41  bool ) = 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 
77 inline const InterfaceID& Trk::IEventPropertyNtupleTool::interfaceID() {
78  return IID_IEventPropertyNtupleTool;
79 }
80 
81 } // end of namespace
82 
83 #endif // TRK_IEVENTPROPERTYNTUPLETOOL_H
Trk::IEventPropertyNtupleTool::resetVariables
virtual StatusCode resetVariables()=0
reset ntuple variables (mainly for vectors which need to be cleared)
Trk::IEventPropertyNtupleTool::isTrackLinkTool
virtual bool isTrackLinkTool() const =0
is True if instance is Tool which links events property to Trk::Tracks
Trk::IEventPropertyNtupleTool::addNtupleItems
virtual StatusCode addNtupleItems(TTree *tree, const std::string prefix="")=0
define tree entries on external tree
Trk::IEventPropertyNtupleTool::isTrkParticleLinkTool
virtual bool isTrkParticleLinkTool() const =0
is True if instance is Tool which links events property to Rec::TrkParticle
tree
TChain * tree
Definition: tile_monitor.h:30
Trk::IEventPropertyNtupleTool::fillEventData
virtual StatusCode fillEventData()=0
fill ntuple data from calculations, storegate etc but DO NOT WRITE Tree record
Trk::IEventPropertyNtupleTool::setGenParticleTreeIndices
virtual void setGenParticleTreeIndices(int, int)=0
transfer of truth-tree indices into event tree variables
Trk::IEventPropertyNtupleTool::isTrkParticleTrigLinkTool
virtual bool isTrkParticleTrigLinkTool() const =0
is True if instance is Tool which links events property to Rec::TrkParticle recieved using TrigDecToo...
Trk::IEventPropertyNtupleTool
Definition: IEventPropertyNtupleTool.h:34
Trk::IEventPropertyNtupleTool::registerTrackCollections
virtual void registerTrackCollections(std::vector< std::string >, bool)=0
make active track collections known to tool, such that a delayed addition to tree is possible
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::IEventPropertyNtupleTool::setTrackTreeIndices
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
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::IEventPropertyNtupleTool::isInDetTrackTrigLinkTool
virtual bool isInDetTrackTrigLinkTool() const =0
is True if instance is Tool which links events property to InDetTrack recieved using TrigDecTool
Trk::IEventPropertyNtupleTool::interfaceID
static const InterfaceID & interfaceID()
Interface ID, declared here, and defined below*‍/.
Definition: IEventPropertyNtupleTool.h:77
Trk::IEventPropertyNtupleTool::isEvtPropertyTool
virtual bool isEvtPropertyTool() const =0
is True if instance is EventPropertyTool