ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonDetDescr
MuonAGDDBase
src
muonStationHandler.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 "
MuonAGDDBase/muonStationHandler.h
"
6
#include "
MuonAGDDBase/AGDDMuonStation.h
"
7
#include "
AGDDControl/AGDDController.h
"
8
#include <iostream>
9
10
11
muonStationHandler::muonStationHandler
(
const
std::string& s,
12
AGDDController
& c)
13
:
XMLHandler
(s, c)
14
{
15
// std::cout<<"Creating handler for trd"<<std::endl;
16
}
17
18
void
muonStationHandler::ElementHandle
(
AGDDController
& c,
19
xercesc::DOMNode *t)
20
{
21
22
// std::cout<<" this is muonStationHandler::Handle"<<std::endl;
23
bool
res
;
24
std::string name=
getAttributeAsString
(c, t,
"type"
,
res
);
25
std::vector<double> vvv=
getAttributeAsVector
(c, t,
"sWidth_lWidth_Tck_Length"
,
res
);
26
AGDDMuonStation
*b=
new
AGDDMuonStation
(name, c.GetVolumeStore(), c.GetSectionStore());
27
b->SetXYZ(vvv);
28
29
std::string col=
getAttributeAsString
(c, t,
"color"
,
res
);
30
if
(
res
)
31
b->SetColor(col);
32
}
AGDDController.h
AGDDMuonStation.h
res
std::pair< std::vector< unsigned int >, bool > res
Definition
JetGroupProductTest.cxx:11
AGDDController
Definition
AGDDController.h:30
AGDDMuonStation
Definition
AGDDMuonStation.h:17
XMLHandler::getAttributeAsVector
std::vector< double > getAttributeAsVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
Definition
XMLHandler.cxx:100
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
muonStationHandler::muonStationHandler
muonStationHandler(const std::string &, AGDDController &c)
Definition
muonStationHandler.cxx:11
muonStationHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
muonStationHandler.cxx:18
muonStationHandler.h
Generated on
for ATLAS Offline Software by
1.17.0