ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
Geo2G4
src
GDMLDetectorTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef GEO2G4_GDMLDetectorTool_H
6
#define GEO2G4_GDMLDetectorTool_H
7
8
// Base classes
9
#include "
G4AtlasTools/DetectorGeometryBase.h
"
10
11
#include "G4Transform3D.hh"
12
13
// Members
14
15
// STL library
16
#include <string>
17
#include <vector>
18
26
27
class
GDMLDetectorTool
final :
public
DetectorGeometryBase
28
{
29
public
:
30
// Basic constructor and destructor
31
GDMLDetectorTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent);
32
~GDMLDetectorTool
() {}
33
35
virtual
StatusCode
initialize
() override final;
36
38
39
virtual
void
BuildGeometry
() override final;
40
41
private
:
42
// Internal methods
43
bool
IsTopTransform
();
44
void
SetInitialTransformation
();
45
46
//Configurable Properties
47
Gaudi
::
Property
<
std
::
string
>
m_GDMLFileName
{
this
,
"GDMLFileName"
,
""
,
"Name of the GDML file to be used as input."
};
48
Gaudi::Property<std::string>
m_geoDetectorName
{
this
,
"GeoDetectorName"
,
""
,
"Name of the detector in GeoModel, if different from G4."
};
49
50
// Other member variables
51
std::string
m_builderName
{
""
};
52
bool
m_blGetTopTransform
{
true
};
53
G4Transform3D
m_topTransform
;
// initialized in the constructor
54
};
55
56
#endif
// GEO2G4_GDMLDetectorTool_H
DetectorGeometryBase.h
DetectorGeometryBase::DetectorGeometryBase
DetectorGeometryBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
DetectorGeometryBase.cxx:13
GDMLDetectorTool::m_blGetTopTransform
bool m_blGetTopTransform
Definition
GDMLDetectorTool.h:52
GDMLDetectorTool::m_GDMLFileName
Gaudi::Property< std::string > m_GDMLFileName
Definition
GDMLDetectorTool.h:47
GDMLDetectorTool::IsTopTransform
bool IsTopTransform()
Definition
GDMLDetectorTool.cxx:67
GDMLDetectorTool::m_topTransform
G4Transform3D m_topTransform
Definition
GDMLDetectorTool.h:53
GDMLDetectorTool::GDMLDetectorTool
GDMLDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
GDMLDetectorTool.cxx:16
GDMLDetectorTool::~GDMLDetectorTool
~GDMLDetectorTool()
Definition
GDMLDetectorTool.h:32
GDMLDetectorTool::BuildGeometry
virtual void BuildGeometry() override final
virtual methods being implemented here
Definition
GDMLDetectorTool.cxx:56
GDMLDetectorTool::m_builderName
std::string m_builderName
Definition
GDMLDetectorTool.h:51
GDMLDetectorTool::SetInitialTransformation
void SetInitialTransformation()
Definition
GDMLDetectorTool.cxx:72
GDMLDetectorTool::m_geoDetectorName
Gaudi::Property< std::string > m_geoDetectorName
Definition
GDMLDetectorTool.h:48
GDMLDetectorTool::initialize
virtual StatusCode initialize() override final
Athena method.
Definition
GDMLDetectorTool.cxx:23
Property
Support class for PropertyMgr.
Definition
Property.h:23
Gaudi
=============================================================================
Definition
CaloGPUClusterAndCellDataMonitorOptions.h:273
std
STL namespace.
type
private
#define private
Definition
testRead.cxx:27
Generated on
for ATLAS Offline Software by
1.17.0