#include <FPGATrackSimInputHeaderTool.h>
|
StringArrayProperty | m_inpath {this, "InFileName", {"."}, "input file paths"} |
|
StringProperty | m_rwoption {this, "RWstatus", std::string("READ"), "define read or write file option: READ, RECREATE, HEADER"} |
|
std::atomic< unsigned > | m_event = 0 |
|
std::atomic< unsigned > | m_totevent = 0 |
|
std::atomic< unsigned > | m_file = 0 |
|
std::string | m_branchName |
|
◆ FPGATrackSimInputHeaderTool()
FPGATrackSimInputHeaderTool::FPGATrackSimInputHeaderTool |
( |
const std::string & |
algname, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
ifc |
|
) |
| |
◆ ~FPGATrackSimInputHeaderTool()
virtual FPGATrackSimInputHeaderTool::~FPGATrackSimInputHeaderTool |
( |
| ) |
|
|
virtualdefault |
◆ finalize()
StatusCode FPGATrackSimInputHeaderTool::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode FPGATrackSimInputHeaderTool::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 56 of file FPGATrackSimInputHeaderTool.cxx.
68 return StatusCode::FAILURE;
72 if (
m_rwoption.value()==std::string(
"READ") ) {
75 else if (
m_rwoption.value()==std::string(
"RECREATE") ||
m_rwoption.value()==std::string(
"HEADER")) {
77 m_EventTree =
new TTree(
"FPGATrackSimEventTree",
"data");
84 return StatusCode::FAILURE;
88 return StatusCode::SUCCESS;
◆ openFile()
StatusCode FPGATrackSimInputHeaderTool::openFile |
( |
std::string const & |
path | ) |
|
|
private |
Definition at line 13 of file FPGATrackSimInputHeaderTool.cxx.
16 if (m_infile && m_infile->IsOpen())
26 if (m_infile ==
nullptr)
29 return StatusCode::FAILURE;
34 m_EventTree = (TTree*) m_infile->Get(
"FPGATrackSimEventTree");
36 if (m_EventTree ==
nullptr || m_EventTree->GetEntries() == -1 ){
38 return StatusCode::FAILURE;
40 ATH_MSG_INFO (
"Input file: " <<
path <<
" has "<< m_EventTree->GetEntries() <<
" event entries" );
42 if(!m_EventTree->GetListOfBranches()->FindObject(
m_branchName.c_str())){
44 return StatusCode::FAILURE;
48 branch->SetAddress(&m_eventHeader);
51 return StatusCode::SUCCESS;
◆ readData()
Definition at line 126 of file FPGATrackSimInputHeaderTool.cxx.
128 if (
m_rwoption.value()!=std::string(
"READ") ){
130 return StatusCode::SUCCESS;
136 if (
m_event >= m_EventTree->GetEntries())
142 return StatusCode::SUCCESS;
148 m_EventTree->GetEntry(
m_event++);
154 return StatusCode::SUCCESS;
◆ writeData()
◆ m_branchName
std::string FPGATrackSimInputHeaderTool::m_branchName |
|
private |
◆ m_event
std::atomic<unsigned> FPGATrackSimInputHeaderTool::m_event = 0 |
|
private |
◆ m_file
std::atomic<unsigned> FPGATrackSimInputHeaderTool::m_file = 0 |
|
private |
◆ m_inpath
StringArrayProperty FPGATrackSimInputHeaderTool::m_inpath {this, "InFileName", {"."}, "input file paths"} |
|
private |
◆ m_rwoption
StringProperty FPGATrackSimInputHeaderTool::m_rwoption {this, "RWstatus", std::string("READ"), "define read or write file option: READ, RECREATE, HEADER"} |
|
private |
◆ m_totevent
std::atomic<unsigned> FPGATrackSimInputHeaderTool::m_totevent = 0 |
|
private |
The documentation for this class was generated from the following files: