Helper class to manage the I/O of measurements and associated clusters to and from ROOT files.
More...
#include <ActsPlugins/Root/RootMeasurementIo.hpp>
Helper class to manage the I/O of measurements and associated clusters to and from ROOT files.
◆ RootMeasurementIo()
| ActsPlugins::RootMeasurementIo::RootMeasurementIo |
( |
const Config & | config | ) |
|
|
explicit |
Constructor from configuration struct.
- Parameters
-
| config | the configuration for the accessor |
◆ clear()
| void ActsPlugins::RootMeasurementIo::clear |
( |
| ) |
|
◆ connectForWrite()
| void ActsPlugins::RootMeasurementIo::connectForWrite |
( |
TTree & | measurementTree | ) |
|
sets the branch connection for writing to a file
- Parameters
-
| measurementTree | the TTree to write the measurement track to |
◆ fillBoundMeasurement()
| void ActsPlugins::RootMeasurementIo::fillBoundMeasurement |
( |
const std::vector< double > & | measurement, |
|
|
const std::vector< double > & | variances, |
|
|
const std::vector< unsigned int > & | subspaceIndex ) |
Convenience function to fill bound parameters.
- abstracted to be used in different contexts
- Parameters
-
| measurement | The measurement parameters |
| variances | The measurement variances (assumed diagonally) |
| subspaceIndex | The subspace indices of the measurement |
◆ fillCluster()
| void ActsPlugins::RootMeasurementIo::fillCluster |
( |
const std::vector< std::tuple< int, int, float > > & | channels | ) |
|
Convenience function to fill the cluster information.
- abstracted to be used in different contexts
- Parameters
-
| channels | The channel information |
◆ fillGlobalPosition()
| void ActsPlugins::RootMeasurementIo::fillGlobalPosition |
( |
const Acts::Vector3 & | pos | ) |
|
Fill global information of the cluster/measurement.
- Parameters
-
| pos | The global position of the cluster |
◆ fillIdentification()
Convenience function to register identification.
- Parameters
-
| evnt | The event number |
| geoId | The geometry identifier of the measurement |
◆ fillTruthParameters()
Convenience function to register the truth parameters.
- Parameters
-
| lp | The true local position |
| xt | The true 4D global position |
| dir | The true particle direction |
| angles | The incident angles |