ATLAS Offline Software
Public Member Functions | Protected Attributes | Private Attributes | List of all members
ForDetEnvelopeTool Class Referencefinal

#include <ForDetEnvelopeTool.h>

Inheritance diagram for ForDetEnvelopeTool:
Collaboration diagram for ForDetEnvelopeTool:

Public Member Functions

 ForDetEnvelopeTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~ForDetEnvelopeTool () override final=default
 
virtual StatusCode create () override final
 
virtual StatusCode clear () override final
 
virtual GeoVDetectorManager * manager ()
 The Detector Node corresponding to this tool. More...
 
virtual const GeoVDetectorManager * manager () const
 
virtual StatusCode registerCallback ATLAS_NOT_THREAD_SAFE () override
 
virtual StatusCode align (IOVSVC_CALLBACK_ARGS) override
 

Protected Attributes

GeoVDetectorManager * m_detector
 

Private Attributes

const ForDetEnvelopeManagerm_manager
 

Detailed Description

Definition at line 11 of file ForDetEnvelopeTool.h.

Constructor & Destructor Documentation

◆ ForDetEnvelopeTool()

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

Definition at line 15 of file ForDetEnvelopeTool.cxx.

17  :
19  m_manager(nullptr)
20 {
21 }

◆ ~ForDetEnvelopeTool()

virtual ForDetEnvelopeTool::~ForDetEnvelopeTool ( )
finaloverridevirtualdefault

Member Function Documentation

◆ align()

StatusCode GeoModelTool::align ( IOVSVC_CALLBACK_ARGS  )
overridevirtualinherited

Reimplemented in ALFA_DetectorTool, HGTD_DetectorTool, TRT_DetectorTool, LArDetectorToolNV, PixelDetectorTool, and SCT_DetectorTool.

Definition at line 33 of file GeoModelTool.cxx.

34 {
35  return StatusCode::SUCCESS;
36 }

◆ ATLAS_NOT_THREAD_SAFE()

virtual StatusCode registerCallback GeoModelTool::ATLAS_NOT_THREAD_SAFE ( )
overridevirtualinherited

◆ clear()

StatusCode ForDetEnvelopeTool::clear ( )
finaloverridevirtual

Reimplemented from GeoModelTool.

Definition at line 53 of file ForDetEnvelopeTool.cxx.

54 {
56  if(proxy) {
57  proxy->reset();
58  m_manager = nullptr;
59  }
60  return StatusCode::SUCCESS;
61 }

◆ create()

StatusCode ForDetEnvelopeTool::create ( )
finaloverridevirtual

Definition at line 23 of file ForDetEnvelopeTool.cxx.

24 {
25  ATH_MSG_INFO("Building Forward Detectors Envelope");
26 
27  GeoModelExperiment* theExpt;
28  if (StatusCode::SUCCESS != detStore()->retrieve(theExpt,"ATLAS")) {
29  ATH_MSG_ERROR("Could not find GeoModelExperiment ATLAS");
30  return StatusCode::FAILURE;
31  }
32 
33  if(nullptr==m_manager) {
34  GeoPhysVol *world=&*theExpt->getPhysVol();
35 
36  ForDetEnvelopeFactory theFactory(detStore().operator->());
37  theFactory.create(world);
38 
39  m_manager = theFactory.getDetectorManager();
40  theExpt->addManager(m_manager);
41  StatusCode sc = detStore()->record(m_manager,
42  m_manager->getName());
43 
44  if (sc.isFailure()) {
45  ATH_MSG_ERROR("Could not register ForDetEnvelope detector manager");
46  return StatusCode::FAILURE;
47  }
48  return StatusCode::SUCCESS;
49  }
50  return StatusCode::FAILURE;
51 }

◆ manager() [1/2]

GeoVDetectorManager * GeoModelTool::manager ( )
virtualinherited

The Detector Node corresponding to this tool.

Definition at line 21 of file GeoModelTool.cxx.

21  {
22  return m_detector;
23 }

◆ manager() [2/2]

const GeoVDetectorManager * GeoModelTool::manager ( ) const
virtualinherited

Definition at line 24 of file GeoModelTool.cxx.

24  {
25  return m_detector;
26 }

Member Data Documentation

◆ m_detector

GeoVDetectorManager* GeoModelTool::m_detector
protectedinherited

Definition at line 36 of file GeoModelTool.h.

◆ m_manager

const ForDetEnvelopeManager* ForDetEnvelopeTool::m_manager
private

Definition at line 24 of file ForDetEnvelopeTool.h.


The documentation for this class was generated from the following files:
python.PyKernel.retrieve
def retrieve(aClass, aKey=None)
Definition: PyKernel.py:110
GeoModelExperiment::getPhysVol
GeoPhysVol * getPhysVol()
Destructor.
Definition: GeoModelExperiment.cxx:21
StateLessPT_NewConfig.proxy
proxy
Definition: StateLessPT_NewConfig.py:392
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
GeoModelExperiment
Definition: GeoModelExperiment.h:32
ForDetEnvelopeFactory
Definition: ForDetEnvelopeFactory.h:16
GeoModelTool::GeoModelTool
GeoModelTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor(s)
Definition: GeoModelTool.cxx:12
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
ForDetEnvelopeFactory::create
virtual void create(GeoPhysVol *world) override
Definition: ForDetEnvelopeFactory.cxx:30
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ClassID_traits
Default, invalid implementation of ClassID_traits.
Definition: Control/AthenaKernel/AthenaKernel/ClassID_traits.h:40
test_pyathena.parent
parent
Definition: test_pyathena.py:15
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
GeoModelTool::m_detector
GeoVDetectorManager * m_detector
Definition: GeoModelTool.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
GeoModelExperiment::addManager
void addManager(const GeoVDetectorManager *)
Definition: GeoModelExperiment.cxx:40
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
ForDetEnvelopeTool::m_manager
const ForDetEnvelopeManager * m_manager
Definition: ForDetEnvelopeTool.h:24
SG::DataProxy
Definition: DataProxy.h:44