ATLAS Offline Software
Loading...
Searching...
No Matches
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).
virtual ~ForwardRegionGeoModelTool () override final
 Destructor.
virtual StatusCode create () override final
 Create the Detector Node corresponding to this tool.
virtual GeoVDetectorManager * manager ()
virtual const GeoVDetectorManager * manager () const
virtual StatusCode clear () override
virtual StatusCode align () override

Protected Attributes

GeoVDetectorManager * m_detector {nullptr}

Private Member Functions

void fillConfig ()
 Copy the property values into the configuration structure.

Private Attributes

Gaudi::Property< double > m_tcl4JawDistB1I {this, "TCL4JawDistB1I", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl4JawDistB2I {this, "TCL4JawDistB2I", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl5JawDistB1I {this, "TCL5JawDistB1I", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl5JawDistB2I {this, "TCL5JawDistB2I", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl6JawDistB1I {this, "TCL6JawDistB1I", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl6JawDistB2I {this, "TCL6JawDistB2I", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl4JawDistB1O {this, "TCL4JawDistB1O", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl4JawDistB2O {this, "TCL4JawDistB2O", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl5JawDistB1O {this, "TCL5JawDistB1O", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl5JawDistB2O {this, "TCL5JawDistB2O", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl6JawDistB1O {this, "TCL6JawDistB1O", 57*Gaudi::Units::mm}
Gaudi::Property< double > m_tcl6JawDistB2O {this, "TCL6JawDistB2O", 57*Gaudi::Units::mm}
Gaudi::Property< bool > m_vp1Compatibility {this, "vp1Compatibility", false}
Gaudi::Property< bool > m_buildTCL4 {this, "buildTCL4", false}
Gaudi::Property< bool > m_buildTCL6 {this, "buildTCL6", false}
Gaudi::Property< bool > m_alfaInNewPosition {this, "ALFAInNewPosition", false}
Gaudi::Property< double > m_newPosB7L1 {this, "newPosB7L1", 245656.77*Gaudi::Units::mm}
Gaudi::Property< double > m_newPosB7R1 {this, "newPosB7R1", -245656.11*Gaudi::Units::mm}
Gaudi::Property< double > m_posAFPL1 {this, "posAFPL1", 204500*Gaudi::Units::mm}
Gaudi::Property< double > m_posAFPR1 {this, "posAFPR1", -204500*Gaudi::Units::mm}
Gaudi::Property< double > m_posAFPL2 {this, "posAFPL2", 212675*Gaudi::Units::mm}
Gaudi::Property< double > m_posAFPR2 {this, "posAFPR2", -212675*Gaudi::Units::mm}
Gaudi::Property< double > m_posZDC1 {this, "posZDC1", 141580*Gaudi::Units::mm}
Gaudi::Property< double > m_posZDC2 {this, "posZDC2", -141580*Gaudi::Units::mm}
FWD_CONFIGURATION m_Config {}

Detailed Description

Definition at line 13 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.

19: GeoModelTool( type, name, parent )
20{
21}

◆ ~ForwardRegionGeoModelTool()

ForwardRegionGeoModelTool::~ForwardRegionGeoModelTool ( )
finaloverridevirtual

Destructor.

Definition at line 26 of file ForwardRegionGeoModelTool.cxx.

27{
28 // This will need to be modified once we register the DetectorNode in
29 // the Transient Detector Store
30 if ( 0 != m_detector ) {
31 delete m_detector;
32 m_detector = 0;
33 }
34}
GeoVDetectorManager * m_detector

Member Function Documentation

◆ align()

virtual StatusCode GeoModelTool::align ( )
inlineoverridevirtualinherited

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

Definition at line 25 of file GeoModelTool.h.

25{return StatusCode::SUCCESS;}

◆ clear()

◆ create()

StatusCode ForwardRegionGeoModelTool::create ( )
finaloverridevirtual

Create the Detector Node corresponding to this tool.

Definition at line 72 of file ForwardRegionGeoModelTool.cxx.

73{
74 MsgStream log(msgSvc(), name());
75 //
76 // Locate the top level experiment node
77 //
78 GeoModelExperiment* theExpt = nullptr;
79 StatusCode sc = detStore()->retrieve( theExpt, "ATLAS" );
80 if (StatusCode::SUCCESS != sc) {
81 log << MSG::ERROR
82 << "Could not find GeoModelExperiment ATLAS"
83 << endmsg;
84 return (StatusCode::FAILURE);
85 }
86
87 fillConfig();
88
89 ForwardRegionGeoModelFactory theFactory(detStore().operator->(), &m_Config);
90 if ( 0 == m_detector ) {
91 // Create the DetectorNode instance
92 try {
93 //
94 // This strange way of casting is to avoid an
95 // utterly brain damaged compiler warning.
96 //
97 GeoPhysVol *world=&*theExpt->getPhysVol();
98 theFactory.create(world);
99 } catch (const std::bad_alloc&) {
100 log << MSG::FATAL << "Could not create new DetectorNode!" << endmsg;
101 return StatusCode::FAILURE;
102 }
103 // Register the DetectorNode instance with the Transient Detector Store
104 theExpt->addManager(theFactory.getDetectorManager());
105 sc = detStore()->record(theFactory.getDetectorManager(),theFactory.getDetectorManager()->getName());
106 if (StatusCode::SUCCESS != sc) {
107 log << MSG::ERROR
108 << "Could not register DetectorNode"
109 << endmsg;
110 return (StatusCode::FAILURE);
111 }
112 return StatusCode::SUCCESS;
113 }
114 return StatusCode::FAILURE;
115}
#define endmsg
static Double_t sc
void fillConfig()
Copy the property values into the configuration structure.
GeoPhysVol * getPhysVol()
Destructor.
void addManager(const GeoVDetectorManager *)
::StatusCode StatusCode
StatusCode definition for legacy code.

◆ fillConfig()

void ForwardRegionGeoModelTool::fillConfig ( )
private

Copy the property values into the configuration structure.

Definition at line 39 of file ForwardRegionGeoModelTool.cxx.

40{
41 m_Config.clear();
42 m_Config.TCL4JawDistB1I = m_tcl4JawDistB1I;
43 m_Config.TCL4JawDistB2I = m_tcl4JawDistB2I;
44 m_Config.TCL5JawDistB1I = m_tcl5JawDistB1I;
45 m_Config.TCL5JawDistB2I = m_tcl5JawDistB2I;
46 m_Config.TCL6JawDistB1I = m_tcl6JawDistB1I;
47 m_Config.TCL6JawDistB2I = m_tcl6JawDistB2I;
48 m_Config.TCL4JawDistB1O = m_tcl4JawDistB1O;
49 m_Config.TCL4JawDistB2O = m_tcl4JawDistB2O;
50 m_Config.TCL5JawDistB1O = m_tcl5JawDistB1O;
51 m_Config.TCL5JawDistB2O = m_tcl5JawDistB2O;
52 m_Config.TCL6JawDistB1O = m_tcl6JawDistB1O;
53 m_Config.TCL6JawDistB2O = m_tcl6JawDistB2O;
54 m_Config.vp1Compatibility = m_vp1Compatibility;
55 m_Config.buildTCL4 = m_buildTCL4;
56 m_Config.buildTCL6 = m_buildTCL6;
57 m_Config.ALFAInNewPosition = m_alfaInNewPosition;
58 m_Config.newPosB7L1 = m_newPosB7L1;
59 m_Config.newPosB7R1 = m_newPosB7R1;
60 m_Config.posAFPL1 = m_posAFPL1;
61 m_Config.posAFPR1 = m_posAFPR1;
62 m_Config.posAFPL2 = m_posAFPL2;
63 m_Config.posAFPR2 = m_posAFPR2;
64 m_Config.posZDC1 = m_posZDC1;
65 m_Config.posZDC2 = m_posZDC2;
66}
Gaudi::Property< double > m_tcl6JawDistB2I
Gaudi::Property< double > m_posZDC2
Gaudi::Property< double > m_tcl6JawDistB1I
Gaudi::Property< bool > m_buildTCL4
Gaudi::Property< double > m_posAFPL1
Gaudi::Property< double > m_posAFPR2
Gaudi::Property< double > m_tcl4JawDistB1O
Gaudi::Property< double > m_tcl6JawDistB1O
Gaudi::Property< double > m_posAFPL2
Gaudi::Property< bool > m_vp1Compatibility
Gaudi::Property< bool > m_buildTCL6
Gaudi::Property< double > m_tcl4JawDistB2I
Gaudi::Property< double > m_tcl5JawDistB1I
Gaudi::Property< double > m_tcl6JawDistB2O
Gaudi::Property< double > m_tcl4JawDistB1I
Gaudi::Property< double > m_posAFPR1
Gaudi::Property< double > m_newPosB7L1
Gaudi::Property< bool > m_alfaInNewPosition
Gaudi::Property< double > m_tcl5JawDistB1O
Gaudi::Property< double > m_tcl4JawDistB2O
Gaudi::Property< double > m_posZDC1
Gaudi::Property< double > m_newPosB7R1
Gaudi::Property< double > m_tcl5JawDistB2O
Gaudi::Property< double > m_tcl5JawDistB2I

◆ manager() [1/2]

virtual GeoVDetectorManager * GeoModelTool::manager ( )
inlinevirtualinherited

Definition at line 21 of file GeoModelTool.h.

21{return m_detector;}

◆ manager() [2/2]

virtual const GeoVDetectorManager * GeoModelTool::manager ( ) const
inlinevirtualinherited

Definition at line 22 of file GeoModelTool.h.

22{return m_detector;}

Member Data Documentation

◆ m_alfaInNewPosition

Gaudi::Property<bool> ForwardRegionGeoModelTool::m_alfaInNewPosition {this, "ALFAInNewPosition", false}
private

Definition at line 44 of file ForwardRegionGeoModelTool.h.

44{this, "ALFAInNewPosition", false};

◆ m_buildTCL4

Gaudi::Property<bool> ForwardRegionGeoModelTool::m_buildTCL4 {this, "buildTCL4", false}
private

Definition at line 42 of file ForwardRegionGeoModelTool.h.

42{this, "buildTCL4", false};

◆ m_buildTCL6

Gaudi::Property<bool> ForwardRegionGeoModelTool::m_buildTCL6 {this, "buildTCL6", false}
private

Definition at line 43 of file ForwardRegionGeoModelTool.h.

43{this, "buildTCL6", false};

◆ m_Config

FWD_CONFIGURATION ForwardRegionGeoModelTool::m_Config {}
private

Definition at line 55 of file ForwardRegionGeoModelTool.h.

55{};

◆ m_detector

GeoVDetectorManager* GeoModelTool::m_detector {nullptr}
protectedinherited

Definition at line 28 of file GeoModelTool.h.

28{nullptr};

◆ m_newPosB7L1

Gaudi::Property<double> ForwardRegionGeoModelTool::m_newPosB7L1 {this, "newPosB7L1", 245656.77*Gaudi::Units::mm}
private

Definition at line 45 of file ForwardRegionGeoModelTool.h.

45{this, "newPosB7L1", 245656.77*Gaudi::Units::mm};

◆ m_newPosB7R1

Gaudi::Property<double> ForwardRegionGeoModelTool::m_newPosB7R1 {this, "newPosB7R1", -245656.11*Gaudi::Units::mm}
private

Definition at line 46 of file ForwardRegionGeoModelTool.h.

46{this, "newPosB7R1", -245656.11*Gaudi::Units::mm};

◆ m_posAFPL1

Gaudi::Property<double> ForwardRegionGeoModelTool::m_posAFPL1 {this, "posAFPL1", 204500*Gaudi::Units::mm}
private

Definition at line 47 of file ForwardRegionGeoModelTool.h.

47{this, "posAFPL1", 204500*Gaudi::Units::mm};

◆ m_posAFPL2

Gaudi::Property<double> ForwardRegionGeoModelTool::m_posAFPL2 {this, "posAFPL2", 212675*Gaudi::Units::mm}
private

Definition at line 49 of file ForwardRegionGeoModelTool.h.

49{this, "posAFPL2", 212675*Gaudi::Units::mm};

◆ m_posAFPR1

Gaudi::Property<double> ForwardRegionGeoModelTool::m_posAFPR1 {this, "posAFPR1", -204500*Gaudi::Units::mm}
private

Definition at line 48 of file ForwardRegionGeoModelTool.h.

48{this, "posAFPR1", -204500*Gaudi::Units::mm};

◆ m_posAFPR2

Gaudi::Property<double> ForwardRegionGeoModelTool::m_posAFPR2 {this, "posAFPR2", -212675*Gaudi::Units::mm}
private

Definition at line 50 of file ForwardRegionGeoModelTool.h.

50{this, "posAFPR2", -212675*Gaudi::Units::mm};

◆ m_posZDC1

Gaudi::Property<double> ForwardRegionGeoModelTool::m_posZDC1 {this, "posZDC1", 141580*Gaudi::Units::mm}
private

Definition at line 51 of file ForwardRegionGeoModelTool.h.

51{this, "posZDC1", 141580*Gaudi::Units::mm};

◆ m_posZDC2

Gaudi::Property<double> ForwardRegionGeoModelTool::m_posZDC2 {this, "posZDC2", -141580*Gaudi::Units::mm}
private

Definition at line 52 of file ForwardRegionGeoModelTool.h.

52{this, "posZDC2", -141580*Gaudi::Units::mm};

◆ m_tcl4JawDistB1I

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl4JawDistB1I {this, "TCL4JawDistB1I", 57*Gaudi::Units::mm}
private

Definition at line 29 of file ForwardRegionGeoModelTool.h.

29{this, "TCL4JawDistB1I", 57*Gaudi::Units::mm};

◆ m_tcl4JawDistB1O

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl4JawDistB1O {this, "TCL4JawDistB1O", 57*Gaudi::Units::mm}
private

Definition at line 35 of file ForwardRegionGeoModelTool.h.

35{this, "TCL4JawDistB1O", 57*Gaudi::Units::mm};

◆ m_tcl4JawDistB2I

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl4JawDistB2I {this, "TCL4JawDistB2I", 57*Gaudi::Units::mm}
private

Definition at line 30 of file ForwardRegionGeoModelTool.h.

30{this, "TCL4JawDistB2I", 57*Gaudi::Units::mm};

◆ m_tcl4JawDistB2O

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl4JawDistB2O {this, "TCL4JawDistB2O", 57*Gaudi::Units::mm}
private

Definition at line 36 of file ForwardRegionGeoModelTool.h.

36{this, "TCL4JawDistB2O", 57*Gaudi::Units::mm};

◆ m_tcl5JawDistB1I

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl5JawDistB1I {this, "TCL5JawDistB1I", 57*Gaudi::Units::mm}
private

Definition at line 31 of file ForwardRegionGeoModelTool.h.

31{this, "TCL5JawDistB1I", 57*Gaudi::Units::mm};

◆ m_tcl5JawDistB1O

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl5JawDistB1O {this, "TCL5JawDistB1O", 57*Gaudi::Units::mm}
private

Definition at line 37 of file ForwardRegionGeoModelTool.h.

37{this, "TCL5JawDistB1O", 57*Gaudi::Units::mm};

◆ m_tcl5JawDistB2I

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl5JawDistB2I {this, "TCL5JawDistB2I", 57*Gaudi::Units::mm}
private

Definition at line 32 of file ForwardRegionGeoModelTool.h.

32{this, "TCL5JawDistB2I", 57*Gaudi::Units::mm};

◆ m_tcl5JawDistB2O

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl5JawDistB2O {this, "TCL5JawDistB2O", 57*Gaudi::Units::mm}
private

Definition at line 38 of file ForwardRegionGeoModelTool.h.

38{this, "TCL5JawDistB2O", 57*Gaudi::Units::mm};

◆ m_tcl6JawDistB1I

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl6JawDistB1I {this, "TCL6JawDistB1I", 57*Gaudi::Units::mm}
private

Definition at line 33 of file ForwardRegionGeoModelTool.h.

33{this, "TCL6JawDistB1I", 57*Gaudi::Units::mm};

◆ m_tcl6JawDistB1O

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl6JawDistB1O {this, "TCL6JawDistB1O", 57*Gaudi::Units::mm}
private

Definition at line 39 of file ForwardRegionGeoModelTool.h.

39{this, "TCL6JawDistB1O", 57*Gaudi::Units::mm};

◆ m_tcl6JawDistB2I

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl6JawDistB2I {this, "TCL6JawDistB2I", 57*Gaudi::Units::mm}
private

Definition at line 34 of file ForwardRegionGeoModelTool.h.

34{this, "TCL6JawDistB2I", 57*Gaudi::Units::mm};

◆ m_tcl6JawDistB2O

Gaudi::Property<double> ForwardRegionGeoModelTool::m_tcl6JawDistB2O {this, "TCL6JawDistB2O", 57*Gaudi::Units::mm}
private

Definition at line 40 of file ForwardRegionGeoModelTool.h.

40{this, "TCL6JawDistB2O", 57*Gaudi::Units::mm};

◆ m_vp1Compatibility

Gaudi::Property<bool> ForwardRegionGeoModelTool::m_vp1Compatibility {this, "vp1Compatibility", false}
private

Definition at line 41 of file ForwardRegionGeoModelTool.h.

41{this, "vp1Compatibility", false};

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