#include <ActsPropStepRootWriterSvc.h>
|
using | StepVector = std::vector< Acts::detail::Step > |
|
Definition at line 37 of file ActsPropStepRootWriterSvc.h.
◆ queue_item_t
◆ StepVector
◆ ActsPropStepRootWriterSvc()
ActsPropStepRootWriterSvc::ActsPropStepRootWriterSvc |
( |
const std::string & |
name, |
|
|
ISvcLocator * |
svc |
|
) |
| |
◆ doWrite()
void ActsPropStepRootWriterSvc::doWrite |
( |
const StepVector & |
steps, |
|
|
size_t |
evtNum |
|
) |
| |
|
private |
Definition at line 120 of file ActsPropStepRootWriterSvc.cxx.
134 Acts::GeometryIdentifier::Value volumeID = 0;
135 Acts::GeometryIdentifier::Value boundaryID = 0;
136 Acts::GeometryIdentifier::Value layerID = 0;
137 Acts::GeometryIdentifier::Value approachID = 0;
138 Acts::GeometryIdentifier::Value sensitiveID = 0;
141 auto geoID =
step.surface->geometryId();
142 sensitiveID = geoID.sensitive();
143 approachID = geoID.approach();
144 layerID = geoID.layer();
145 boundaryID = geoID.boundary();
146 volumeID = geoID.volume();
149 if (
step.geoID != Acts::GeometryIdentifier()) {
150 volumeID =
step.geoID.volume();
◆ end()
void ActsPropStepRootWriterSvc::end |
( |
| ) |
|
|
private |
◆ finalize()
StatusCode ActsPropStepRootWriterSvc::finalize |
( |
| ) |
|
|
overridevirtual |
◆ initialize()
StatusCode ActsPropStepRootWriterSvc::initialize |
( |
| ) |
|
|
overridevirtual |
◆ write()
◆ writeThread()
void ActsPropStepRootWriterSvc::writeThread |
( |
| ) |
|
|
private |
Definition at line 82 of file ActsPropStepRootWriterSvc.cxx.
84 using namespace std::chrono_literals;
87 std::this_thread::sleep_for(2
s);
97 std::this_thread::sleep_for(0.5
s);
100 ATH_MSG_INFO(
"Writer thread caught termination signal. Shutting down.");
111 size_t eventNum = queue_item.first;
◆ m_doEnd
std::atomic<bool> ActsPropStepRootWriterSvc::m_doEnd |
|
private |
◆ m_eventNum
int ActsPropStepRootWriterSvc::m_eventNum {} |
|
private |
◆ m_filePath
Gaudi::Property<std::string> ActsPropStepRootWriterSvc::m_filePath {this, "FilePath", "propsteps.root", "Output root file for charged particle"} |
|
private |
◆ m_outputFile
TFile* ActsPropStepRootWriterSvc::m_outputFile {} |
|
private |
◆ m_outputTree
TTree* ActsPropStepRootWriterSvc::m_outputTree {} |
|
private |
◆ m_queue
◆ m_s_approachID
std::vector<int> ActsPropStepRootWriterSvc::m_s_approachID |
|
private |
◆ m_s_boundaryID
std::vector<int> ActsPropStepRootWriterSvc::m_s_boundaryID |
|
private |
◆ m_s_layerID
std::vector<int> ActsPropStepRootWriterSvc::m_s_layerID |
|
private |
◆ m_s_pR
std::vector<float> ActsPropStepRootWriterSvc::m_s_pR |
|
private |
◆ m_s_pX
std::vector<float> ActsPropStepRootWriterSvc::m_s_pX |
|
private |
◆ m_s_pY
std::vector<float> ActsPropStepRootWriterSvc::m_s_pY |
|
private |
◆ m_s_pZ
std::vector<float> ActsPropStepRootWriterSvc::m_s_pZ |
|
private |
◆ m_s_sensitiveID
std::vector<int> ActsPropStepRootWriterSvc::m_s_sensitiveID |
|
private |
◆ m_s_volumeID
std::vector<int> ActsPropStepRootWriterSvc::m_s_volumeID |
|
private |
◆ m_treeName
Gaudi::Property<std::string> ActsPropStepRootWriterSvc::m_treeName {this, "TreeName", "propsteps", ""} |
|
private |
◆ m_writeMutex
std::mutex ActsPropStepRootWriterSvc::m_writeMutex |
|
private |
◆ m_writeThread
std::thread ActsPropStepRootWriterSvc::m_writeThread |
|
private |
The documentation for this class was generated from the following files: