ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
G4Utilities
Geo2G4
src
GeoDetectorTool.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_GeoDetectorTool_H
6
#define GEO2G4_GeoDetectorTool_H
7
8
// Base classes
9
#include "
G4AtlasTools/DetectorGeometryBase.h
"
10
#include "
G4AtlasInterfaces/IGeo2G4Svc.h
"
11
12
#include "G4Transform3D.hh"
13
14
// Members
15
16
// STL library
17
#include <string>
18
#include <vector>
19
29
30
class
GeoDetectorTool
final :
public
DetectorGeometryBase
31
{
32
public
:
33
// Basic constructor and destructor
34
GeoDetectorTool
(
const
std::string&
type
,
const
std::string& name,
const
IInterface *parent);
35
~GeoDetectorTool
() =
default
;
36
38
virtual
StatusCode
initialize
() override final;
39
41
42
virtual
void
BuildGeometry
() override final;
43
44
virtual
void
PositionInParent
() override final;
45
46
private
:
47
// Internal methods
48
G4LogicalVolume*
Convert
();
49
bool
IsTopTransform
();
50
void
SetInitialTransformation
();
51
52
//Configurable Properties
53
Gaudi
::
Property
<
std
::
string
>
m_dumpGDMLFile
{
this
,
"GDMLFileOut"
,
""
,
"File name where the GDML description for the detector will be dumped."
};
54
Gaudi::Property<std::string>
m_geoDetectorName
{
this
,
"GeoDetectorName"
,
""
,
"Name of the detector in GeoModel, if different from G4."
};
55
ServiceHandle<IGeo2G4Svc>
m_geo2G4Svc
{
this
,
"Geo2G4Svc"
,
"Geo2G4Svc"
,
""
};
56
57
// Other member variables
58
std::string
m_builderName
{
""
};
59
bool
m_blParamOn
{
false
};
60
bool
m_blGetTopTransform
{
true
};
61
G4Transform3D
m_topTransform
;
// initialized in constructor
62
};
63
64
#endif
DetectorGeometryBase.h
IGeo2G4Svc.h
DetectorGeometryBase::DetectorGeometryBase
DetectorGeometryBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
DetectorGeometryBase.cxx:13
GeoDetectorTool::m_topTransform
G4Transform3D m_topTransform
Definition
GeoDetectorTool.h:61
GeoDetectorTool::m_blGetTopTransform
bool m_blGetTopTransform
Definition
GeoDetectorTool.h:60
GeoDetectorTool::Convert
G4LogicalVolume * Convert()
Definition
GeoDetectorTool.cxx:80
GeoDetectorTool::GeoDetectorTool
GeoDetectorTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
GeoDetectorTool.cxx:18
GeoDetectorTool::m_builderName
std::string m_builderName
Definition
GeoDetectorTool.h:58
GeoDetectorTool::IsTopTransform
bool IsTopTransform()
Definition
GeoDetectorTool.cxx:97
GeoDetectorTool::m_geo2G4Svc
ServiceHandle< IGeo2G4Svc > m_geo2G4Svc
Definition
GeoDetectorTool.h:55
GeoDetectorTool::BuildGeometry
virtual void BuildGeometry() override final
virtual methods being implemented here
Definition
GeoDetectorTool.cxx:56
GeoDetectorTool::initialize
virtual StatusCode initialize() override final
Athena method.
Definition
GeoDetectorTool.cxx:25
GeoDetectorTool::m_geoDetectorName
Gaudi::Property< std::string > m_geoDetectorName
Definition
GeoDetectorTool.h:54
GeoDetectorTool::~GeoDetectorTool
~GeoDetectorTool()=default
GeoDetectorTool::m_blParamOn
bool m_blParamOn
Definition
GeoDetectorTool.h:59
GeoDetectorTool::SetInitialTransformation
void SetInitialTransformation()
Definition
GeoDetectorTool.cxx:102
GeoDetectorTool::PositionInParent
virtual void PositionInParent() override final
Definition
GeoDetectorTool.cxx:69
GeoDetectorTool::m_dumpGDMLFile
Gaudi::Property< std::string > m_dumpGDMLFile
Definition
GeoDetectorTool.h:53
Property
Support class for PropertyMgr.
Definition
Property.h:23
ServiceHandle
Definition
ClusterMakerTool.h:36
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