#include <ActsExCellWriterSvc.h>
|
std::shared_ptr< RootExCellWriter< Acts::TrackParameters > > | m_rootEccWriter |
|
std::deque< queue_item_t > | m_queue |
|
std::mutex | m_chargedMutex |
|
std::thread | m_writeThread |
|
std::atomic< bool > | m_doEnd |
|
Gaudi::Property< std::string > | m_filePath {this, "FilePath", "excells_charged.root", "Output root file for charged particle"} |
|
Gaudi::Property< std::string > | m_treeName {this, "TreeName", "extrapolation_charged", ""} |
|
Gaudi::Property< bool > | m_writeBoundary {this, "WriteBoundary", true, ""} |
|
Gaudi::Property< bool > | m_writeMaterial {this, "WriteMaterial", true, ""} |
|
Gaudi::Property< bool > | m_writeSensitive {this, "WriteSensitive", true, ""} |
|
Gaudi::Property< bool > | m_writePassive {this, "WritePassive", true, ""} |
|
Definition at line 34 of file ActsExCellWriterSvc.h.
◆ ExCellCharged
◆ queue_item_t
◆ ActsExCellWriterSvc()
ActsExCellWriterSvc::ActsExCellWriterSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ doWrite()
void ActsExCellWriterSvc::doWrite |
( |
| ) |
|
|
private |
Definition at line 65 of file ActsExCellWriterSvc.cxx.
67 using namespace std::chrono_literals;
70 std::this_thread::sleep_for(2
s);
80 std::this_thread::sleep_for(0.5
s);
83 ATH_MSG_INFO(
"Writer thread caught termination signal. Shutting down.");
94 size_t eventNum = queue_item.first;
◆ finalize()
StatusCode ActsExCellWriterSvc::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode ActsExCellWriterSvc::initialize |
( |
| ) |
|
|
overridevirtual |
Definition at line 20 of file ActsExCellWriterSvc.cxx.
30 = std::make_shared<RootExCellWriter<Acts::TrackParameters>>(
37 return StatusCode::SUCCESS;
◆ store()
Definition at line 52 of file ActsExCellWriterSvc.cxx.
55 const auto& ctx = Gaudi::Hive::currentContext();
59 for(
size_t i=0;
i<ecells.size();++
i) {
60 m_queue.emplace_back(ctx.eventID().event_number(), std::move(ecells[
i]));
◆ m_chargedMutex
std::mutex ActsExCellWriterSvc::m_chargedMutex |
|
private |
◆ m_doEnd
std::atomic<bool> ActsExCellWriterSvc::m_doEnd |
|
private |
◆ m_filePath
Gaudi::Property<std::string> ActsExCellWriterSvc::m_filePath {this, "FilePath", "excells_charged.root", "Output root file for charged particle"} |
|
private |
◆ m_queue
◆ m_rootEccWriter
std::shared_ptr<RootExCellWriter<Acts::TrackParameters> > ActsExCellWriterSvc::m_rootEccWriter |
|
private |
◆ m_treeName
Gaudi::Property<std::string> ActsExCellWriterSvc::m_treeName {this, "TreeName", "extrapolation_charged", ""} |
|
private |
◆ m_writeBoundary
Gaudi::Property<bool> ActsExCellWriterSvc::m_writeBoundary {this, "WriteBoundary", true, ""} |
|
private |
◆ m_writeMaterial
Gaudi::Property<bool> ActsExCellWriterSvc::m_writeMaterial {this, "WriteMaterial", true, ""} |
|
private |
◆ m_writePassive
Gaudi::Property<bool> ActsExCellWriterSvc::m_writePassive {this, "WritePassive", true, ""} |
|
private |
◆ m_writeSensitive
Gaudi::Property<bool> ActsExCellWriterSvc::m_writeSensitive {this, "WriteSensitive", true, ""} |
|
private |
◆ m_writeThread
std::thread ActsExCellWriterSvc::m_writeThread |
|
private |
The documentation for this class was generated from the following files: