![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Examples/Io/Root/include/ActsExamples/Io/Root/RootMeasurementWriter.hpp>
Collaboration diagram for ActsExamples::RootMeasurementWriter::DigitizationTree:Public Member Functions | |
| void | setupTree (const std::string &treeName) |
| DigitizationTree (Acts::GeometryIdentifier geoID) | |
| Constructor from GeometryIdentifier. | |
| ~DigitizationTree () | |
| Non-trivial destructor for memory cleanup. | |
| void | setupBoundRecBranch (Acts::BoundIndices i) |
| void | setupClusterBranch (const std::vector< Acts::BoundIndices > &bIndices) |
| void | fillIdentification (int evnt, Acts::GeometryIdentifier geoId) |
| void | fillTruthParameters (const Acts::Vector2 &lp, const Acts::Vector4 &xt, const Acts::Vector3 &dir, const std::pair< double, double > angles) |
| template<typename measurement_t > | |
| void | fillBoundMeasurement (const measurement_t &m) |
| void | fillCluster (const Cluster &c) |
Public Attributes | |
| const std::array< std::string, Acts::eBoundSize > | bNames |
| TTree * | tree = nullptr |
| int | eventNr = 0 |
| int | volumeID = 0 |
| int | layerID = 0 |
| int | surfaceID = 0 |
| int | measType = 1 |
| Type 0 - free, 1 - bound. | |
| float | trueBound [Acts::eBoundSize] = {} |
| Truth parameters. | |
| float | trueGx = 0. |
| float | trueGy = 0. |
| float | trueGz = 0. |
| float | incidentPhi = 0. |
| float | incidentTheta = 0. |
| float | recBound [Acts::eBoundSize] = {} |
| Reconstruction information. | |
| float | varBound [Acts::eBoundSize] = {} |
| int | nch = 0 |
| int | cSize [2] = {} |
| std::array< std::vector< int > *, 2 > | chId = {nullptr, nullptr} |
| std::vector< float > * | chValue = nullptr |
Definition at line 78 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 78 of file RootMeasurementWriter.hpp
|
inline |
Constructor from GeometryIdentifier.
Definition at line 140 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 140 of file RootMeasurementWriter.hpp
References Acts::GeometryIdentifier::layer(), Acts::GeometryIdentifier::sensitive(), setupTree(), to_string(), and Acts::GeometryIdentifier::volume().
Here is the call graph for this function:
|
inline |
Non-trivial destructor for memory cleanup.
Definition at line 155 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 155 of file RootMeasurementWriter.hpp
|
inline |
Convenience function to fill bound parameters
| measurement_t | Type of the parameter set |
| m | The measurement set |
Definition at line 227 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 227 of file RootMeasurementWriter.hpp
References Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundTheta, Acts::eBoundTime, recBound, and varBound.
|
inline |
Convenience function to fill the cluster information
| c | The cluster |
Definition at line 248 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 248 of file RootMeasurementWriter.hpp
References ActsExamples::Cluster::channels, chId, chValue, cSize, nch, ActsExamples::Cluster::sizeLoc0, and ActsExamples::Cluster::sizeLoc1.
|
inline |
Convenience function to register idenfication
| eventNr | The event number |
| geoID | The geometry identifier of the measurement |
Definition at line 192 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 192 of file RootMeasurementWriter.hpp
References eventNr, Acts::GeometryIdentifier::layer(), layerID, Acts::GeometryIdentifier::sensitive(), surfaceID, Acts::GeometryIdentifier::volume(), and volumeID.
Here is the call graph for this function:
|
inline |
Convenience function to register the truth parameters
| lp | The true local position |
| xt | The true 4D global position |
| dir | The true particle direction |
Definition at line 204 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 204 of file RootMeasurementWriter.hpp
References Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundTheta, Acts::eBoundTime, Acts::ePos0, Acts::ePos1, Acts::ePos2, Acts::eTime, incidentPhi, incidentTheta, Acts::VectorHelpers::phi(), Acts::VectorHelpers::theta(), trueBound, trueGx, trueGy, and trueGz.
Here is the call graph for this function:
|
inline |
Setup the dimension depended branches
| i | the bound index in question |
Definition at line 164 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 164 of file RootMeasurementWriter.hpp
|
inline |
Setup the cluster related branch
| bIndices | the bound indices to be written |
Definition at line 172 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 172 of file RootMeasurementWriter.hpp
References bNames, chId, chValue, cSize, add_histos_bX::ib, nch, and tree.
|
inline |
Setup helper to create the tree and register the branches
| treeName | the name of the tree to be registered |
Definition at line 118 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 118 of file RootMeasurementWriter.hpp
References bNames, Acts::eBoundQOverP, Acts::eBoundSize, eventNr, add_histos_bX::ib, incidentPhi, incidentTheta, layerID, measType, surfaceID, tree, trueBound, trueGx, trueGy, trueGz, and volumeID.
Referenced by DigitizationTree().
Here is the caller graph for this function:| const std::array<std::string, Acts::eBoundSize> ActsExamples::RootMeasurementWriter::DigitizationTree::bNames |
Definition at line 79 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 79 of file RootMeasurementWriter.hpp
Referenced by setupBoundRecBranch(), setupClusterBranch(), and setupTree().
| std::array<std::vector<int>*, 2> ActsExamples::RootMeasurementWriter::DigitizationTree::chId = {nullptr, nullptr} |
Definition at line 111 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 111 of file RootMeasurementWriter.hpp
Referenced by fillCluster(), setupClusterBranch(), and ~DigitizationTree().
| std::vector<float>* ActsExamples::RootMeasurementWriter::DigitizationTree::chValue = nullptr |
Definition at line 112 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 112 of file RootMeasurementWriter.hpp
Referenced by fillCluster(), setupClusterBranch(), and ~DigitizationTree().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::cSize[2] = {} |
Definition at line 110 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 110 of file RootMeasurementWriter.hpp
Referenced by fillCluster(), and setupClusterBranch().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::eventNr = 0 |
Definition at line 84 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 84 of file RootMeasurementWriter.hpp
Referenced by fillIdentification(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::incidentPhi = 0. |
Definition at line 97 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 97 of file RootMeasurementWriter.hpp
Referenced by fillTruthParameters(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::incidentTheta = 0. |
Definition at line 98 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 98 of file RootMeasurementWriter.hpp
Referenced by fillTruthParameters(), and setupTree().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::layerID = 0 |
Definition at line 86 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 86 of file RootMeasurementWriter.hpp
Referenced by fillIdentification(), and setupTree().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::measType = 1 |
Type 0 - free, 1 - bound.
Definition at line 90 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 90 of file RootMeasurementWriter.hpp
Referenced by setupTree().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::nch = 0 |
Cluster information comprised of nch : number of channels cSize : cluster size in loc0 and loc1 chId : channel identification chValue: value/activation of the channel
Definition at line 109 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 109 of file RootMeasurementWriter.hpp
Referenced by fillCluster(), and setupClusterBranch().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::recBound[Acts::eBoundSize] = {} |
Reconstruction information.
Definition at line 101 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 101 of file RootMeasurementWriter.hpp
Referenced by fillBoundMeasurement(), and setupBoundRecBranch().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::surfaceID = 0 |
Definition at line 87 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 87 of file RootMeasurementWriter.hpp
Referenced by fillIdentification(), and setupTree().
| TTree* ActsExamples::RootMeasurementWriter::DigitizationTree::tree = nullptr |
Definition at line 82 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 82 of file RootMeasurementWriter.hpp
Referenced by setupBoundRecBranch(), setupClusterBranch(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::trueBound[Acts::eBoundSize] = {} |
Truth parameters.
Definition at line 93 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 93 of file RootMeasurementWriter.hpp
Referenced by fillTruthParameters(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::trueGx = 0. |
Definition at line 94 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 94 of file RootMeasurementWriter.hpp
Referenced by fillTruthParameters(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::trueGy = 0. |
Definition at line 95 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 95 of file RootMeasurementWriter.hpp
Referenced by fillTruthParameters(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::trueGz = 0. |
Definition at line 96 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 96 of file RootMeasurementWriter.hpp
Referenced by fillTruthParameters(), and setupTree().
| float ActsExamples::RootMeasurementWriter::DigitizationTree::varBound[Acts::eBoundSize] = {} |
Definition at line 102 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 102 of file RootMeasurementWriter.hpp
Referenced by fillBoundMeasurement(), and setupBoundRecBranch().
| int ActsExamples::RootMeasurementWriter::DigitizationTree::volumeID = 0 |
Definition at line 85 of file RootMeasurementWriter.hpp.
View newest version in sPHENIX GitHub at line 85 of file RootMeasurementWriter.hpp
Referenced by fillIdentification(), and setupTree().