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

A mockup service that rotates the modules in a simple tracking geometry. More...

#include <acts/blob/master/Examples/Detectors/ContextualDetector/include/ACTFW/ContextualDetector/PayloadDecorator.hpp>

+ Inheritance diagram for FW::Contextual::PayloadDecorator:
+ Collaboration diagram for FW::Contextual::PayloadDecorator:

Classes

struct  Config
 nested configuration struct More...
 

Public Member Functions

 PayloadDecorator (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("PayloadDecorator", Acts::Logging::INFO))
 
virtual ~PayloadDecorator ()=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 FW::IContextDecorator
virtual ~IContextDecorator ()=default
 Virtual destructor.
 

Private Member Functions

const Acts::Loggerlogger () const
 Private access to the logging instance.
 
void parseGeometry (const Acts::TrackingGeometry &tGeometry)
 

Private Attributes

Config m_cfg
 the configuration class
 
std::unique_ptr< const
Acts::Logger
m_logger
 
std::string m_name = "PayloadDecorator"
 !< the logging instance
 
std::vector< Acts::Transform3Dm_nominalStore
 Map of nominal transforms.
 

Detailed Description

A mockup service that rotates the modules in a simple tracking geometry.

It acts on the PayloadDetectorElement, i.e. the geometry context carries the full transform store (payload)

Definition at line 32 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 32 of file PayloadDecorator.hpp

Constructor & Destructor Documentation

FW::Contextual::PayloadDecorator::PayloadDecorator ( const Config cfg,
std::unique_ptr< const Acts::Logger logger = Acts::getDefaultLogger("PayloadDecorator",                                              Acts::Logging::INFO) 
)

Constructor

Parameters
cfgConfiguration struct
loggerThe logging framework

Definition at line 14 of file PayloadDecorator.cpp.

View newest version in sPHENIX GitHub at line 14 of file PayloadDecorator.cpp

References m_cfg, parseGeometry(), and FW::Contextual::PayloadDecorator::Config::trackingGeometry.

+ Here is the call graph for this function:

virtual FW::Contextual::PayloadDecorator::~PayloadDecorator ( )
virtualdefault

Virtual destructor.

Member Function Documentation

FW::ProcessCode FW::Contextual::PayloadDecorator::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 FW::IContextDecorator.

Definition at line 24 of file PayloadDecorator.cpp.

View newest version in sPHENIX GitHub at line 24 of file PayloadDecorator.cpp

References ACTS_VERBOSE, FW::Contextual::PayloadDetectorElement::ContextType::alignmentStore, FW::AlgorithmContext::eventNumber, FW::AlgorithmContext::geoContext, and SUCCESS.

const Acts::Logger& FW::Contextual::PayloadDecorator::logger ( ) const
inlineprivate

Private access to the logging instance.

Definition at line 79 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 79 of file PayloadDecorator.hpp

References m_logger.

const std::string& FW::Contextual::PayloadDecorator::name ( ) const
inlinefinaloverridevirtual

decorator name() for screen output

Implements FW::IContextDecorator.

Definition at line 68 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 68 of file PayloadDecorator.hpp

References m_name.

void FW::Contextual::PayloadDecorator::parseGeometry ( const Acts::TrackingGeometry tGeometry)
private

Populate the nominal transforms this parses the TrackingGeometry and fills the nominal store

Parameters
tGeometrythe tracking geometry

Definition at line 44 of file PayloadDecorator.cpp.

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

References surface(), and Acts::TrackingGeometry::visitSurfaces().

Referenced by PayloadDecorator().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

Config FW::Contextual::PayloadDecorator::m_cfg
private

the configuration class

Definition at line 71 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 71 of file PayloadDecorator.hpp

Referenced by PayloadDecorator().

std::unique_ptr<const Acts::Logger> FW::Contextual::PayloadDecorator::m_logger
private

Definition at line 72 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 72 of file PayloadDecorator.hpp

Referenced by logger().

std::string FW::Contextual::PayloadDecorator::m_name = "PayloadDecorator"
private

!< the logging instance

Definition at line 73 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 73 of file PayloadDecorator.hpp

Referenced by name().

std::vector<Acts::Transform3D> FW::Contextual::PayloadDecorator::m_nominalStore
private

Map of nominal transforms.

Definition at line 76 of file PayloadDecorator.hpp.

View newest version in sPHENIX GitHub at line 76 of file PayloadDecorator.hpp


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