ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking
TrkValidation
TrkValTools
TrkValTools
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
17
#include "
AthenaBaseComps/AthAlgTool.h
"
18
19
#include "GaudiKernel/ToolHandle.h"
20
#include "
TrkValInterfaces/IEventPropertyNtupleTool.h
"
21
#include <vector>
27
28
namespace
Trk
{
29
30
class
EventPropertyNtupleTool
:
virtual
public
IEventPropertyNtupleTool
,
public
AthAlgTool
{
31
public
:
32
// standard AlgToolmethods
33
EventPropertyNtupleTool
(
const
std::string&,
const
std::string&,
const
IInterface*);
34
~EventPropertyNtupleTool
();
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 ---
75
int
m_runNumber
;
76
int
m_eventNumber
;
77
float
m_tdc_phase
;
78
79
// more information about level1 trigger 2008 under Atlas.LevelOneCentralTriggerData
80
int
m_trigLvl1Type
;
81
std::vector<unsigned int>*
m_trigLvl1TAV
;
82
int
m_lumiBlock
;
83
int
m_timeStamp
;
84
int
m_bCID
;
85
};
86
}
87
88
89
#endif
// TRK_EVENTPROPERTYNTUPLETOOL_H
AthAlgTool.h
IEventPropertyNtupleTool.h
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
Trk::EventPropertyNtupleTool::m_trigLvl1Type
int m_trigLvl1Type
level 1 trigger type bitted word (2008: equivalent with stream) UNIT:8-bit
Definition
EventPropertyNtupleTool.h:80
Trk::EventPropertyNtupleTool::addNtupleItems
virtual StatusCode addNtupleItems(TTree *, const std::string &)
add branches to the tree Should be called once dunring the initialisation phase by the calling algori...
Definition
EventPropertyNtupleTool.cxx:66
Trk::EventPropertyNtupleTool::fillEventData
virtual StatusCode fillEventData()
calculate event-wide data and copy into TTree branches, but don't write the record yet.
Definition
EventPropertyNtupleTool.cxx:85
Trk::EventPropertyNtupleTool::EventPropertyNtupleTool
EventPropertyNtupleTool(const std::string &, const std::string &, const IInterface *)
Definition
EventPropertyNtupleTool.cxx:26
Trk::EventPropertyNtupleTool::m_eventNumber
int m_eventNumber
event number
Definition
EventPropertyNtupleTool.h:76
Trk::EventPropertyNtupleTool::registerTrackCollections
virtual void registerTrackCollections(const std::vector< std::string > &, bool)
method not active in this tool
Definition
EventPropertyNtupleTool.h:41
Trk::EventPropertyNtupleTool::~EventPropertyNtupleTool
~EventPropertyNtupleTool()
Trk::EventPropertyNtupleTool::m_trigLvl1TAV
std::vector< unsigned int > * m_trigLvl1TAV
level 1 trigger-after-veto info (256 bits in vector) UNIT:bitted
Definition
EventPropertyNtupleTool.h:81
Trk::EventPropertyNtupleTool::setTrackTreeIndices
virtual void setTrackTreeIndices(unsigned int, int, int)
method not active in this tool
Definition
EventPropertyNtupleTool.h:43
Trk::EventPropertyNtupleTool::isInDetTrackTrigLinkTool
virtual bool isInDetTrackTrigLinkTool() const
is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTo...
Definition
EventPropertyNtupleTool.h:65
Trk::EventPropertyNtupleTool::m_tdc_phase
float m_tdc_phase
event phase in cosmic events (optional) UNIT:nsec
Definition
EventPropertyNtupleTool.h:77
Trk::EventPropertyNtupleTool::isTrkParticleTrigLinkTool
virtual bool isTrkParticleTrigLinkTool() const
is True if instance is Tool which links events property to Rec::TrkParticle recieved useing TrigDecTo...
Definition
EventPropertyNtupleTool.h:63
Trk::EventPropertyNtupleTool::m_doTrtPhase
bool m_doTrtPhase
Definition
EventPropertyNtupleTool.h:71
Trk::EventPropertyNtupleTool::m_lumiBlock
int m_lumiBlock
lumi block number of current event
Definition
EventPropertyNtupleTool.h:82
Trk::EventPropertyNtupleTool::m_doTriggerInfo
bool m_doTriggerInfo
Definition
EventPropertyNtupleTool.h:70
Trk::EventPropertyNtupleTool::setGenParticleTreeIndices
virtual void setGenParticleTreeIndices(int, int)
method not active in this tool
Definition
EventPropertyNtupleTool.h:45
Trk::EventPropertyNtupleTool::m_runNumber
int m_runNumber
run number this event belongs to
Definition
EventPropertyNtupleTool.h:75
Trk::EventPropertyNtupleTool::m_timeStamp
int m_timeStamp
time stamp of current event
Definition
EventPropertyNtupleTool.h:83
Trk::EventPropertyNtupleTool::m_comTimeName
std::string m_comTimeName
Definition
EventPropertyNtupleTool.h:72
Trk::EventPropertyNtupleTool::resetVariables
virtual StatusCode resetVariables()
reset ntuple variables (mainly for vectors which need to be cleared)
Definition
EventPropertyNtupleTool.cxx:139
Trk::EventPropertyNtupleTool::isTrkParticleLinkTool
virtual bool isTrkParticleLinkTool() const
is True if instance is Tool which links events property to Rec::TrkParticle
Definition
EventPropertyNtupleTool.h:61
Trk::EventPropertyNtupleTool::isEvtPropertyTool
virtual bool isEvtPropertyTool() const
is True if instance is EventPropertyTool
Definition
EventPropertyNtupleTool.h:67
Trk::EventPropertyNtupleTool::finalize
StatusCode finalize()
Definition
EventPropertyNtupleTool.cxx:59
Trk::EventPropertyNtupleTool::isTrackLinkTool
virtual bool isTrackLinkTool() const
is True if instance is Tool which links events property to Trk::Tracks
Definition
EventPropertyNtupleTool.h:59
Trk::EventPropertyNtupleTool::initialize
StatusCode initialize()
Definition
EventPropertyNtupleTool.cxx:53
Trk::EventPropertyNtupleTool::m_bCID
int m_bCID
bunch crossing ID for current event
Definition
EventPropertyNtupleTool.h:84
Trk::IEventPropertyNtupleTool
provides the interface for validation tools which write special information about the whole event int...
Definition
IEventPropertyNtupleTool.h:34
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.14.0