ATLAS Offline Software
Loading...
Searching...
No Matches
InDet::TRT_LayerBuilderCond Class Reference

#include <TRT_LayerBuilderCond.h>

Inheritance diagram for InDet::TRT_LayerBuilderCond:
Collaboration diagram for InDet::TRT_LayerBuilderCond:

Public Member Functions

 TRT_LayerBuilderCond (const std::string &, const std::string &, const IInterface *)
 AlgTool style constructor.
virtual ~TRT_LayerBuilderCond ()=default
 Destructor.
virtual StatusCode initialize () override final
 AlgTool initialize method.
virtual std::unique_ptr< const std::vector< Trk::CylinderLayer * > > cylindricalLayers (const EventContext &ctx, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle) const override final
 LayerBuilderCond interface method - returning Barrel-like layers.
virtual std::unique_ptr< const std::vector< Trk::DiscLayer * > > discLayers (const EventContext &ctx, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle) const override final
 LayerBuilderCond interface method - returning Endcap-like layers.
virtual std::unique_ptr< const std::vector< Trk::PlaneLayer * > > planarLayers (const EventContext &ctx, SG::WriteCondHandle< Trk::TrackingGeometry > &whandle) const override final
 LayerBuilderCond interface method - returning Planar-like layers.
virtual const std::string & identification () const override final
 Name identification.

Private Attributes

SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainerm_readKeyTRTContainer

Friends

class TRT_VolumeBuilder
 Declare the TRT_VolumeBuilder as friend.

Detailed Description

Constructor & Destructor Documentation

◆ TRT_LayerBuilderCond()

InDet::TRT_LayerBuilderCond::TRT_LayerBuilderCond ( const std::string & t,
const std::string & n,
const IInterface * p )

AlgTool style constructor.

Definition at line 15 of file TRT_LayerBuilderCond.cxx.

15 :
16 base_class(t,n,p)
17{
18}

◆ ~TRT_LayerBuilderCond()

virtual InDet::TRT_LayerBuilderCond::~TRT_LayerBuilderCond ( )
virtualdefault

Destructor.

Member Function Documentation

◆ cylindricalLayers()

std::unique_ptr< const std::vector< Trk::CylinderLayer * > > InDet::TRT_LayerBuilderCond::cylindricalLayers ( const EventContext & ctx,
SG::WriteCondHandle< Trk::TrackingGeometry > & whandle ) const
finaloverridevirtual

LayerBuilderCond interface method - returning Barrel-like layers.

Definition at line 34 of file TRT_LayerBuilderCond.cxx.

36{
37 SG::ReadCondHandle<InDetDD::TRT_DetElementContainer> readHandleTRTContainer{m_readKeyTRTContainer,ctx};
38 const InDetDD::TRT_DetElementContainer* trtContainer{*readHandleTRTContainer};
39 if(trtContainer == nullptr){
40 ATH_MSG_ERROR("Aligned TRT could not be retrieved from CondStore: " << m_readKeyTRTContainer);
41 return nullptr;
42 }
43 whandle.addDependency (readHandleTRTContainer);
44 return cylindricalLayersImpl(trtContainer);
45}
#define ATH_MSG_ERROR(x)
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_readKeyTRTContainer
void addDependency(const EventIDRange &range)

◆ discLayers()

std::unique_ptr< const std::vector< Trk::DiscLayer * > > InDet::TRT_LayerBuilderCond::discLayers ( const EventContext & ctx,
SG::WriteCondHandle< Trk::TrackingGeometry > & whandle ) const
finaloverridevirtual

LayerBuilderCond interface method - returning Endcap-like layers.

Definition at line 50 of file TRT_LayerBuilderCond.cxx.

52{
53 SG::ReadCondHandle<InDetDD::TRT_DetElementContainer> readHandleTRTContainer{m_readKeyTRTContainer, ctx};
54 const InDetDD::TRT_DetElementContainer* trtContainer{*readHandleTRTContainer};
55 if(trtContainer == nullptr){
56 ATH_MSG_ERROR("Aligned TRT could not be retrieved from CondStore: " << m_readKeyTRTContainer);
57 return nullptr;
58 }
59 whandle.addDependency (readHandleTRTContainer);
60 return discLayersImpl(trtContainer);
61}

◆ identification()

const std::string & InDet::TRT_LayerBuilderCond::identification ( ) const
inlinefinaloverridevirtual

Name identification.

Definition at line 83 of file TRT_LayerBuilderCond.h.

84 { return m_identification; }

◆ initialize()

StatusCode InDet::TRT_LayerBuilderCond::initialize ( )
finaloverridevirtual

AlgTool initialize method.

Definition at line 23 of file TRT_LayerBuilderCond.cxx.

24{
25 ATH_MSG_DEBUG( "initialize()" );
26 // get TRT Detector Description
27 ATH_CHECK(m_readKeyTRTContainer.initialize());
28 return StatusCode::SUCCESS;
29}
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x)

◆ planarLayers()

std::unique_ptr< const std::vector< Trk::PlaneLayer * > > InDet::TRT_LayerBuilderCond::planarLayers ( const EventContext & ctx,
SG::WriteCondHandle< Trk::TrackingGeometry > & whandle ) const
inlinefinaloverridevirtual

LayerBuilderCond interface method - returning Planar-like layers.

Definition at line 79 of file TRT_LayerBuilderCond.h.

81 { return nullptr; }

◆ TRT_VolumeBuilder

friend class TRT_VolumeBuilder
friend

Declare the TRT_VolumeBuilder as friend.

Definition at line 36 of file TRT_LayerBuilderCond.h.

Member Data Documentation

◆ m_readKeyTRTContainer

SG::ReadCondHandleKey<InDetDD::TRT_DetElementContainer> InDet::TRT_LayerBuilderCond::m_readKeyTRTContainer
private
Initial value:
{
this,
"ReadKeyTRTDetectorElements",
"TRT_DetElementContainer",
"Key for input TRT detector element container read from cond store"
}

Definition at line 70 of file TRT_LayerBuilderCond.h.

70 {
71 this,
72 "ReadKeyTRTDetectorElements",
73 "TRT_DetElementContainer",
74 "Key for input TRT detector element container read from cond store"
75 };

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