Analysis Software
Documentation for sPHENIX simulation software
|
Initiates and executes material mapping. More...
Classes | |
struct | Config |
Public Member Functions | |
MaterialMapping (const Config &cfg, Acts::Logging::Level level=Acts::Logging::INFO) | |
~MaterialMapping () override | |
ActsExamples::ProcessCode | execute (const AlgorithmContext &context) const override |
std::vector< std::pair< double, int > > | scoringParameters (uint64_t surfaceID) |
const Config & | config () const |
Readonly access to the config. | |
Public Member Functions inherited from ActsExamples::IAlgorithm | |
IAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO) | |
std::string | name () const override |
The algorithm name. | |
ProcessCode | internalExecute (const AlgorithmContext &context) final |
ProcessCode | initialize () override |
Initialize the algorithm. | |
ProcessCode | finalize () override |
Finalize the algorithm. | |
Private Attributes | |
Config | m_cfg |
internal config object | |
Acts::SurfaceMaterialMapper::State | m_mappingState |
Material mapping state. | |
Acts::VolumeMaterialMapper::State | m_mappingStateVol |
Material mapping state. | |
ReadDataHandle < std::unordered_map< size_t, Acts::RecordedMaterialTrack > > | m_inputMaterialTracks {this, "InputMaterialTracks"} |
WriteDataHandle < std::unordered_map< size_t, Acts::RecordedMaterialTrack > > | m_outputMaterialTracks {this, "OutputMaterialTracks"} |
Additional Inherited Members | |
Protected Member Functions inherited from ActsExamples::IAlgorithm | |
const Acts::Logger & | logger () const |
Initiates and executes material mapping.
The MaterialMapping reads in the MaterialTrack with a dedicated reader and uses the material mapper to project the material onto the tracking geometry
By construction, the material mapping needs inter-event information to build the material maps of accumulated single particle views. However, running it in one single event, puts enormous pressure onto the I/O structure.
It therefore saves the mapping state/cache as a private member variable and is designed to be executed in a single threaded mode.
Definition at line 72 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 72 of file MaterialMapping.hpp
ActsExamples::MaterialMapping::MaterialMapping | ( | const Config & | cfg, |
Acts::Logging::Level | level = Acts::Logging::INFO |
||
) |
Constructor
cfg | The configuration struct carrying the used tools |
level | The output logging level |
Definition at line 23 of file MaterialMapping.cpp.
View newest version in sPHENIX GitHub at line 23 of file MaterialMapping.cpp
References ACTS_INFO, ActsExamples::MaterialMapping::Config::collection, ActsExamples::MaterialMapping::Config::geoContext, ActsExamples::WriteDataHandle< T >::initialize(), ActsExamples::ReadDataHandle< T >::initialize(), m_cfg, m_inputMaterialTracks, m_mappingState, m_mappingStateVol, m_outputMaterialTracks, ActsExamples::MaterialMapping::Config::magFieldContext, ActsExamples::MaterialMapping::Config::mappingMaterialCollection, ActsExamples::MaterialMapping::Config::materialSurfaceMapper, ActsExamples::MaterialMapping::Config::materialVolumeMapper, and ActsExamples::MaterialMapping::Config::trackingGeometry.
|
override |
Destructor
Definition at line 54 of file MaterialMapping.cpp.
View newest version in sPHENIX GitHub at line 54 of file MaterialMapping.cpp
References m_cfg(), testing::internal::move(), and value.
|
inline |
Readonly access to the config.
Definition at line 127 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 127 of file MaterialMapping.hpp
References m_cfg.
|
overridevirtual |
Framework execute method
context | The algorithm context for event consistency |
Implements ActsExamples::IAlgorithm.
Definition at line 101 of file MaterialMapping.cpp.
View newest version in sPHENIX GitHub at line 101 of file MaterialMapping.cpp
References m_cfg(), testing::internal::move(), and SUCCESS.
std::vector< std::pair< double, int > > ActsExamples::MaterialMapping::scoringParameters | ( | uint64_t | surfaceID | ) |
Return the parameters to optimised the material map for a given surface Those parameters are the variance and the number of track for each bin
surfaceID | the ID of the surface of interest |
Definition at line 132 of file MaterialMapping.cpp.
View newest version in sPHENIX GitHub at line 132 of file MaterialMapping.cpp
References m_cfg().
|
private |
internal config object
Definition at line 130 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 130 of file MaterialMapping.hpp
Referenced by config(), and MaterialMapping().
|
private |
Definition at line 138 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 138 of file MaterialMapping.hpp
Referenced by MaterialMapping().
|
private |
Material mapping state.
Definition at line 132 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 132 of file MaterialMapping.hpp
Referenced by MaterialMapping().
|
private |
Material mapping state.
Definition at line 134 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 134 of file MaterialMapping.hpp
Referenced by MaterialMapping().
|
private |
Definition at line 140 of file MaterialMapping.hpp.
View newest version in sPHENIX GitHub at line 140 of file MaterialMapping.hpp
Referenced by MaterialMapping().