ATLAS Offline Software
Loading...
Searching...
No Matches
EventPropertyNtupleTool.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// EventPropertyNtupleTool.h
7// Header file for EventPropertyNtupleTool
9// (c) ATLAS Detector software
11// Wolfgang.Liebig -at- cern.ch
13
14#ifndef TRK_EVENTPROPERTYNTUPLETOOL_H
15#define TRK_EVENTPROPERTYNTUPLETOOL_H
16
18
19#include "GaudiKernel/ToolHandle.h"
21#include <vector>
27
28namespace Trk {
29
31 public:
32 // standard AlgToolmethods
33 EventPropertyNtupleTool(const std::string&,const std::string&,const IInterface*);
35
36 // standard Athena methods
37 StatusCode initialize();
38 StatusCode finalize();
39
41 virtual void registerTrackCollections( const std::vector<std::string>&, bool){};
43 virtual void setTrackTreeIndices( unsigned int, int, int){};
45 virtual void setGenParticleTreeIndices( int, int){};
46
50 virtual StatusCode addNtupleItems ( TTree*, const std::string &);
51
53 virtual StatusCode fillEventData ( );
54
56 virtual StatusCode resetVariables ( );
57
59 inline virtual bool isTrackLinkTool( ) const{ return false;}
61 inline virtual bool isTrkParticleLinkTool( ) const{return false;}
63 inline virtual bool isTrkParticleTrigLinkTool( ) const{return false;}
65 inline virtual bool isInDetTrackTrigLinkTool( ) const{return false;}
67 inline virtual bool isEvtPropertyTool( ) const {return true;}
68
69 private:
70 bool m_doTriggerInfo; //<! job option toggling if to fill trigger bits
71 bool m_doTrtPhase; //<! job option toggling if to fill TRT phase (cosmics)
72 std::string m_comTimeName;
73
74 // --- ntuple items ---
78
79 // more information about level1 trigger 2008 under Atlas.LevelOneCentralTriggerData
81 std::vector<unsigned int>* m_trigLvl1TAV;
84 int m_bCID;
85 };
86}
87
88
89#endif // TRK_EVENTPROPERTYNTUPLETOOL_H
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
int m_trigLvl1Type
level 1 trigger type bitted word (2008: equivalent with stream) UNIT:8-bit
virtual StatusCode addNtupleItems(TTree *, const std::string &)
add branches to the tree Should be called once dunring the initialisation phase by the calling algori...
virtual StatusCode fillEventData()
calculate event-wide data and copy into TTree branches, but don't write the record yet.
EventPropertyNtupleTool(const std::string &, const std::string &, const IInterface *)
virtual void registerTrackCollections(const std::vector< std::string > &, bool)
method not active in this tool
std::vector< unsigned int > * m_trigLvl1TAV
level 1 trigger-after-veto info (256 bits in vector) UNIT:bitted
virtual void setTrackTreeIndices(unsigned int, int, int)
method not active in this tool
virtual bool isInDetTrackTrigLinkTool() const
is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTo...
float m_tdc_phase
event phase in cosmic events (optional) UNIT:nsec
virtual bool isTrkParticleTrigLinkTool() const
is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTo...
int m_lumiBlock
lumi block number of current event
virtual void setGenParticleTreeIndices(int, int)
method not active in this tool
int m_runNumber
run number this event belongs to
int m_timeStamp
time stamp of current event
virtual StatusCode resetVariables()
reset ntuple variables (mainly for vectors which need to be cleared)
virtual bool isTrkParticleLinkTool() const
is True if instance is Tool which links events property to Rec::TrkParticle
virtual bool isEvtPropertyTool() const
is True if instance is EventPropertyTool
virtual bool isTrackLinkTool() const
is True if instance is Tool which links events property to Trk::Tracks
int m_bCID
bunch crossing ID for current event
provides the interface for validation tools which write special information about the whole event int...
Ensure that the ATLAS eigen extensions are properly loaded.