EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/Material/AccumulatedMaterialSlab.hpp>
Public Member Functions | |
void | accumulate (MaterialSlab slabAlongTrack, float pathCorrection=1) |
void | trackAverage (bool useEmptyTrack=false) |
std::pair< MaterialSlab, unsigned int > | totalAverage () const |
Private Attributes | |
MaterialSlab | m_trackAverage |
Averaged properties for a single track. | |
MaterialSlab | m_totalAverage |
Averaged properties over multiple tracks. | |
unsigned int | m_totalCount = 0u |
Accumulate material properties from multiple hits/track and multiple tracks.
This is a helper class for the SurfaceMaterialMapper
to handle material accumulation and averaging for one surface bin. The accumulation procedure is done in two steps:
Definition at line 29 of file AccumulatedMaterialSlab.hpp.
View newest version in sPHENIX GitHub at line 29 of file AccumulatedMaterialSlab.hpp
void Acts::AccumulatedMaterialSlab::accumulate | ( | MaterialSlab | slabAlongTrack, |
float | pathCorrection = 1 |
||
) |
Add the material to the current per-track store.
slabAlongTrack | Recorded equivalent material slab for this step |
pathCorrection | Correction factor due to non-perpendicular incident |
The recoded material slab is assumed to be defined along the track direction. The track can have non-perpendicular incidence on the surface and the recorded slab has to be projected along the surface normal. The path correction gives the scaling factor from normal incidence to the recorded incidence as provided by the Surface
interface.
Vacuum steps with a non-zero thickness can be added to account for holes in material structures.
Definition at line 13 of file AccumulatedMaterialSlab.cpp.
View newest version in sPHENIX GitHub at line 13 of file AccumulatedMaterialSlab.cpp
References Acts::detail::combineSlabs(), m_trackAverage, and Acts::MaterialSlab::scaleThickness().
std::pair< Acts::MaterialSlab, unsigned int > Acts::AccumulatedMaterialSlab::totalAverage | ( | ) | const |
Return the average material properties from all accumulated tracks.
Only contains the information up to the last .trackAverage(...)
call. If there have been additional calls to .accumulate(...)
afterwards, the information is not part of the total average. The thickness corresponds to the average thickness seen by the tracks.
Definition at line 43 of file AccumulatedMaterialSlab.cpp.
View newest version in sPHENIX GitHub at line 43 of file AccumulatedMaterialSlab.cpp
void Acts::AccumulatedMaterialSlab::trackAverage | ( | bool | useEmptyTrack = false | ) |
Add the accumulated material for the current track to the total average.
useEmptyTrack | indicate whether to consider an empty track store |
This finishes the material accumulation for the current track and resets the per-track store. Subsequent calls to .accumulate(...)
will start accumulating material for a new track.
Each track contributes equally to the total average regardless of its measured path within the material. An empty per-track store, i.e. vanishing per-track material thickness, does not contribute to the total unless explicitely requested.
Definition at line 21 of file AccumulatedMaterialSlab.cpp.
View newest version in sPHENIX GitHub at line 21 of file AccumulatedMaterialSlab.cpp
References Acts::detail::combineSlabs(), and Acts::UnitConstants::u.
|
private |
Averaged properties over multiple tracks.
Definition at line 77 of file AccumulatedMaterialSlab.hpp.
View newest version in sPHENIX GitHub at line 77 of file AccumulatedMaterialSlab.hpp
|
private |
Definition at line 79 of file AccumulatedMaterialSlab.hpp.
View newest version in sPHENIX GitHub at line 79 of file AccumulatedMaterialSlab.hpp
|
private |
Averaged properties for a single track.
Definition at line 75 of file AccumulatedMaterialSlab.hpp.
View newest version in sPHENIX GitHub at line 75 of file AccumulatedMaterialSlab.hpp
Referenced by accumulate().