ATLAS Offline Software
TrigFPGATrackSimRawHitsWrapperAlg.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 #ifndef FPGATrackSimSGInput_FPGATrackSimRawHistWrapperAlg_h
6 #define FPGATrackSimSGInput_FPGATrackSimRawHistWrapperAlg_h
7 
8 
10 #include "GaudiKernel/ToolHandle.h"
12 
13 class TFile;
14 class TTree;
15 class TH2F;
22 public:
23  TrigFPGATrackSimRawHitsWrapperAlg(const std::string& name, ISvcLocator* pSvcLocator);
25  virtual StatusCode initialize() override;
26  virtual StatusCode execute() override;
27  virtual StatusCode finalize() override;
28 
29 
30 private:
31  // configuration parameters
32  ToolHandle<IFPGATrackSimInputTool> m_hitInputTool { this, "InputTool", "FPGATrackSimSGToRawHitsTool/FPGATrackSimInputTool", "HitInput Tool" };
33  Gaudi::Property<std::string> m_outpath { this, "OutFileName", "httsim_smartwrapper.root", "output path" };
34  Gaudi::Property<std::string> m_metaData { this, "WrapperMetaData", "", "meta data" };
35 
36  // internal pointers
38  TFile* m_outfile = nullptr;
39  TTree* m_EventTree = nullptr;
40 };
41 
42 #endif
IFPGATrackSimInputTool.h
TrigFPGATrackSimRawHitsWrapperAlg
Steering algorithm to run IFPGATrackSimInputTool and save the output in plain ROOT tree.
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:21
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
TrigFPGATrackSimRawHitsWrapperAlg::m_outfile
TFile * m_outfile
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:38
AthAlgorithm.h
TrigFPGATrackSimRawHitsWrapperAlg::m_metaData
Gaudi::Property< std::string > m_metaData
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigFPGATrackSimRawHitsWrapperAlg::finalize
virtual StatusCode finalize() override
Definition: TrigFPGATrackSimRawHitsWrapperAlg.cxx:60
TrigFPGATrackSimRawHitsWrapperAlg::m_hitInputTool
ToolHandle< IFPGATrackSimInputTool > m_hitInputTool
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:32
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
AthAlgorithm
Definition: AthAlgorithm.h:47
TrigFPGATrackSimRawHitsWrapperAlg::execute
virtual StatusCode execute() override
Definition: TrigFPGATrackSimRawHitsWrapperAlg.cxx:49
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigFPGATrackSimRawHitsWrapperAlg::m_outpath
Gaudi::Property< std::string > m_outpath
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:33
TrigFPGATrackSimRawHitsWrapperAlg::initialize
virtual StatusCode initialize() override
Definition: TrigFPGATrackSimRawHitsWrapperAlg.cxx:21
TrigFPGATrackSimRawHitsWrapperAlg::m_eventHeader
FPGATrackSimEventInputHeader * m_eventHeader
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:37
TrigFPGATrackSimRawHitsWrapperAlg::~TrigFPGATrackSimRawHitsWrapperAlg
virtual ~TrigFPGATrackSimRawHitsWrapperAlg()
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:24
TrigFPGATrackSimRawHitsWrapperAlg::TrigFPGATrackSimRawHitsWrapperAlg
TrigFPGATrackSimRawHitsWrapperAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigFPGATrackSimRawHitsWrapperAlg.cxx:16
TrigFPGATrackSimRawHitsWrapperAlg::m_EventTree
TTree * m_EventTree
Definition: TrigFPGATrackSimRawHitsWrapperAlg.h:39