ATLAS Offline Software
FPGATrackSimInputHeaderTool.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 FPGATrackSimInputHeaderTool_H
6 #define FPGATrackSimInputHeaderTool_H
7 
17 
18 #include <atomic>
19 
21 
22 class FPGATrackSimInputHeaderTool : public extends<AthAlgTool, IFPGATrackSimEventInputHeaderTool> {
23  public:
24 
25  FPGATrackSimInputHeaderTool(const std::string&, const std::string&, const IInterface*);
26  virtual ~FPGATrackSimInputHeaderTool() = default;
27  virtual StatusCode initialize() override;
28  virtual StatusCode finalize() override;
29  virtual StatusCode readData(FPGATrackSimEventInputHeader* header, bool &last) override;
31 
32 
33  private:
34  StringArrayProperty m_inpath {this, "InFileName", {"."}, "input file paths"};
35  StringProperty m_rwoption {this, "RWstatus", std::string("READ"), "define read or write file option: READ, RECREATE, HEADER"};
36 
37 
38  //internal counters
39  std::atomic<unsigned> m_event = 0;
40  std::atomic<unsigned> m_totevent = 0;
41  std::atomic<unsigned> m_file = 0;
42 
43  std::string m_branchName;
44  StatusCode openFile(std::string const & path);
45 
46 };
47 
48 #endif // FPGATrackSimInputHeaderTool_H
header
Definition: hcg.cxx:526
FPGATrackSimInputHeaderTool::readData
virtual StatusCode readData(FPGATrackSimEventInputHeader *header, bool &last) override
Definition: FPGATrackSimInputHeaderTool.cxx:126
athena.path
path
python interpreter configuration --------------------------------------—
Definition: athena.py:128
FPGATrackSimInputHeaderTool::m_rwoption
StringProperty m_rwoption
Definition: FPGATrackSimInputHeaderTool.h:35
FPGATrackSimInputHeaderTool::~FPGATrackSimInputHeaderTool
virtual ~FPGATrackSimInputHeaderTool()=default
FPGATrackSimInputHeaderTool::m_file
std::atomic< unsigned > m_file
Definition: FPGATrackSimInputHeaderTool.h:41
FPGATrackSimInputHeaderTool
Definition: FPGATrackSimInputHeaderTool.h:22
FPGATrackSimInputHeaderTool::finalize
virtual StatusCode finalize() override
Definition: FPGATrackSimInputHeaderTool.cxx:92
FPGATrackSimInputHeaderTool::FPGATrackSimInputHeaderTool
FPGATrackSimInputHeaderTool(const std::string &, const std::string &, const IInterface *)
Definition: FPGATrackSimInputHeaderTool.cxx:9
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FPGATrackSimInputHeaderTool::m_event
std::atomic< unsigned > m_event
Definition: FPGATrackSimInputHeaderTool.h:39
AthAlgTool.h
FPGATrackSimEventInputHeader
Definition: FPGATrackSimEventInputHeader.h:22
FPGATrackSimInputHeaderTool::initialize
virtual StatusCode initialize() override
Definition: FPGATrackSimInputHeaderTool.cxx:56
FPGATrackSimInputHeaderTool::writeData
virtual StatusCode writeData(FPGATrackSimEventInputHeader *header) override
Definition: FPGATrackSimInputHeaderTool.cxx:107
FPGATrackSimInputHeaderTool::m_totevent
std::atomic< unsigned > m_totevent
Definition: FPGATrackSimInputHeaderTool.h:40
FPGATrackSimInputHeaderTool::openFile
StatusCode openFile(std::string const &path)
Definition: FPGATrackSimInputHeaderTool.cxx:13
FPGATrackSimInputHeaderTool::m_inpath
StringArrayProperty m_inpath
Definition: FPGATrackSimInputHeaderTool.h:34
IFPGATrackSimEventInputHeaderTool.h
FPGATrackSimInputHeaderTool::m_branchName
std::string m_branchName
Definition: FPGATrackSimInputHeaderTool.h:43