EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::MaterialMapping Class Reference

Initiates and executes material mapping. More...

#include <acts/blob/sPHENIX/Examples/Algorithms/MaterialMapping/include/ActsExamples/MaterialMapping/MaterialMapping.hpp>

+ Inheritance diagram for ActsExamples::MaterialMapping:
+ Collaboration diagram for ActsExamples::MaterialMapping:

Classes

struct  Config
 

Public Member Functions

 MaterialMapping (const Config &cfg, Acts::Logging::Level level=Acts::Logging::INFO)
 
 ~MaterialMapping ()
 
ActsExamples::ProcessCode execute (const AlgorithmContext &context) const finaloverride
 
- Public Member Functions inherited from ActsExamples::BareAlgorithm
 BareAlgorithm (std::string name, Acts::Logging::Level level=Acts::Logging::INFO)
 
std::string name () const finaloverride
 The algorithm name.
 

Private Attributes

Config m_cfg
 internal config object
 
Acts::SurfaceMaterialMapper::State m_mappingState
 Material mapping state.
 
Acts::VolumeMaterialMapper::State m_mappingStateVol
 Material mapping state.
 

Additional Inherited Members

- Protected Member Functions inherited from ActsExamples::BareAlgorithm
const Acts::Loggerlogger () const
 

Detailed Description

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 53 of file MaterialMapping.hpp.

View newest version in sPHENIX GitHub at line 53 of file MaterialMapping.hpp

Constructor & Destructor Documentation

ActsExamples::MaterialMapping::MaterialMapping ( const Config cfg,
Acts::Logging::Level  level = Acts::Logging::INFO 
)
ActsExamples::MaterialMapping::~MaterialMapping ( )

Destructor

  • it also writes out the file

Definition at line 44 of file MaterialMapping.cpp.

View newest version in sPHENIX GitHub at line 44 of file MaterialMapping.cpp

References value.

Member Function Documentation

ActsExamples::ProcessCode ActsExamples::MaterialMapping::execute ( const AlgorithmContext context) const
finaloverridevirtual

Framework execute method

Parameters
contextThe algorithm context for event consistency

Implements ActsExamples::BareAlgorithm.

Definition at line 91 of file MaterialMapping.cpp.

View newest version in sPHENIX GitHub at line 91 of file MaterialMapping.cpp

References ActsExamples::WhiteBoard::add(), ActsExamples::AlgorithmContext::eventStore, ActsExamples::WhiteBoard::get(), and SUCCESS.

+ Here is the call graph for this function:

Member Data Documentation

Config ActsExamples::MaterialMapping::m_cfg
private

internal config object

Definition at line 107 of file MaterialMapping.hpp.

View newest version in sPHENIX GitHub at line 107 of file MaterialMapping.hpp

Referenced by MaterialMapping().

Acts::SurfaceMaterialMapper::State ActsExamples::MaterialMapping::m_mappingState
private

Material mapping state.

Definition at line 109 of file MaterialMapping.hpp.

View newest version in sPHENIX GitHub at line 109 of file MaterialMapping.hpp

Referenced by MaterialMapping().

Acts::VolumeMaterialMapper::State ActsExamples::MaterialMapping::m_mappingStateVol
private

Material mapping state.

Definition at line 111 of file MaterialMapping.hpp.

View newest version in sPHENIX GitHub at line 111 of file MaterialMapping.hpp

Referenced by MaterialMapping().


The documentation for this class was generated from the following files: