ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDHandlers
src
gvxy_pointHandler.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/gvxy_pointHandler.h
"
6
#include "
AGDDControl/AGDDController.h
"
7
#include "
AGDDKernel/TwoPoint.h
"
8
#include <iostream>
9
10
11
gvxy_pointHandler::gvxy_pointHandler
(
const
std::string& s,
12
AGDDController
& c)
13
:
XMLHandler
(s, c),
14
m_point
(0, 0)
15
{
16
// std::cout<<"Creating handler for gvxy_point"<<std::endl;
17
}
18
19
void
gvxy_pointHandler::ElementHandle
(
AGDDController
& c,
20
xercesc::DOMNode *t)
21
{
22
std::vector<double> vvv=
getAttributeAsVector
(c, t,
"X_Y"
);
23
m_point
.x(vvv[0]);
24
m_point
.y(vvv[1]);
25
}
AGDDController.h
TwoPoint.h
AGDDController
Definition
AGDDController.h:30
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
gvxy_pointHandler::m_point
TwoPoint m_point
Definition
gvxy_pointHandler.h:20
gvxy_pointHandler::gvxy_pointHandler
gvxy_pointHandler(const std::string &, AGDDController &c)
Definition
gvxy_pointHandler.cxx:11
gvxy_pointHandler::ElementHandle
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t) override
Definition
gvxy_pointHandler.cxx:19
gvxy_pointHandler.h
Generated on
for ATLAS Offline Software by
1.14.0