Analysis Software
Documentation for sPHENIX simulation software
|
A mockup service that rotates the modules in a simple tracking geometry. More...
Classes | |
struct | Config |
nested configuration struct More... | |
Public Member Functions | |
ExternalAlignmentDecorator (const Config &cfg, std::unique_ptr< const Acts::Logger > logger=Acts::getDefaultLogger("ExternalAlignmentDecorator", Acts::Logging::INFO)) | |
~ExternalAlignmentDecorator () override=default | |
Virtual destructor. | |
ProcessCode | decorate (AlgorithmContext &context) override |
decorates (adds, modifies) the AlgorithmContext with a geometric rotation per event | |
const std::string & | name () const override |
decorator name() for screen output | |
Private Member Functions | |
const Acts::Logger & | logger () 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 = "ExternalAlignmentDecorator" |
!< the logging instance | |
std::vector< Acts::Transform3 > | m_nominalStore |
Map of nominal transforms. | |
std::unordered_map< unsigned int, std::shared_ptr < ExternallyAlignedDetectorElement::AlignmentStore > > | m_activeIovs |
std::mutex | m_iovMutex |
size_t | m_eventsSeen {0} |
Additional Inherited Members | |
Static Protected Member Functions inherited from ActsExamples::Contextual::AlignmentDecorator | |
static void | applyTransform (Acts::Transform3 &trf, const Config &cfg, RandomEngine &rng, unsigned int iov) |
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 41 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 41 of file ExternalAlignmentDecorator.hpp
ActsExamples::Contextual::ExternalAlignmentDecorator::ExternalAlignmentDecorator | ( | const Config & | cfg, |
std::unique_ptr< const Acts::Logger > | logger = Acts::getDefaultLogger( "ExternalAlignmentDecorator", Acts::Logging::INFO) |
||
) |
Constructor
cfg | Configuration struct |
logger | The logging framework |
Definition at line 24 of file ExternalAlignmentDecorator.cpp.
View newest version in sPHENIX GitHub at line 24 of file ExternalAlignmentDecorator.cpp
References m_cfg, parseGeometry(), and ActsExamples::Contextual::ExternalAlignmentDecorator::Config::trackingGeometry.
|
overridedefault |
Virtual destructor.
|
overridevirtual |
decorates (adds, modifies) the AlgorithmContext with a geometric rotation per event
context | the bare (or at least non-const) Event context |
Implements ActsExamples::IContextDecorator.
Definition at line 34 of file ExternalAlignmentDecorator.cpp.
View newest version in sPHENIX GitHub at line 34 of file ExternalAlignmentDecorator.cpp
References ACTS_DEBUG, ACTS_VERBOSE, assert, ActsExamples::AlgorithmContext::eventNumber, ActsExamples::AlgorithmContext::geoContext, it, m_cfg(), testing::internal::move(), conftest::rng(), utils::status, and SUCCESS.
|
inlineprivate |
Private access to the logging instance.
Definition at line 91 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 91 of file ExternalAlignmentDecorator.hpp
References m_logger.
|
inlineoverridevirtual |
decorator name() for screen output
Implements ActsExamples::IContextDecorator.
Definition at line 71 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 71 of file ExternalAlignmentDecorator.hpp
References m_name.
|
private |
Populate the nominal transforms this parses the TrackingGeometry and fills the nominal store
tGeometry | the tracking geometry |
Definition at line 99 of file ExternalAlignmentDecorator.cpp.
View newest version in sPHENIX GitHub at line 99 of file ExternalAlignmentDecorator.cpp
References testing::internal::move(), writeMapConfig::surface, and Acts::TrackingGeometry::visitSurfaces().
Referenced by ExternalAlignmentDecorator().
|
private |
Definition at line 84 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 84 of file ExternalAlignmentDecorator.hpp
|
private |
the configuration class
Definition at line 74 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 74 of file ExternalAlignmentDecorator.hpp
Referenced by ExternalAlignmentDecorator().
|
private |
Definition at line 88 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 88 of file ExternalAlignmentDecorator.hpp
|
private |
Definition at line 86 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 86 of file ExternalAlignmentDecorator.hpp
|
private |
Definition at line 75 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 75 of file ExternalAlignmentDecorator.hpp
Referenced by logger().
|
private |
!< the logging instance
Definition at line 76 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 76 of file ExternalAlignmentDecorator.hpp
Referenced by name().
|
private |
Map of nominal transforms.
Definition at line 79 of file ExternalAlignmentDecorator.hpp.
View newest version in sPHENIX GitHub at line 79 of file ExternalAlignmentDecorator.hpp