ATLAS Offline Software
Loading...
Searching...
No Matches
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
11#include "GaudiKernel/ToolHandle.h"
13
14
15class TH2F;
16
18public:
19 FPGATrackSimDumpOutputStatAlg (const std::string& name, ISvcLocator* pSvcLocator);
21 virtual StatusCode initialize() override;
22 virtual StatusCode execute() override;
23 virtual StatusCode finalize() override;
24 StatusCode BookHistograms();
25
26
27private:
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
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
This class reads/write FPGATrackSim output data from/to a ROOT file Designed to be not thread-safe.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
FPGATrackSimLogicalEventOutputHeader * m_eventOutputHeader
ToolHandle< FPGATrackSimOutputHeaderTool > m_readOutputTool
Gaudi::Property< std::string > m_inputBranchName
FPGATrackSimDumpOutputStatAlg(const std::string &name, ISvcLocator *pSvcLocator)
FPGATrackSimLogicalEventInputHeader * m_eventInputHeader
Gaudi::Property< std::string > m_outputBranchName