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

#include <ForwardRegionGeoModelTool.h>

Inheritance diagram for ForwardRegionGeoModelTool:
Collaboration diagram for ForwardRegionGeoModelTool:

Public Member Functions

 ForwardRegionGeoModelTool (const std::string &type, const std::string &name, const IInterface *parent)
 Constructor(s) More...
 
virtual ~ForwardRegionGeoModelTool () override final
 Destructor. More...
 
virtual StatusCode create () override final
 Create the Detector Node corresponding to this tool. More...
 
virtual GeoVDetectorManager * manager ()
 The Detector Node corresponding to this tool. More...
 
virtual const GeoVDetectorManager * manager () const
 
virtual StatusCode clear () override
 
virtual StatusCode registerCallback ATLAS_NOT_THREAD_SAFE () override
 
virtual StatusCode align (IOVSVC_CALLBACK_ARGS) override
 

Protected Attributes

GeoVDetectorManager * m_detector
 

Private Attributes

FWD_CONFIGURATION m_Config
 

Detailed Description

Definition at line 11 of file ForwardRegionGeoModelTool.h.

Constructor & Destructor Documentation

◆ ForwardRegionGeoModelTool()

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

Constructor(s)

Definition at line 18 of file ForwardRegionGeoModelTool.cxx.

20 {
21  m_Config.clear();
22  declareProperty("TCL4JawDistB1I",m_Config.TCL4JawDistB1I=57*Gaudi::Units::mm);
23  declareProperty("TCL4JawDistB2I",m_Config.TCL4JawDistB2I=57*Gaudi::Units::mm);
24  declareProperty("TCL5JawDistB1I",m_Config.TCL5JawDistB1I=57*Gaudi::Units::mm);
25  declareProperty("TCL5JawDistB2I",m_Config.TCL5JawDistB2I=57*Gaudi::Units::mm);
26  declareProperty("TCL6JawDistB1I",m_Config.TCL6JawDistB1I=57*Gaudi::Units::mm);
27  declareProperty("TCL6JawDistB2I",m_Config.TCL6JawDistB2I=57*Gaudi::Units::mm);
28  declareProperty("TCL4JawDistB1O",m_Config.TCL4JawDistB1O=57*Gaudi::Units::mm);
29  declareProperty("TCL4JawDistB2O",m_Config.TCL4JawDistB2O=57*Gaudi::Units::mm);
30  declareProperty("TCL5JawDistB1O",m_Config.TCL5JawDistB1O=57*Gaudi::Units::mm);
31  declareProperty("TCL5JawDistB2O",m_Config.TCL5JawDistB2O=57*Gaudi::Units::mm);
32  declareProperty("TCL6JawDistB1O",m_Config.TCL6JawDistB1O=57*Gaudi::Units::mm);
33  declareProperty("TCL6JawDistB2O",m_Config.TCL6JawDistB2O=57*Gaudi::Units::mm);
34  declareProperty("vp1Compatibility", m_Config.vp1Compatibility=false);
35  declareProperty("buildTCL4",m_Config.buildTCL4=false);
36  declareProperty("buildTCL6",m_Config.buildTCL6=false);
37  declareProperty("ALFAInNewPosition",m_Config.ALFAInNewPosition=false);
38  declareProperty("newPosB7L1",m_Config.newPosB7L1=245656.77*Gaudi::Units::mm);
39  declareProperty("newPosB7R1",m_Config.newPosB7R1=-245656.11*Gaudi::Units::mm);
40  declareProperty("posAFPL1",m_Config.posAFPL1=204500*Gaudi::Units::mm);
41  declareProperty("posAFPR1",m_Config.posAFPR1=-204500*Gaudi::Units::mm);
42  declareProperty("posAFPL2",m_Config.posAFPL2=212675*Gaudi::Units::mm);
43  declareProperty("posAFPR2",m_Config.posAFPR2=-212675*Gaudi::Units::mm);
44  declareProperty("posZDC1",m_Config.posZDC1=141580*Gaudi::Units::mm);
45  declareProperty("posZDC2",m_Config.posZDC2=-141580*Gaudi::Units::mm);
46 }

◆ ~ForwardRegionGeoModelTool()

ForwardRegionGeoModelTool::~ForwardRegionGeoModelTool ( )
finaloverridevirtual

Destructor.

Definition at line 51 of file ForwardRegionGeoModelTool.cxx.

52 {
53  // This will need to be modified once we register the DetectorNode in
54  // the Transient Detector Store
55  if ( 0 != m_detector ) {
56  delete m_detector;
57  m_detector = 0;
58  }
59 }

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 GeoModelTool::clear ( )
overridevirtualinherited

◆ create()

StatusCode ForwardRegionGeoModelTool::create ( )
finaloverridevirtual

Create the Detector Node corresponding to this tool.

Definition at line 65 of file ForwardRegionGeoModelTool.cxx.

66 {
67  MsgStream log(msgSvc(), name());
68  //
69  // Locate the top level experiment node
70  //
71  GeoModelExperiment* theExpt = nullptr;
72  StatusCode sc = detStore()->retrieve( theExpt, "ATLAS" );
73  if (StatusCode::SUCCESS != sc) {
74  log << MSG::ERROR
75  << "Could not find GeoModelExperiment ATLAS"
76  << endmsg;
77  return (StatusCode::FAILURE);
78  }
79 
80  ForwardRegionGeoModelFactory theFactory(detStore().operator->(), &m_Config);
81  if ( 0 == m_detector ) {
82  // Create the DetectorNode instance
83  try {
84  //
85  // This strange way of casting is to avoid an
86  // utterly brain damaged compiler warning.
87  //
88  GeoPhysVol *world=&*theExpt->getPhysVol();
89  theFactory.create(world);
90  } catch (const std::bad_alloc&) {
91  log << MSG::FATAL << "Could not create new DetectorNode!" << endmsg;
92  return StatusCode::FAILURE;
93  }
94  // Register the DetectorNode instance with the Transient Detector Store
95  theExpt->addManager(theFactory.getDetectorManager());
96  sc = detStore()->record(theFactory.getDetectorManager(),theFactory.getDetectorManager()->getName());
97  if (StatusCode::SUCCESS != sc) {
98  log << MSG::ERROR
99  << "Could not register DetectorNode"
100  << endmsg;
101  return (StatusCode::FAILURE);
102  }
103  return StatusCode::SUCCESS;
104  }
105  return StatusCode::FAILURE;
106 }

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

FWD_CONFIGURATION ForwardRegionGeoModelTool::m_Config
private

Definition at line 24 of file ForwardRegionGeoModelTool.h.

◆ m_detector

GeoVDetectorManager* GeoModelTool::m_detector
protectedinherited

Definition at line 36 of file GeoModelTool.h.


The documentation for this class was generated from the following files:
_FWD_CONFIGURATION::TCL5JawDistB2I
double TCL5JawDistB2I
Definition: ForwardRegionGeoModelFactory.h:28
GeoModelExperiment::getPhysVol
GeoPhysVol * getPhysVol()
Destructor.
Definition: GeoModelExperiment.cxx:21
_FWD_CONFIGURATION::posZDC2
double posZDC2
Definition: ForwardRegionGeoModelFactory.h:44
_FWD_CONFIGURATION::TCL6JawDistB2I
double TCL6JawDistB2I
Definition: ForwardRegionGeoModelFactory.h:29
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
_FWD_CONFIGURATION::TCL6JawDistB2O
double TCL6JawDistB2O
Definition: ForwardRegionGeoModelFactory.h:32
_FWD_CONFIGURATION::newPosB7R1
double newPosB7R1
Definition: ForwardRegionGeoModelFactory.h:38
_FWD_CONFIGURATION::TCL5JawDistB1O
double TCL5JawDistB1O
Definition: ForwardRegionGeoModelFactory.h:25
_FWD_CONFIGURATION::TCL5JawDistB1I
double TCL5JawDistB1I
Definition: ForwardRegionGeoModelFactory.h:22
_FWD_CONFIGURATION::TCL4JawDistB2I
double TCL4JawDistB2I
Definition: ForwardRegionGeoModelFactory.h:27
_FWD_CONFIGURATION::posAFPL1
double posAFPL1
Definition: ForwardRegionGeoModelFactory.h:39
GeoModelExperiment
Definition: GeoModelExperiment.h:32
GeoModelTool::GeoModelTool
GeoModelTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor(s)
Definition: GeoModelTool.cxx:12
_FWD_CONFIGURATION::posAFPL2
double posAFPL2
Definition: ForwardRegionGeoModelFactory.h:40
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
_FWD_CONFIGURATION::vp1Compatibility
bool vp1Compatibility
Definition: ForwardRegionGeoModelFactory.h:35
_FWD_CONFIGURATION::ALFAInNewPosition
bool ALFAInNewPosition
Definition: ForwardRegionGeoModelFactory.h:36
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
_FWD_CONFIGURATION::TCL4JawDistB1I
double TCL4JawDistB1I
Definition: ForwardRegionGeoModelFactory.h:21
_FWD_CONFIGURATION::buildTCL6
bool buildTCL6
Definition: ForwardRegionGeoModelFactory.h:34
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
_FWD_CONFIGURATION::posAFPR2
double posAFPR2
Definition: ForwardRegionGeoModelFactory.h:42
ForwardRegionGeoModelFactory
Definition: ForwardRegionGeoModelFactory.h:49
_FWD_CONFIGURATION::newPosB7L1
double newPosB7L1
Definition: ForwardRegionGeoModelFactory.h:37
test_pyathena.parent
parent
Definition: test_pyathena.py:15
python.PyKernel.detStore
detStore
Definition: PyKernel.py:41
_FWD_CONFIGURATION::TCL6JawDistB1O
double TCL6JawDistB1O
Definition: ForwardRegionGeoModelFactory.h:26
GeoModelTool::m_detector
GeoVDetectorManager * m_detector
Definition: GeoModelTool.h:36
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
_FWD_CONFIGURATION::clear
void clear()
Definition: ForwardRegionGeoModelFactory.cxx:47
_FWD_CONFIGURATION::TCL6JawDistB1I
double TCL6JawDistB1I
Definition: ForwardRegionGeoModelFactory.h:23
python.SystemOfUnits.mm
int mm
Definition: SystemOfUnits.py:83
GeoModelExperiment::addManager
void addManager(const GeoVDetectorManager *)
Definition: GeoModelExperiment.cxx:40
_FWD_CONFIGURATION::posAFPR1
double posAFPR1
Definition: ForwardRegionGeoModelFactory.h:41
_FWD_CONFIGURATION::TCL5JawDistB2O
double TCL5JawDistB2O
Definition: ForwardRegionGeoModelFactory.h:31
_FWD_CONFIGURATION::posZDC1
double posZDC1
Definition: ForwardRegionGeoModelFactory.h:43
_FWD_CONFIGURATION::TCL4JawDistB1O
double TCL4JawDistB1O
Definition: ForwardRegionGeoModelFactory.h:24
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
_FWD_CONFIGURATION::buildTCL4
bool buildTCL4
Definition: ForwardRegionGeoModelFactory.h:33
ForwardRegionGeoModelTool::m_Config
FWD_CONFIGURATION m_Config
Definition: ForwardRegionGeoModelTool.h:24
_FWD_CONFIGURATION::TCL4JawDistB2O
double TCL4JawDistB2O
Definition: ForwardRegionGeoModelFactory.h:30