ATLAS Offline Software
TRT_LayerBuilderCond.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 //Trk
9 // InDetDD
11 // Athena
13 
14 // constructor
15 InDet::TRT_LayerBuilderCond::TRT_LayerBuilderCond(const std::string& t, const std::string& n, const IInterface* p) :
16  base_class(t,n,p)
17 {
18 }
19 
20 
21 // Athena standard methods
22 // initialize
24 {
25  ATH_MSG_DEBUG( "initialize()" );
26  // get TRT Detector Description
28  return StatusCode::SUCCESS;
29 }
30 
31 
33 std::unique_ptr<const std::vector<Trk::CylinderLayer*> >
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 }
46 
47 
49 std::unique_ptr<const std::vector<Trk::DiscLayer*> >
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 }
InDet::TRT_LayerBuilderCond::discLayers
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.
Definition: TRT_LayerBuilderCond.cxx:50
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
InDet::TRT_LayerBuilderCond::initialize
virtual StatusCode initialize() override final
AlgTool initialize method.
Definition: TRT_LayerBuilderCond.cxx:23
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
InDetDD::TRT_DetElementContainer
Class to hold different TRT detector elements structures.
Definition: TRT_DetElementContainer.h:25
TRT_DetElementContainer.h
DiscLayer.h
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
InDet::TRT_LayerBuilderCond::TRT_LayerBuilderCond
TRT_LayerBuilderCond(const std::string &, const std::string &, const IInterface *)
AlgTool style constructor.
Definition: TRT_LayerBuilderCond.cxx:15
InDet::TRT_LayerBuilderCond::cylindricalLayers
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.
Definition: TRT_LayerBuilderCond.cxx:34
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
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
CylinderLayer.h
IOVInfiniteRange.h
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
TRT_LayerBuilderCond.h
SG::WriteCondHandle
Definition: WriteCondHandle.h:26
SG::WriteCondHandle::addDependency
void addDependency(const EventIDRange &range)
Definition: WriteCondHandle.h:275