ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
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
(
const
EventContext& ctx)
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
AthAlgorithm.h
FPGATrackSimOutputHeaderTool.h
This class reads/write FPGATrackSim output data from/to a ROOT file Designed to be not thread-safe.
AthAlgorithm::AthAlgorithm
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthAlgorithm.cxx:10
FPGATrackSimDumpOutputStatAlg::~FPGATrackSimDumpOutputStatAlg
virtual ~FPGATrackSimDumpOutputStatAlg()
Definition
FPGATrackSimDumpOutputStatAlg.h:20
FPGATrackSimDumpOutputStatAlg::m_eventOutputHeader
FPGATrackSimLogicalEventOutputHeader * m_eventOutputHeader
Definition
FPGATrackSimDumpOutputStatAlg.h:35
FPGATrackSimDumpOutputStatAlg::m_event
unsigned m_event
Definition
FPGATrackSimDumpOutputStatAlg.h:38
FPGATrackSimDumpOutputStatAlg::BookHistograms
StatusCode BookHistograms()
Definition
FPGATrackSimDumpOutputStatAlg.cxx:39
FPGATrackSimDumpOutputStatAlg::m_readOutputTool
ToolHandle< FPGATrackSimOutputHeaderTool > m_readOutputTool
Definition
FPGATrackSimDumpOutputStatAlg.h:28
FPGATrackSimDumpOutputStatAlg::initialize
virtual StatusCode initialize() override
Definition
FPGATrackSimDumpOutputStatAlg.cxx:13
FPGATrackSimDumpOutputStatAlg::m_inputBranchName
Gaudi::Property< std::string > m_inputBranchName
Definition
FPGATrackSimDumpOutputStatAlg.h:31
FPGATrackSimDumpOutputStatAlg::FPGATrackSimDumpOutputStatAlg
FPGATrackSimDumpOutputStatAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
FPGATrackSimDumpOutputStatAlg.cxx:9
FPGATrackSimDumpOutputStatAlg::m_eventInputHeader
FPGATrackSimLogicalEventInputHeader * m_eventInputHeader
Definition
FPGATrackSimDumpOutputStatAlg.h:34
FPGATrackSimDumpOutputStatAlg::m_outputBranchName
Gaudi::Property< std::string > m_outputBranchName
Definition
FPGATrackSimDumpOutputStatAlg.h:32
FPGATrackSimDumpOutputStatAlg::finalize
virtual StatusCode finalize() override
Definition
FPGATrackSimDumpOutputStatAlg.cxx:80
FPGATrackSimDumpOutputStatAlg::execute
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
Definition
FPGATrackSimDumpOutputStatAlg.cxx:45
FPGATrackSimLogicalEventInputHeader
Definition
FPGATrackSimLogicalEventInputHeader.h:21
FPGATrackSimLogicalEventOutputHeader
Definition
FPGATrackSimLogicalEventOutputHeader.h:12
Generated on
for ATLAS Offline Software by
1.17.0