ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
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. More...
 
virtual ~TRT_LayerBuilderCond ()=default
 Destructor. More...
 
virtual StatusCode initialize () override final
 AlgTool initialize method. More...
 
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. More...
 
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. More...
 
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. More...
 
virtual const std::string & identification () const override final
 Name identification. More...
 

Private Attributes

SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainerm_readKeyTRTContainer
 

Friends

class TRT_VolumeBuilder
 Declare the TRT_VolumeBuilder as friend. More...
 

Detailed Description

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch

Definition at line 32 of file TRT_LayerBuilderCond.h.

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 {
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 }

◆ 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 {
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
28  return StatusCode::SUCCESS;
29 }

◆ 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; }

Friends And Related Function Documentation

◆ 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.


The documentation for this class was generated from the following files:
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
InDetDD::TRT_DetElementContainer
Class to hold different TRT detector elements structures.
Definition: TRT_DetElementContainer.h:25
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
InDet::TRT_LayerBuilderCond::m_readKeyTRTContainer
SG::ReadCondHandleKey< InDetDD::TRT_DetElementContainer > m_readKeyTRTContainer
Definition: TRT_LayerBuilderCond.h:70
beamspotman.n
n
Definition: beamspotman.py:731
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
SG::WriteCondHandle::addDependency
void addDependency(const EventIDRange &range)
Definition: WriteCondHandle.h:275