ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
materialHandler.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 "
AGDDHandlers/materialHandler.h
"
6
#include "
AGDDModel/AGDDMaterial.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include <iostream>
9
10
11
materialHandler::materialHandler
(
const
std::string& s,
12
AGDDController
& c)
13
:
XMLHandler
(s, c)
14
{
15
}
16
17
void
materialHandler::ElementHandle
(
AGDDController
& c,
18
xercesc::DOMNode *t)
19
{
20
std::string name=
getAttributeAsString
(c, t,
"name"
);
21
double
a
=
getAttributeAsDouble
(c, t,
"a"
);
22
int
z
=
getAttributeAsInt
(c, t,
"z"
);
23
double
density=
getAttributeAsDouble
(c, t,
"density"
);
24
new
AGDDMaterial
(c.GetMaterialStore(),name,
z
,
a
,density);
25
}
AGDDController.h
AGDDMaterial.h
a
static Double_t a
Definition
LArPhysWaveHECTool.cxx:38
z
#define z
AGDDController
Definition
AGDDController.h:30
AGDDMaterial
Definition
AGDDMaterial.h:15
XMLHandler::getAttributeAsInt
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:89
XMLHandler::getAttributeAsDouble
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:78
XMLHandler::XMLHandler
XMLHandler(const std::string &n, AGDDController &c)
Definition
XMLHandler.cxx:15
XMLHandler::getAttributeAsString
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:69
materialHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
materialHandler.cxx:17
materialHandler::materialHandler
materialHandler(const std::string &, AGDDController &c)
Definition
materialHandler.cxx:11
materialHandler.h
Generated on
for ATLAS Offline Software by
1.17.0