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

Initiates and executes material mapping. More...

#include <acts/blob/master/Examples/Algorithms/MaterialMapping/include/ACTFW/MaterialMapping/MaterialMapping.hpp>

+ Inheritance diagram for FW::MaterialMapping:
+ Collaboration diagram for FW::MaterialMapping:

Classes

struct  Config
 

Public Member Functions

 MaterialMapping (const Config &cfg, Acts::Logging::Level level=Acts::Logging::INFO)
 
 ~MaterialMapping ()
 
FW::ProcessCode execute (const AlgorithmContext &context) const finaloverride
 
- Public Member Functions inherited from FW::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.
 

Additional Inherited Members

- Protected Member Functions inherited from FW::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 52 of file MaterialMapping.hpp.

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

Constructor & Destructor Documentation

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

Constructor

Parameters
cfgThe configuration struct carrying the used tools
levelThe output logging level

Definition at line 20 of file MaterialMapping.cpp.

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

References ACTS_INFO, FW::MaterialMapping::Config::geoContext, m_cfg, m_mappingState, FW::MaterialMapping::Config::magFieldContext, FW::MaterialMapping::Config::materialMapper, and FW::MaterialMapping::Config::trackingGeometry.

FW::MaterialMapping::~MaterialMapping ( )

Destructor

  • it also writes out the file

Definition at line 39 of file MaterialMapping.cpp.

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

Member Function Documentation

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

Framework execute method

Parameters
contextThe algorithm context for event consistency

Implements FW::BareAlgorithm.

Definition at line 56 of file MaterialMapping.cpp.

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

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

+ Here is the call graph for this function:

Member Data Documentation

Config FW::MaterialMapping::m_cfg
private

internal config object

Definition at line 101 of file MaterialMapping.hpp.

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

Referenced by MaterialMapping().

Acts::SurfaceMaterialMapper::State FW::MaterialMapping::m_mappingState
private

Material mapping state.

Definition at line 103 of file MaterialMapping.hpp.

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

Referenced by MaterialMapping().


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