ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FW::Contextual::AlignmentDecorator 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/AlignmentDecorator.hpp>

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

Classes

struct  Config
 nested configuration struct More...
 

Public Types

using LayerStore = std::vector< std::shared_ptr< AlignedDetectorElement >>
 
using DetectorStore = std::vector< LayerStore >
 

Public Member Functions

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

Private Attributes

Config m_cfg
 the configuration class
 
std::unique_ptr< const
Acts::Logger
m_logger
 
std::string m_name = "AlignmentDecorator"
 !< the logging instance
 
std::mutex m_alignmentMutex
 
std::vector< bool > m_iovStatus
 
std::vector< bool > m_flushStatus
 

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 30 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 30 of file AlignmentDecorator.hpp

Member Typedef Documentation

Definition at line 33 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 33 of file AlignmentDecorator.hpp

Definition at line 32 of file AlignmentDecorator.hpp.

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

Constructor & Destructor Documentation

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

Constructor

Parameters
cfgConfiguration struct
loggerThe logging framework

Definition at line 14 of file AlignmentDecorator.cpp.

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

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

Virtual destructor.

Member Function Documentation

FW::ProcessCode FW::Contextual::AlignmentDecorator::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 19 of file AlignmentDecorator.cpp.

View newest version in sPHENIX GitHub at line 19 of file AlignmentDecorator.cpp

References ACTS_VERBOSE, FW::AlgorithmContext::eventNumber, gauss, FW::AlgorithmContext::geoContext, and SUCCESS.

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

Private access to the logging instance.

Definition at line 94 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 94 of file AlignmentDecorator.hpp

References m_logger.

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

decorator name() for screen output

Implements FW::IContextDecorator.

Definition at line 81 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 81 of file AlignmentDecorator.hpp

References m_name.

Member Data Documentation

std::mutex FW::Contextual::AlignmentDecorator::m_alignmentMutex
private

Definition at line 89 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 89 of file AlignmentDecorator.hpp

Config FW::Contextual::AlignmentDecorator::m_cfg
private

the configuration class

Definition at line 84 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 84 of file AlignmentDecorator.hpp

std::vector<bool> FW::Contextual::AlignmentDecorator::m_flushStatus
private

Definition at line 91 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 91 of file AlignmentDecorator.hpp

std::vector<bool> FW::Contextual::AlignmentDecorator::m_iovStatus
private

Definition at line 90 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 90 of file AlignmentDecorator.hpp

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

Definition at line 85 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 85 of file AlignmentDecorator.hpp

Referenced by logger().

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

!< the logging instance

protect multiple alignments to be loaded at once

Definition at line 86 of file AlignmentDecorator.hpp.

View newest version in sPHENIX GitHub at line 86 of file AlignmentDecorator.hpp

Referenced by name().


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