ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AGDDtoGeoSvc Class Reference

#include <AGDD2GeoSvc.h>

Inheritance diagram for AGDDtoGeoSvc:
Collaboration diagram for AGDDtoGeoSvc:

Public Member Functions

virtual StatusCode initialize () override final
 Initialize Service. More...
 
virtual void addHandler (XMLHandler *v) override final
 
virtual LockedController getController () override final
 
 AGDDtoGeoSvc (const std::string &name, ISvcLocator *svc)
 Constructor(s) More...
 
virtual ~AGDDtoGeoSvc ()=default
 

Private Member Functions

void localInitialization ()
 

Private Attributes

std::vector< XMLHandler * > m_handlerVector
 
ToolHandleArray< IAGDDToolBasem_builders
 
AGDDController m_controller
 
std::recursive_mutex m_mutex
 

Detailed Description

Definition at line 23 of file AGDD2GeoSvc.h.

Constructor & Destructor Documentation

◆ AGDDtoGeoSvc()

AGDDtoGeoSvc::AGDDtoGeoSvc ( const std::string &  name,
ISvcLocator *  svc 
)

Constructor(s)

Definition at line 22 of file AGDD2GeoSvc.cxx.

23  : base_class(name,svc),
24  m_builders(this)
25 {
26  declareProperty( "Builders", m_builders, "Builders");
27 }

◆ ~AGDDtoGeoSvc()

virtual AGDDtoGeoSvc::~AGDDtoGeoSvc ( )
virtualdefault

Member Function Documentation

◆ addHandler()

void AGDDtoGeoSvc::addHandler ( XMLHandler v)
finaloverridevirtual

Definition at line 140 of file AGDD2GeoSvc.cxx.

141 {
142  std::scoped_lock lock (m_mutex);
143  m_handlerVector.push_back(v);
144 }

◆ getController()

IAGDDtoGeoSvc::LockedController AGDDtoGeoSvc::getController ( )
finaloverridevirtual

Definition at line 147 of file AGDD2GeoSvc.cxx.

148 {
149  std::unique_lock lock (m_mutex);
150  return LockedController (m_controller, std::move (lock));
151 }

◆ initialize()

StatusCode AGDDtoGeoSvc::initialize ( )
finaloverridevirtual

Initialize Service.

Definition at line 33 of file AGDD2GeoSvc.cxx.

34 {
35  ATH_MSG_INFO(" this is AGDDtoGeoSvc::initialize()");
36 
38 
39  ATH_CHECK(m_builders.retrieve());
40 
41  return StatusCode::SUCCESS;
42 }

◆ localInitialization()

void AGDDtoGeoSvc::localInitialization ( )
private

Definition at line 45 of file AGDD2GeoSvc.cxx.

46 {
47  addHandler(new AGDDHandler("AGDD", m_controller));
48  addHandler(new BoltHandler("Bolt", m_controller));
49  addHandler(new IbeamHandler("Ibeam", m_controller));
50  addHandler(new UbeamHandler("Ubeam", m_controller));
51  addHandler(new addmaterialHandler("addmaterial", m_controller));
52  addHandler(new aliasHandler("alias", m_controller));
53  addHandler(new arrayHandler("array", m_controller));
54  addHandler(new boxHandler("box", m_controller));
55  addHandler(new colorHandler("color", m_controller));
56 
57  addHandler(new compositeHandler("composite", m_controller));
58  addHandler(new compositionHandler("composition", m_controller));
59  addHandler(new consHandler("cons", m_controller));
60  addHandler(new defaultsHandler("defaults", m_controller));
61  addHandler(new elcylHandler("elcyl", m_controller));
62  addHandler(new elementHandler("element", m_controller));
63  addHandler(new foreachHandler("foreach", m_controller));
64  addHandler(new fractionmassHandler("fractionmass", m_controller));
65  addHandler(new gvxyHandler("gvxy", m_controller));
66 
67  addHandler(new gvxysxHandler("gvxysx", m_controller));
68  addHandler(new gvxy_pointHandler("gvxy_point", m_controller));
69  addHandler(new gvxysxyHandler("gvxysxy", m_controller));
70  addHandler(new intersectionHandler("intersection", m_controller));
71  addHandler(new materialHandler("material", m_controller));
72  addHandler(new materialsHandler("materials", m_controller));
73  addHandler(new mposPhiHandler("mposPhi", m_controller));
74  addHandler(new mposWedgeHandler("mposWedge", m_controller));
75 
76  addHandler(new msgHandler("msg", m_controller));
77  addHandler(new natomsHandler("natoms", m_controller));
78  addHandler(new pconHandler("pcon", m_controller));
79  addHandler(new pgonHandler("pgon", m_controller));
80  addHandler(new polyplaneHandler("polyplane", m_controller));
81  addHandler(new posRPhiZHandler("posRPhiZ", m_controller));
82  addHandler(new posXYZHandler("posXYZ", m_controller));
83  addHandler(new ringHandler("ring", m_controller));
84 
85 
86  addHandler(new sectionHandler("section", m_controller));
87  addHandler(new sectorHandler("sector", m_controller));
88  addHandler(new snakeHandler("snake", m_controller));
89  addHandler(new snake_pointHandler("snake_point", m_controller));
90  addHandler(new subtractionHandler("subtraction", m_controller));
91  addHandler(new trdHandler("trd", m_controller));
92  addHandler(new tubsHandler("tubs", m_controller));
93  addHandler(new unionHandler("union", m_controller));
94  addHandler(new varHandler("var", m_controller));
95  addHandler(new versionHandler("version", m_controller));
96  addHandler(new importHandler("import", m_controller));
97 
98  addHandler(new chamberPositionerHandler("chamberPosition", m_controller));
99 
101  as.AddAlias("Aluminium1","std::Aluminium");
102  as.AddAlias("Aluminium2","std::Aluminium");
103  as.AddAlias("Aluminium3","std::Aluminium");
104  as.AddAlias("Aluminium4","std::Aluminium");
105  as.AddAlias("Aluminium5","std::Aluminium");
106  as.AddAlias("Aluminium6","std::Aluminium");
107  as.AddAlias("Aluminium7","std::Aluminium");
108  as.AddAlias("Aluminium8","std::Aluminium");
109  as.AddAlias("Aluminium9","std::Aluminium");
110 
111  as.AddAlias("Iron1","std::Iron");
112  as.AddAlias("Iron2","std::Iron");
113  as.AddAlias("Iron3","std::Iron");
114  as.AddAlias("Iron4","std::Iron");
115  as.AddAlias("Iron5","std::Iron");
116  as.AddAlias("Iron6","std::Iron");
117  as.AddAlias("Iron7","std::Iron");
118  as.AddAlias("Iron8","std::Iron");
119  as.AddAlias("Iron9","std::Iron");
120 
121  as.AddAlias("Iron","std::Iron");
122  as.AddAlias("Copper","std::Copper");
123  as.AddAlias("Lead","std::Lead");
124  as.AddAlias("Aluminium","std::Aluminium");
125  as.AddAlias("Carbon","std::Carbon");
126 
127  as.AddAlias("Brass","sct::Brass");
128  as.AddAlias("PolyBoron5percent","std::Polyethylene");
129  as.AddAlias("Polylithium","shield::Polylithium");
130  as.AddAlias("ShieldBrass","shield::ShieldBrass");
131  as.AddAlias("ShieldIron","shield::ShieldIron");
132  as.AddAlias("ShieldSteel","shield::ShieldSteel");
133  as.AddAlias("PolyBoronB4C","shield::PolyboronB4C");
134  as.AddAlias("PolyBoronB2O3","shield::PolyboronB2O3");
135  as.AddAlias("PolyBoronH3B03","shield::PolyboronH3B03");
136  as.AddAlias("PolyBoron207HD5","shield::Polyboron207HD5");
137 }

Member Data Documentation

◆ m_builders

ToolHandleArray<IAGDDToolBase> AGDDtoGeoSvc::m_builders
private

Definition at line 44 of file AGDD2GeoSvc.h.

◆ m_controller

AGDDController AGDDtoGeoSvc::m_controller
private

Definition at line 45 of file AGDD2GeoSvc.h.

◆ m_handlerVector

std::vector<XMLHandler*> AGDDtoGeoSvc::m_handlerVector
private

Definition at line 42 of file AGDD2GeoSvc.h.

◆ m_mutex

std::recursive_mutex AGDDtoGeoSvc::m_mutex
private

Definition at line 46 of file AGDD2GeoSvc.h.


The documentation for this class was generated from the following files:
AliasStore::AddAlias
void AddAlias(const std::string &, const std::string &)
Definition: AliasStore.cxx:8
AGDDtoGeoSvc::addHandler
virtual void addHandler(XMLHandler *v) override final
Definition: AGDD2GeoSvc.cxx:140
IbeamHandler
Definition: IbeamHandler.h:11
gvxy_pointHandler
Definition: gvxy_pointHandler.h:12
polyplaneHandler
Definition: polyplaneHandler.h:12
UbeamHandler
Definition: UbeamHandler.h:11
AliasStore
Definition: AliasStore.h:11
unionHandler
Definition: unionHandler.h:11
varHandler
Definition: varHandler.h:11
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
trdHandler
Definition: trdHandler.h:12
intersectionHandler
Definition: intersectionHandler.h:11
ringHandler
Definition: ringHandler.h:11
mposPhiHandler
Definition: mposPhiHandler.h:11
importHandler
Definition: importHandler.h:13
subtractionHandler
Definition: subtractionHandler.h:12
msgHandler
Definition: msgHandler.h:11
colorHandler
Definition: colorHandler.h:13
AGDDtoGeoSvc::m_mutex
std::recursive_mutex m_mutex
Definition: AGDD2GeoSvc.h:46
addmaterialHandler
Definition: addmaterialHandler.h:11
compositeHandler
Definition: compositeHandler.h:11
posXYZHandler
Definition: posXYZHandler.h:12
posRPhiZHandler
Definition: posRPhiZHandler.h:12
materialHandler
Definition: materialHandler.h:12
materialsHandler
Definition: materialsHandler.h:11
aliasHandler
Definition: aliasHandler.h:11
chamberPositionerHandler
Definition: chamberPositionerHandler.h:12
sectionHandler
Definition: sectionHandler.h:11
gvxysxHandler
Definition: gvxysxHandler.h:11
BoltHandler
Definition: BoltHandler.h:11
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
natomsHandler
Definition: natomsHandler.h:11
Handler::svc
AthROOTErrorHandlerSvc * svc
Definition: AthROOTErrorHandlerSvc.cxx:10
AGDDtoGeoSvc::m_handlerVector
std::vector< XMLHandler * > m_handlerVector
Definition: AGDD2GeoSvc.h:42
AGDDtoGeoSvc::m_controller
AGDDController m_controller
Definition: AGDD2GeoSvc.h:45
fractionmassHandler
Definition: fractionmassHandler.h:11
mposWedgeHandler
Definition: mposWedgeHandler.h:11
gvxyHandler
Definition: gvxyHandler.h:11
pconHandler
Definition: pconHandler.h:11
boxHandler
Definition: boxHandler.h:11
compositionHandler
Definition: compositionHandler.h:11
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
elementHandler
Definition: elementHandler.h:13
gvxysxyHandler
Definition: gvxysxyHandler.h:11
foreachHandler
Definition: foreachHandler.h:11
arrayHandler
Definition: arrayHandler.h:11
AGDDHandler
Definition: AGDDHandler.h:11
consHandler
Definition: consHandler.h:11
AGDDtoGeoSvc::localInitialization
void localInitialization()
Definition: AGDD2GeoSvc.cxx:45
pgonHandler
Definition: pgonHandler.h:11
python.PyAthena.v
v
Definition: PyAthena.py:154
snakeHandler
Definition: snakeHandler.h:12
tubsHandler
Definition: tubsHandler.h:12
snake_pointHandler
Definition: snake_pointHandler.h:14
AGDDtoGeoSvc::m_builders
ToolHandleArray< IAGDDToolBase > m_builders
Definition: AGDD2GeoSvc.h:44
sectorHandler
Definition: sectorHandler.h:11
AGDDController::GetAliasStore
AliasStore & GetAliasStore()
Definition: AGDDController.cxx:238
defaultsHandler
Definition: defaultsHandler.h:11
elcylHandler
Definition: elcylHandler.h:11
versionHandler
Definition: versionHandler.h:11