ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
#include <acts/blob/master/Core/include/Acts/Material/VolumeMaterialMapper.hpp>
Classes | |
struct | Config |
struct | MaterialVolume |
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 | collectMaterialSurface (State &, const TrackingVolume &tVolume) const |
check and insert | |
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::GeometryID
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 56 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 56 of file VolumeMaterialMapper.hpp
using Acts::VolumeMaterialMapper::StraightLinePropagator = Propagator<StraightLineStepper, Navigator> |
Definition at line 58 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 58 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 32 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 32 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 75 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 75 of file VolumeMaterialMapper.cpp
References ACTS_DEBUG, Acts::adjustBinUtility(), Acts::GeometryObject::geoID(), mat, Acts::VolumeMaterialMapper::State::materialBin, Acts::VolumeMaterialMapper::State::recordedMaterial, Acts::GeometryID::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 |
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 39 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 39 of file VolumeMaterialMapper.cpp
References Acts::TrackingGeometry::highestTrackingVolume(), and Acts::Test::world.
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 122 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 122 of file VolumeMaterialMapper.cpp
References Acts::AccumulatedVolumeMaterial::accumulate(), ACTS_DEBUG, Acts::AccumulatedVolumeMaterial::average(), Acts::createGrid2D(), Acts::createGrid3D(), G4Analysis::make_unique(), Acts::mapMaterialPoints(), mat, Acts::VolumeMaterialMapper::State::materialBin, Acts::VolumeMaterialMapper::State::recordedMaterial, and Acts::VolumeMaterialMapper::State::volumeMaterial.
|
inlineprivate |
Standard logger method.
Definition at line 165 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 165 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 170 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 170 of file VolumeMaterialMapper.cpp
References ACTS_VERBOSE, Acts::PropagatorOptions< action_list_t, aborter_list_t >::debug, Acts::VolumeMaterialMapper::State::geoContext, Acts::VolumeMaterialMapper::State::magFieldContext, Acts::VolumeMaterialMapper::State::recordedMaterial, start(), Acts::Test::step(), and Acts::GeometryID::volume().
|
private |
finds all surfaces with ProtoVolumeMaterial of a volume
mState | The state to be filled |
tVolume | is current TrackingVolume |
Definition at line 51 of file VolumeMaterialMapper.cpp.
View newest version in sPHENIX GitHub at line 51 of file VolumeMaterialMapper.cpp
References ACTS_VERBOSE, Acts::TrackingVolume::confinedVolumes(), Acts::TrackingVolume::denseVolumes(), and Acts::TrackingVolume::volumeName().
|
private |
The configuration object.
Definition at line 168 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 168 of file VolumeMaterialMapper.hpp
|
private |
The logging instance.
Definition at line 174 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 174 of file VolumeMaterialMapper.hpp
Referenced by logger().
|
private |
The straight line propagator.
Definition at line 171 of file VolumeMaterialMapper.hpp.
View newest version in sPHENIX GitHub at line 171 of file VolumeMaterialMapper.hpp