ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDControl
src
AGDDToolBase.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDControl/AGDDToolBase.h
"
6
#include "
AGDDControl/AGDDController.h
"
7
8
AGDDToolBase::AGDDToolBase
(
const
std::string&
type
,
const
std::string& name,
9
const
IInterface* parent)
10
: base_class(
type
,name,parent)
11
{
12
ATH_MSG_DEBUG
(
" trying to get the controller"
);
13
}
14
15
StatusCode AGDDToolBase::initialize
ATLAS_NOT_THREAD_SAFE
()
16
{
17
ATH_CHECK
( m_svc.retrieve() );
18
InitializeAGDD();
19
return
StatusCode::SUCCESS;
20
}
21
22
void
AGDDToolBase::InitializeAGDD
()
23
{
24
ATH_MSG_INFO
(
" initializing AGDD builder"
);
25
26
IAGDDtoGeoSvc::LockedController
controller =
m_svc
->getController();
27
controller->
Locked
(
m_locked
);
28
29
ATH_MSG_INFO
(
" XML file "
);
30
for
(
unsigned
int
i=0;i<
m_xmlFiles
.size();i++)
31
{
32
ATH_MSG_INFO
(
" \t file "
<<
m_xmlFiles
[i]);
33
controller->
AddFile
(
m_xmlFiles
[i]);
34
}
35
ATH_MSG_INFO
(
" ---------"
);
36
37
38
ATH_MSG_INFO
(
" Sections "
);
39
for
(
unsigned
int
i=0;i<
m_sectionsToBuild
.size();i++)
40
{
41
ATH_MSG_INFO
(
" \t section "
<<
m_sectionsToBuild
[i]);
42
controller->
AddSection
(
m_sectionsToBuild
[i]);
43
}
44
ATH_MSG_INFO
(
" ---------"
);
45
46
47
ATH_MSG_INFO
(
" Volumes "
);
48
for
(
unsigned
int
i=0;i<
m_volumesToBuild
.size();i++)
49
{
50
ATH_MSG_INFO
(
" \t volume "
<<
m_volumesToBuild
[i]);
51
controller->
AddVolume
(
m_volumesToBuild
[i]);
52
}
53
ATH_MSG_INFO
(
" ---------"
);
54
55
}
AGDDController.h
ATLAS_NOT_THREAD_SAFE
StatusCode AGDDToolBase::initialize ATLAS_NOT_THREAD_SAFE()
Install fatal handler with default options.
Definition
AGDDToolBase.cxx:15
AGDDToolBase.h
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition
AthMsgStreamMacros.h:31
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition
AthMsgStreamMacros.h:29
AGDDController::Locked
void Locked(bool b)
Definition
AGDDController.h:65
AGDDController::AddFile
void AddFile(const std::string &fName)
Definition
AGDDController.cxx:61
AGDDController::AddSection
void AddSection(const std::string §ion)
Definition
AGDDController.cxx:65
AGDDController::AddVolume
void AddVolume(const std::string &volume)
Definition
AGDDController.cxx:69
AGDDToolBase::m_svc
ServiceHandle< IAGDDtoGeoSvc > m_svc
Definition
AGDDToolBase.h:47
AGDDToolBase::m_xmlFiles
Gaudi::Property< std::vector< std::string > > m_xmlFiles
Definition
AGDDToolBase.h:26
AGDDToolBase::AGDDToolBase
AGDDToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition
AGDDToolBase.cxx:8
AGDDToolBase::InitializeAGDD
void InitializeAGDD()
Definition
AGDDToolBase.cxx:22
AGDDToolBase::m_volumesToBuild
Gaudi::Property< std::vector< std::string > > m_volumesToBuild
Definition
AGDDToolBase.h:28
AGDDToolBase::m_sectionsToBuild
Gaudi::Property< std::vector< std::string > > m_sectionsToBuild
Definition
AGDDToolBase.h:27
AGDDToolBase::m_locked
Gaudi::Property< bool > m_locked
Definition
AGDDToolBase.h:35
IAGDDtoGeoSvc::LockedController
CxxUtils::LockedPointer< AGDDController > LockedController
Definition
IAGDD2GeoSvc.h:26
type
Generated on
for ATLAS Offline Software by
1.17.0