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

#include <acts/blob/sPHENIX/Examples/Detectors/MagneticField/include/ActsExamples/Plugins/BField/BFieldScalor.hpp>

+ Inheritance diagram for ActsExamples::BField::BFieldScalor:
+ Collaboration diagram for ActsExamples::BField::BFieldScalor:

Classes

struct  Config
 nested configuration struct More...
 

Public Member Functions

 BFieldScalor (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("BFieldScalor", Acts::Logging::INFO))
 
virtual ~BFieldScalor ()=default
 Virtual destructor.
 
ProcessCode decorate (AlgorithmContext &context) finaloverride
 decorates (adds, modifies) the AlgorithmContext with a geometric rotation per event
 
const std::string & name () const finaloverride
 decorator name() for screen output
 
- Public Member Functions inherited from ActsExamples::IContextDecorator
virtual ~IContextDecorator ()=default
 Virtual destructor.
 

Private Member Functions

const Acts::Loggerlogger () const
 Private access to the logging instance.
 

Private Attributes

Config m_cfg
 the configuration class
 
std::unique_ptr< const
Acts::Logger
m_logger
 
std::string m_name = "BFieldScalor"
 !< the logging instance
 

Detailed Description

A mockup service that rotates a cylindrical geometry

Definition at line 25 of file BFieldScalor.hpp.

View newest version in sPHENIX GitHub at line 25 of file BFieldScalor.hpp

Constructor & Destructor Documentation

ActsExamples::BField::BFieldScalor::BFieldScalor ( const Config cfg,
std::unique_ptr< const Acts::Logger logger = Acts::getDefaultLogger("BFieldScalor", Acts::Logging::INFO) 
)

Constructor

Parameters
cfgConfiguration struct
loggerThe logging framework

Definition at line 15 of file BFieldScalor.cpp.

View newest version in sPHENIX GitHub at line 15 of file BFieldScalor.cpp

virtual ActsExamples::BField::BFieldScalor::~BFieldScalor ( )
virtualdefault

Virtual destructor.

Member Function Documentation

ActsExamples::ProcessCode ActsExamples::BField::BFieldScalor::decorate ( AlgorithmContext context)
finaloverridevirtual

decorates (adds, modifies) the AlgorithmContext with a geometric rotation per event

Note
If decorators depend on each other, they have to be added in order.
Parameters
contextthe bare (or at least non-const) Event context

Implements ActsExamples::IContextDecorator.

Definition at line 20 of file BFieldScalor.cpp.

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

References ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::magFieldContext, and SUCCESS.

const Acts::Logger& ActsExamples::BField::BFieldScalor::logger ( ) const
inlineprivate

Private access to the logging instance.

Definition at line 62 of file BFieldScalor.hpp.

View newest version in sPHENIX GitHub at line 62 of file BFieldScalor.hpp

References m_logger.

const std::string& ActsExamples::BField::BFieldScalor::name ( ) const
inlinefinaloverridevirtual

decorator name() for screen output

Implements ActsExamples::IContextDecorator.

Definition at line 54 of file BFieldScalor.hpp.

View newest version in sPHENIX GitHub at line 54 of file BFieldScalor.hpp

References m_name.

Referenced by eicpy.verify.PythiaHistograms::__init__(), and eicpy.verify.DjangohHistograms::__init__().

+ Here is the caller graph for this function:

Member Data Documentation

Config ActsExamples::BField::BFieldScalor::m_cfg
private

the configuration class

Definition at line 57 of file BFieldScalor.hpp.

View newest version in sPHENIX GitHub at line 57 of file BFieldScalor.hpp

std::unique_ptr<const Acts::Logger> ActsExamples::BField::BFieldScalor::m_logger
private

Definition at line 58 of file BFieldScalor.hpp.

View newest version in sPHENIX GitHub at line 58 of file BFieldScalor.hpp

Referenced by logger().

std::string ActsExamples::BField::BFieldScalor::m_name = "BFieldScalor"
private

!< the logging instance

Definition at line 59 of file BFieldScalor.hpp.

View newest version in sPHENIX GitHub at line 59 of file BFieldScalor.hpp

Referenced by name().


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