ATLAS Offline Software
FPGATrackSimRawHitsWrapperAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 
6 #ifndef FPGATrackSim_RAWHITSWRAPPERALG_H
7 #define FPGATrackSim_RAWHITSWRAPPERALG_H
8 
9 
11 #include "GaudiKernel/ToolHandle.h"
13 
15 public:
16  FPGATrackSimRawHitsWrapperAlg (const std::string& name, ISvcLocator* pSvcLocator);
17  virtual ~FPGATrackSimRawHitsWrapperAlg () = default;
18  virtual StatusCode initialize() override;
19  virtual StatusCode execute() override;
20  virtual StatusCode finalize() override;
22 
23 
24 private:
25  // configuration parameters
26  //TODO: use input from SG: FPGATrackSimSGToRawHitsTool/IFPGATrackSimInputTool
27  ToolHandle<IFPGATrackSimEventInputHeaderTool> m_readOutputTool { this, "InputTool", "FPGATrackSimInputHeaderTool/ReadInputHeaderTool", "Input Tool" };
28  ToolHandle<IFPGATrackSimEventInputHeaderTool> m_writeOutputTool { this, "OutputTool", "FPGATrackSimInputHeaderTool/WriteInputHeaderTool", "Output Tool" };
29 
30  // some debug counters
31  unsigned int m_tot_hits=0;
32  unsigned int m_tot_truth=0;
33  unsigned int m_tot_oftracks=0;
34 };
35 
36 #endif // FPGATrackSimRAWHITSWRAPPERALG_h
FPGATrackSimRawHitsWrapperAlg::FPGATrackSimRawHitsWrapperAlg
FPGATrackSimRawHitsWrapperAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: FPGATrackSimRawHitsWrapperAlg.cxx:7
FPGATrackSimRawHitsWrapperAlg::m_tot_hits
unsigned int m_tot_hits
Definition: FPGATrackSimRawHitsWrapperAlg.h:31
FPGATrackSimRawHitsWrapperAlg::execute
virtual StatusCode execute() override
Definition: FPGATrackSimRawHitsWrapperAlg.cxx:30
AthAlgorithm.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FPGATrackSimRawHitsWrapperAlg::m_writeOutputTool
ToolHandle< IFPGATrackSimEventInputHeaderTool > m_writeOutputTool
Definition: FPGATrackSimRawHitsWrapperAlg.h:28
AthAlgorithm
Definition: AthAlgorithm.h:47
FPGATrackSimRawHitsWrapperAlg::m_tot_oftracks
unsigned int m_tot_oftracks
Definition: FPGATrackSimRawHitsWrapperAlg.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
FPGATrackSimRawHitsWrapperAlg::~FPGATrackSimRawHitsWrapperAlg
virtual ~FPGATrackSimRawHitsWrapperAlg()=default
FPGATrackSimRawHitsWrapperAlg::finalize
virtual StatusCode finalize() override
Definition: FPGATrackSimRawHitsWrapperAlg.cxx:50
IFPGATrackSimEventInputHeaderTool.h
FPGATrackSimRawHitsWrapperAlg::BookHistograms
StatusCode BookHistograms()
Definition: FPGATrackSimRawHitsWrapperAlg.cxx:26
FPGATrackSimRawHitsWrapperAlg::m_tot_truth
unsigned int m_tot_truth
Definition: FPGATrackSimRawHitsWrapperAlg.h:32
FPGATrackSimRawHitsWrapperAlg::initialize
virtual StatusCode initialize() override
Definition: FPGATrackSimRawHitsWrapperAlg.cxx:11
FPGATrackSimRawHitsWrapperAlg
Definition: FPGATrackSimRawHitsWrapperAlg.h:14
FPGATrackSimRawHitsWrapperAlg::m_readOutputTool
ToolHandle< IFPGATrackSimEventInputHeaderTool > m_readOutputTool
Definition: FPGATrackSimRawHitsWrapperAlg.h:27