ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Material/AccumulatedSurfaceMaterial.hpp>
Public Types | |
using | AccumulatedVector = std::vector< AccumulatedMaterialProperties > |
using | AccumulatedMatrix = std::vector< AccumulatedVector > |
Public Member Functions | |
AccumulatedSurfaceMaterial (double splitFactor=0.) | |
AccumulatedSurfaceMaterial (const BinUtility &binUtility, double splitFactor=0.) | |
AccumulatedSurfaceMaterial (const AccumulatedSurfaceMaterial &asma)=default | |
AccumulatedSurfaceMaterial (AccumulatedSurfaceMaterial &&asma)=default | |
AccumulatedSurfaceMaterial & | operator= (AccumulatedSurfaceMaterial &&asma)=default |
AccumulatedSurfaceMaterial & | operator= (const AccumulatedSurfaceMaterial &asma)=default |
~AccumulatedSurfaceMaterial ()=default | |
Destructor. | |
const BinUtility & | binUtility () const |
Return the BinUtility. | |
std::array< size_t, 3 > | accumulate (const Vector2D &lp, const MaterialProperties &mp, double pathCorrection=1.) |
std::array< size_t, 3 > | accumulate (const Vector3D &gp, const MaterialProperties &mp, double pathCorrection=1.) |
void | trackAverage (const std::vector< std::array< size_t, 3 >> &trackBins={}, bool emptyHit=false) |
void | trackAverage (const Vector3D &gp, bool emptyHit=false) |
std::unique_ptr< const ISurfaceMaterial > | totalAverage () |
Total average creates SurfaceMaterial. | |
const AccumulatedMatrix & | accumulatedMaterial () const |
Access to the accumulated material. | |
double | splitFactor () const |
Access to the split factor. | |
Private Attributes | |
BinUtility | m_binUtility {} |
The helper for the bin finding. | |
double | m_splitFactor {0.} |
the split factor | |
AccumulatedMatrix | m_accumulatedMaterial |
The stored accumulated material matrix. | |
This class is used by the SurfaceMaterialMapper in order to accumulate/collect material information during the mapping process.
It performs event- and run-average when called, and returns a new SurfaceMaterial object as a unique_ptr after finalisation
Definition at line 29 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 29 of file AccumulatedSurfaceMaterial.hpp
using Acts::AccumulatedSurfaceMaterial::AccumulatedMatrix = std::vector<AccumulatedVector> |
Definition at line 32 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 32 of file AccumulatedSurfaceMaterial.hpp
using Acts::AccumulatedSurfaceMaterial::AccumulatedVector = std::vector<AccumulatedMaterialProperties> |
Definition at line 31 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 31 of file AccumulatedSurfaceMaterial.hpp
Acts::AccumulatedSurfaceMaterial::AccumulatedSurfaceMaterial | ( | double | splitFactor = 0. | ) |
Default Constructor - for homogeneous material
splitFactor | is the pre/post splitting directive |
Definition at line 14 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 14 of file AccumulatedSurfaceMaterial.cpp
References m_accumulatedMaterial.
Acts::AccumulatedSurfaceMaterial::AccumulatedSurfaceMaterial | ( | const BinUtility & | binUtility, |
double | splitFactor = 0. |
||
) |
Explicit constructor with only full MaterialProperties, for one-dimensional binning.
The split factors:
binUtility | defines the binning structure on the surface |
splitFactor | is the pre/post splitting directive |
Definition at line 21 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 21 of file AccumulatedSurfaceMaterial.cpp
References Acts::BinUtility::bins(), m_accumulatedMaterial, and m_binUtility.
|
default |
Copy Constructor
asma | is the source object to be copied |
|
default |
Copy Move Constructor
asma | is the source object to be copied |
|
default |
Destructor.
std::array< size_t, 3 > Acts::AccumulatedSurfaceMaterial::accumulate | ( | const Vector2D & | lp, |
const MaterialProperties & | mp, | ||
double | pathCorrection = 1. |
||
) |
Assign a material properites object
lp | local position for the bin assignment |
mp | material properties to be assigned |
Definition at line 31 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 31 of file AccumulatedSurfaceMaterial.cpp
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
std::array< size_t, 3 > Acts::AccumulatedSurfaceMaterial::accumulate | ( | const Vector3D & | gp, |
const MaterialProperties & | mp, | ||
double | pathCorrection = 1. |
||
) |
Assign a material properites object
gp | global position for the bin assignment |
mp | material properties to be assigned |
Definition at line 44 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 44 of file AccumulatedSurfaceMaterial.cpp
|
inline |
Access to the accumulated material.
Definition at line 139 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 139 of file AccumulatedSurfaceMaterial.hpp
References m_accumulatedMaterial.
Referenced by Acts::Test::BOOST_AUTO_TEST_CASE().
|
inline |
Return the BinUtility.
Definition at line 134 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 134 of file AccumulatedSurfaceMaterial.hpp
References m_binUtility.
|
default |
Assignment Move operator
asma | is the source object to be copied |
|
default |
Assignment operator
asma | is the source object to be copied |
|
inline |
Access to the split factor.
Definition at line 143 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 143 of file AccumulatedSurfaceMaterial.hpp
References m_splitFactor.
std::unique_ptr< const Acts::ISurfaceMaterial > Acts::AccumulatedSurfaceMaterial::totalAverage | ( | ) |
Total average creates SurfaceMaterial.
Definition at line 92 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 92 of file AccumulatedSurfaceMaterial.cpp
void Acts::AccumulatedSurfaceMaterial::trackAverage | ( | const std::vector< std::array< size_t, 3 >> & | trackBins = {} , |
bool | emptyHit = false |
||
) |
Average the information accumulated from one mapped track
trackBins | The bins that were touched by this event |
emptyHit | indicator if this is an empty assignment If none is given, the average runs over all bins in the surface map |
Definition at line 67 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 67 of file AccumulatedSurfaceMaterial.cpp
Average the information accumulated from one mapped track
gp | global position for the bin assignment |
emptyHit | indicator if this is an empty assignment |
Definition at line 56 of file AccumulatedSurfaceMaterial.cpp.
View newest version in sPHENIX GitHub at line 56 of file AccumulatedSurfaceMaterial.cpp
|
private |
The stored accumulated material matrix.
Definition at line 131 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 131 of file AccumulatedSurfaceMaterial.hpp
Referenced by accumulatedMaterial(), and AccumulatedSurfaceMaterial().
|
private |
The helper for the bin finding.
Definition at line 125 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 125 of file AccumulatedSurfaceMaterial.hpp
Referenced by AccumulatedSurfaceMaterial(), and binUtility().
|
private |
the split factor
Definition at line 128 of file AccumulatedSurfaceMaterial.hpp.
View newest version in sPHENIX GitHub at line 128 of file AccumulatedSurfaceMaterial.hpp
Referenced by splitFactor().