ATLAS Offline Software
Loading...
Searching...
No Matches
micromegasHandler.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
8#include <iostream>
9
10
13 : XMLHandler(s, c),
14 m_mmCurrent (nullptr)
15{
16}
17
19 xercesc::DOMNode *t)
20{
21
22// std::cout<<" this is micromegasHandler::Handle"<<std::endl;
23
24 bool ret=true;
25 std::string name=getAttributeAsString(c, t, "type",ret);
26 std::string sType=getAttributeAsString(c, t, "subType",ret);
27 std::vector<double> vvv;
28 vvv.push_back(getAttributeAsDouble(c, t, "sWidth",ret));
29 vvv.push_back(getAttributeAsDouble(c, t, "lWidth",ret));
30 vvv.push_back(getAttributeAsDouble(c, t, "Length",ret));
31 vvv.push_back(getAttributeAsDouble(c, t, "Tck",ret));
32
33 std::string technology=getAttributeAsString(c, t, "tech",ret);
34
36 c.GetDetectorStore(),
37 c.GetVolumeStore(),
38 c.GetSectionStore());
39 m_mmCurrent = b;
40 b->SetXYZ(vvv);
41 b->subType(sType);
42 b->tech=technology;
43
44 double xf=getAttributeAsDouble(c, t, "xFrame",0.);
45 b->xFrame(xf);
46 double ysf=getAttributeAsDouble(c, t, "ysFrame",0.);
47 b->ysFrame(ysf);
48 double ylf=getAttributeAsDouble(c, t, "ylFrame",0.);
49 b->ylFrame(ylf);
50
51// std::string col=getAttributeAsString(c, t, "color",ret);
52// if (ret)
53// b->SetColor(col);
54}
55
56
61
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
XMLHandler(const std::string &n, AGDDController &c)
std::string getAttributeAsString(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
MMDetectorDescription * m_mmCurrent
MMDetectorDescription * GetMMCurrent()
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
micromegasHandler(const std::string &, AGDDController &c)