|
ACTS
Experiment-independent tracking
|
Simple payload class that can be wrapped for reading and writing. More...
#include <ActsPlugins/Root/RootMaterialTrackIo.hpp>
Classes | |
| struct | Config |
Public Member Functions | |
| RootMaterialTrackIo (const Config &cfg) | |
| Constructor from config struct. | |
| ~RootMaterialTrackIo ()=default | |
| Destructor. | |
| void | connectForRead (TChain &materialChain) |
| sets the branch connection for reading from a file | |
| void | connectForWrite (TTree &materialTree) |
| sets the branch connection for writing to a file | |
| Acts::RecordedMaterialTrack | read () const |
| Read the material track from the tree. | |
| void | write (const Acts::GeometryContext &gctx, std::uint32_t eventNum, const Acts::RecordedMaterialTrack &materialTrack) |
| Write the material track to the tree. | |
Simple payload class that can be wrapped for reading and writing.
|
explicit |
Constructor from config struct.
| cfg | the configuration for the accessor |
|
default |
Destructor.
| void ActsPlugins::RootMaterialTrackIo::connectForRead | ( | TChain & | materialChain | ) |
sets the branch connection for reading from a file
| materialChain | the TChain to read the material track from |
| void ActsPlugins::RootMaterialTrackIo::connectForWrite | ( | TTree & | materialTree | ) |
sets the branch connection for writing to a file
| materialTree | the TTree to write the material track to |
| Acts::RecordedMaterialTrack ActsPlugins::RootMaterialTrackIo::read | ( | ) | const |
Read the material track from the tree.
| void ActsPlugins::RootMaterialTrackIo::write | ( | const Acts::GeometryContext & | gctx, |
| std::uint32_t | eventNum, | ||
| const Acts::RecordedMaterialTrack & | materialTrack ) |
Write the material track to the tree.
| gctx | the geometry context |
| eventNum | the event number to write |
| materialTrack | the material track to be written out |