EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/sPHENIX/Core/include/Acts/Material/VolumeMaterialMapper.hpp>
Classes | |
struct | BoundSurfaceSelector |
selector for finding surface More... | |
struct | Config |
struct | MaterialVolumeSelector |
selector for finding More... | |
struct | State |
Public Types | |
using | StraightLinePropagator = Propagator< StraightLineStepper, Navigator > |
Public Member Functions | |
VolumeMaterialMapper ()=delete | |
Delete the Default constructor. | |
VolumeMaterialMapper (const Config &cfg, StraightLinePropagator propagator, std::unique_ptr< const Logger > slogger=getDefaultLogger("VolumeMaterialMapper", Logging::INFO)) | |
State | createState (const GeometryContext &gctx, const MagneticFieldContext &mctx, const TrackingGeometry &tGeometry) const |
helper method that creates the cache for the mapping | |
void | finalizeMaps (State &mState) const |
Method to finalize the maps. | |
void | mapMaterialTrack (State &mState, RecordedMaterialTrack &mTrack) const |
Private Member Functions | |
void | resolveMaterialVolume (State &mState, const TrackingVolume &tVolume) const |
finds all surfaces with ProtoVolumeMaterial of a volume | |
void | checkAndInsert (State &, const TrackingVolume &volume) const |
check and insert | |
void | collectMaterialSurfaces (State &, const TrackingVolume &tVolume) const |
check and insert | |
void | createExtraHits (RecordedMaterialVolumePoint &matPoint, Acts::MaterialSlab properties, Vector3D position, Vector3D direction) const |
const Logger & | logger () const |
Standard logger method. | |
Private Attributes | |
Config | m_cfg |
The configuration object. | |
StraightLinePropagator | m_propagator |
The straight line propagator. | |
std::unique_ptr< const Logger > | m_logger |
The logging instance. | |
This is the main feature tool to map material information from a 3D geometry onto the TrackingGeometry with its surface material description.
The process runs as such:
1) TrackingGeometry is parsed and for each Volume with ProtoVolumeMaterial a local store is initialized the identification is done hereby through the Volume::GeometryIdentifier
2) A number of N material tracks is read in, each track has : origin, direction, material steps (< position, step length, x0, l0, a, z, rho >, thichness)
for each track: volume along the origin/direction path are collected. the step are then associated to volume inside which they are. Additional step are created along the track direction.
3) Each 'hit' bin per event is counted and averaged at the end of the run
Definition at line 60 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 60 of file VolumeMaterialMapper.hpp
using Acts::VolumeMaterialMapper::StraightLinePropagator = Propagator<StraightLineStepper, Navigator> |
Definition at line 62 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 62 of file VolumeMaterialMapper.hpp
|
delete |
Delete the Default constructor.
Acts::VolumeMaterialMapper::VolumeMaterialMapper | ( | const Config & | cfg, |
StraightLinePropagator | propagator, | ||
std::unique_ptr< const Logger > | slogger = getDefaultLogger( "VolumeMaterialMapper", Logging::INFO) |
||
) |
Constructor with config object
cfg | Configuration struct |
propagator | The straight line propagator |
log | The logger |
Definition at line 33 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 33 of file VolumeMaterialMapper.cpp
|
private |
check and insert
mState | is the map to be filled |
volume | is the surface to be checked for a Proxy |
Definition at line 77 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 77 of file VolumeMaterialMapper.cpp
References ACTS_DEBUG, Acts::adjustBinUtility(), Acts::GeometryObject::geometryId(), Acts::VolumeMaterialMapper::State::materialBin, Acts::VolumeMaterialMapper::State::recordedMaterial, Acts::GeometryIdentifier::volume(), and Acts::TrackingVolume::volumeMaterial().
|
private |
check and insert
mState | is the map to be filled |
volume | is the surface to be checked for a Proxy |
Definition at line 124 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 124 of file VolumeMaterialMapper.cpp
References ACTS_VERBOSE, Acts::BinnedArray< T >::arrayObjects(), Acts::TrackingVolume::boundarySurfaces(), Acts::TrackingVolume::confinedLayers(), Acts::TrackingVolume::confinedVolumes(), Acts::navigation, Acts::VolumeMaterialMapper::State::surfaceMaterial, and Acts::TrackingVolume::volumeName().
|
private |
Create extra material point for the mapping
matPoint | RecordedMaterialVolumePoint where the extra hit are stored |
properties | material properties of the original hit |
position | position of the original hit |
direction | direction of the track |
Definition at line 185 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 185 of file VolumeMaterialMapper.cpp
References Acts::MaterialSlab::scaleThickness(), and Acts::MaterialSlab::thickness().
Acts::VolumeMaterialMapper::State Acts::VolumeMaterialMapper::createState | ( | const GeometryContext & | gctx, |
const MagneticFieldContext & | mctx, | ||
const TrackingGeometry & | tGeometry | ||
) | const |
helper method that creates the cache for the mapping
[in] | tGeometry | The geometry which should be mapped |
This method takes a TrackingGeometry, finds all surfaces with material proxis and returns you a Cache object tO be used
Definition at line 40 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 40 of file VolumeMaterialMapper.cpp
References Acts::TrackingGeometry::highestTrackingVolume(), and Acts::Test::world.
void Acts::VolumeMaterialMapper::finalizeMaps | ( | State & | mState | ) | const |
Method to finalize the maps.
It calls the final run averaging and then transforms the AccumulatedVolume material class to a surface material class type
mState |
Definition at line 210 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 210 of file VolumeMaterialMapper.cpp
References Acts::AccumulatedVolumeMaterial::accumulate(), ACTS_DEBUG, Acts::AccumulatedVolumeMaterial::average(), Acts::createGrid2D(), Acts::createGrid3D(), Acts::mapMaterialPoints(), Acts::VolumeMaterialMapper::State::materialBin, Acts::VolumeMaterialMapper::State::recordedMaterial, and Acts::VolumeMaterialMapper::State::volumeMaterial.
|
inlineprivate |
Standard logger method.
Definition at line 189 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 189 of file VolumeMaterialMapper.hpp
References m_logger.
void Acts::VolumeMaterialMapper::mapMaterialTrack | ( | State & | mState, |
RecordedMaterialTrack & | mTrack | ||
) | const |
Process/map a single track
mState | The current state map |
mTrack | The material track to be mapped |
Definition at line 255 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 255 of file VolumeMaterialMapper.cpp
References Acts::VolumeMaterialMapper::State::geoContext, Acts::getDefaultLogger(), Acts::Logging::INFO, Acts::VolumeMaterialMapper::State::magFieldContext, Acts::VectorHelpers::makeVector4(), eicpy.build::options, and start().
|
private |
finds all surfaces with ProtoVolumeMaterial of a volume
mState | The state to be filled |
tVolume | is current TrackingVolume |
Definition at line 53 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 53 of file VolumeMaterialMapper.cpp
References ACTS_VERBOSE, Acts::TrackingVolume::confinedVolumes(), Acts::TrackingVolume::denseVolumes(), and Acts::TrackingVolume::volumeName().
|
private |
The configuration object.
Definition at line 192 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 192 of file VolumeMaterialMapper.hpp
|
private |
The logging instance.
Definition at line 198 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 198 of file VolumeMaterialMapper.hpp
Referenced by logger().
|
private |
The straight line propagator.
Definition at line 195 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 195 of file VolumeMaterialMapper.hpp