Analysis Software
Documentation for sPHENIX simulation software
|
Classes | |
struct | Config |
Public Member Functions | |
ScalableBFieldService (const Config &cfg, Acts::Logging::Level lvl) | |
const std::string & | name () const override |
The service name. | |
ProcessCode | decorate (AlgorithmContext &ctx) override |
Public Member Functions inherited from ActsExamples::IContextDecorator | |
virtual | ~IContextDecorator ()=default |
Virtual destructor. | |
Private Member Functions | |
const Acts::Logger & | logger () const |
Private Attributes | |
Config | m_cfg |
std::unique_ptr< const Acts::Logger > | m_logger |
A mock service that changes the magnetic field scale for each event.
The magnetic field scaling changes as some function of the event number.
Definition at line 25 of file ScalableBFieldService.hpp.
View newest version in sPHENIX GitHub at line 25 of file ScalableBFieldService.hpp
ActsExamples::ScalableBFieldService::ScalableBFieldService | ( | const Config & | cfg, |
Acts::Logging::Level | lvl | ||
) |
Construct the magnetic field service.
cfg | Configuration struct |
lvl | Logging level |
Definition at line 22 of file ScalableBFieldService.cpp.
View newest version in sPHENIX GitHub at line 22 of file ScalableBFieldService.cpp
|
overridevirtual |
Update the magnetic field context.
ctx | The per-event context |
Implements ActsExamples::IContextDecorator.
Definition at line 30 of file ScalableBFieldService.cpp.
View newest version in sPHENIX GitHub at line 30 of file ScalableBFieldService.cpp
References ActsExamples::AlgorithmContext::eventNumber, m_cfg(), magCtx, ActsExamples::AlgorithmContext::magFieldContext, ActsExamples::ScalableBFieldContext::scalor, and SUCCESS.
|
inlineprivate |
Definition at line 50 of file ScalableBFieldService.hpp.
View newest version in sPHENIX GitHub at line 50 of file ScalableBFieldService.hpp
References m_logger.
|
overridevirtual |
The service name.
Implements ActsExamples::IContextDecorator.
Definition at line 26 of file ScalableBFieldService.cpp.
View newest version in sPHENIX GitHub at line 26 of file ScalableBFieldService.cpp
|
private |
Definition at line 47 of file ScalableBFieldService.hpp.
View newest version in sPHENIX GitHub at line 47 of file ScalableBFieldService.hpp
|
private |
Definition at line 48 of file ScalableBFieldService.hpp.
View newest version in sPHENIX GitHub at line 48 of file ScalableBFieldService.hpp
Referenced by logger().