ATLAS Offline Software
Trigger
EFTracking
FPGATrackSim
FPGATrackSimInput
src
FPGATrackSimDumpOutputStatAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef FPGATrackSim_DUMPOUTPUTSTATALG_H
7
#define FPGATrackSim_DUMPOUTPUTSTATALG_H
8
9
10
#include "
AthenaBaseComps/AthAlgorithm.h
"
11
#include "GaudiKernel/ToolHandle.h"
12
#include "
FPGATrackSimInput/FPGATrackSimOutputHeaderTool.h
"
13
14
15
class
TH2F
;
16
17
class
FPGATrackSimDumpOutputStatAlg
:
public
AthAlgorithm
{
18
public
:
19
FPGATrackSimDumpOutputStatAlg
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
20
virtual
~FPGATrackSimDumpOutputStatAlg
() {};
21
virtual
StatusCode
initialize
()
override
;
22
virtual
StatusCode
execute
()
override
;
23
virtual
StatusCode
finalize
()
override
;
24
StatusCode
BookHistograms
();
25
26
27
private
:
28
ToolHandle<FPGATrackSimOutputHeaderTool>
m_readOutputTool
{
this
,
"InputTool"
,
"FPGATrackSimOutputHeaderTool/ReadOutputHeaderTool"
,
"Input Tool"
};
29
30
// Make these configurable. If they are set to the empty string branches won't get read.
31
Gaudi::Property<std::string>
m_inputBranchName
{
this
,
"InputBranchName"
,
""
,
"Branch containing InputHeader to read from ROOT file."
};
32
Gaudi::Property<std::string>
m_outputBranchName
{
this
,
"OutputBranchName"
,
""
,
"Branch containing OutputHeader to read from ROOT file."
};
33
34
FPGATrackSimLogicalEventInputHeader
*
m_eventInputHeader
=
nullptr
;
35
FPGATrackSimLogicalEventOutputHeader
*
m_eventOutputHeader
=
nullptr
;
36
37
// Internal counter.
38
unsigned
m_event
= 0;
39
40
// histograms
41
//TH2F* m_hits_r_vs_z = nullptr;
42
};
43
44
#endif // FPGATrackSim_DUMPOUTPUTSTATALG_H
FPGATrackSimDumpOutputStatAlg
Definition:
FPGATrackSimDumpOutputStatAlg.h:17
FPGATrackSimLogicalEventInputHeader
Definition:
FPGATrackSimLogicalEventInputHeader.h:21
FPGATrackSimDumpOutputStatAlg::m_outputBranchName
Gaudi::Property< std::string > m_outputBranchName
Definition:
FPGATrackSimDumpOutputStatAlg.h:32
FPGATrackSimDumpOutputStatAlg::m_eventOutputHeader
FPGATrackSimLogicalEventOutputHeader * m_eventOutputHeader
Definition:
FPGATrackSimDumpOutputStatAlg.h:35
FPGATrackSimDumpOutputStatAlg::m_inputBranchName
Gaudi::Property< std::string > m_inputBranchName
Definition:
FPGATrackSimDumpOutputStatAlg.h:31
python.TrigEgammaMonitorHelper.TH2F
def TH2F(name, title, nxbins, bins_par2, bins_par3, bins_par4, bins_par5=None, bins_par6=None, path='', **kwargs)
Definition:
TrigEgammaMonitorHelper.py:45
FPGATrackSimDumpOutputStatAlg::finalize
virtual StatusCode finalize() override
Definition:
FPGATrackSimDumpOutputStatAlg.cxx:80
AthAlgorithm.h
FPGATrackSimDumpOutputStatAlg::FPGATrackSimDumpOutputStatAlg
FPGATrackSimDumpOutputStatAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
FPGATrackSimDumpOutputStatAlg.cxx:9
FPGATrackSimDumpOutputStatAlg::m_event
unsigned m_event
Definition:
FPGATrackSimDumpOutputStatAlg.h:38
FPGATrackSimDumpOutputStatAlg::~FPGATrackSimDumpOutputStatAlg
virtual ~FPGATrackSimDumpOutputStatAlg()
Definition:
FPGATrackSimDumpOutputStatAlg.h:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgorithm
Definition:
AthAlgorithm.h:47
FPGATrackSimOutputHeaderTool.h
FPGATrackSimDumpOutputStatAlg::m_eventInputHeader
FPGATrackSimLogicalEventInputHeader * m_eventInputHeader
Definition:
FPGATrackSimDumpOutputStatAlg.h:34
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:228
FPGATrackSimDumpOutputStatAlg::m_readOutputTool
ToolHandle< FPGATrackSimOutputHeaderTool > m_readOutputTool
Definition:
FPGATrackSimDumpOutputStatAlg.h:28
FPGATrackSimDumpOutputStatAlg::execute
virtual StatusCode execute() override
Definition:
FPGATrackSimDumpOutputStatAlg.cxx:45
FPGATrackSimLogicalEventOutputHeader
Definition:
FPGATrackSimLogicalEventOutputHeader.h:12
FPGATrackSimDumpOutputStatAlg::initialize
virtual StatusCode initialize() override
Definition:
FPGATrackSimDumpOutputStatAlg.cxx:13
FPGATrackSimDumpOutputStatAlg::BookHistograms
StatusCode BookHistograms()
Definition:
FPGATrackSimDumpOutputStatAlg.cxx:39
Generated on Sun Dec 22 2024 21:10:36 for ATLAS Offline Software by
1.8.18