ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ActsTrackingGeometryTool Class Reference

#include <ActsTrackingGeometryTool.h>

Inheritance diagram for ActsTrackingGeometryTool:
Collaboration diagram for ActsTrackingGeometryTool:

Public Member Functions

StatusCode initialize () override
 
 ActsTrackingGeometryTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual std::shared_ptr< const Acts::TrackingGeometry > trackingGeometry () const override
 
virtual const ActsGeometryContextgetGeometryContext (const EventContext &ctx) const override
 
const ActsGeometryContextgetGeometryContext () const override
 
virtual const ActsGeometryContextgetNominalGeometryContext () const override
 

Private Attributes

ServiceHandle< IActsTrackingGeometrySvcm_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
 
SG::ReadHandleKey< ActsGeometryContextm_rchk
 

Detailed Description

Definition at line 29 of file ActsTrackingGeometryTool.h.

Constructor & Destructor Documentation

◆ ActsTrackingGeometryTool()

ActsTrackingGeometryTool::ActsTrackingGeometryTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 7 of file ActsTrackingGeometryTool.cxx.

9  : base_class(type, name, parent)
10 {
11 }

Member Function Documentation

◆ getGeometryContext() [1/2]

const ActsGeometryContext & ActsTrackingGeometryTool::getGeometryContext ( ) const
override

Definition at line 49 of file ActsTrackingGeometryTool.cxx.

49  {
50  return getGeometryContext(Gaudi::Hive::currentContext());
51 }

◆ getGeometryContext() [2/2]

const ActsGeometryContext & ActsTrackingGeometryTool::getGeometryContext ( const EventContext &  ctx) const
overridevirtual

Definition at line 32 of file ActsTrackingGeometryTool.cxx.

33 {
34  ATH_MSG_DEBUG("Creating alignment context for event");
36 
37  if(!rch.isValid()) {
38  ATH_MSG_ERROR("Creating alignment context failed: read cond handle invalid!");
39  }
40 
41  return *rch;
42 }

◆ getNominalGeometryContext()

const ActsGeometryContext & ActsTrackingGeometryTool::getNominalGeometryContext ( ) const
overridevirtual

Definition at line 45 of file ActsTrackingGeometryTool.cxx.

45  {
46 
47  return m_trackingGeometrySvc->getNominalContext();
48 }

◆ initialize()

StatusCode ActsTrackingGeometryTool::initialize ( )
override

Definition at line 14 of file ActsTrackingGeometryTool.cxx.

15 {
16  ATH_MSG_INFO(name() << " initializing");
17 
18  ATH_CHECK( m_trackingGeometrySvc.retrieve() );
19 
21 
22  return StatusCode::SUCCESS;
23 }

◆ trackingGeometry()

std::shared_ptr< const Acts::TrackingGeometry > ActsTrackingGeometryTool::trackingGeometry ( ) const
overridevirtual

Definition at line 26 of file ActsTrackingGeometryTool.cxx.

27 {
28  return m_trackingGeometrySvc->trackingGeometry();
29 }

Member Data Documentation

◆ m_rchk

SG::ReadHandleKey<ActsGeometryContext> ActsTrackingGeometryTool::m_rchk
private
Initial value:
{
this, "ActsAlignmentKey", "ActsAlignment", "cond read key for the alignment"}

Definition at line 53 of file ActsTrackingGeometryTool.h.

◆ m_trackingGeometrySvc

ServiceHandle<IActsTrackingGeometrySvc> ActsTrackingGeometryTool::m_trackingGeometrySvc {this, "TrackingGeometrySvc", "ActsTrackingGeometrySvc"}
private

Definition at line 51 of file ActsTrackingGeometryTool.h.


The documentation for this class was generated from the following files:
ActsTrackingGeometryTool::getGeometryContext
const ActsGeometryContext & getGeometryContext() const override
Definition: ActsTrackingGeometryTool.cxx:49
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
test_pyathena.parent
parent
Definition: test_pyathena.py:15
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
ActsTrackingGeometryTool::m_trackingGeometrySvc
ServiceHandle< IActsTrackingGeometrySvc > m_trackingGeometrySvc
Definition: ActsTrackingGeometryTool.h:51
ActsTrackingGeometryTool::m_rchk
SG::ReadHandleKey< ActsGeometryContext > m_rchk
Definition: ActsTrackingGeometryTool.h:53
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78