|
ATLAS Offline Software
|
#include <sTGC_readoutHandler.h>
|
bool | isAttribute (const xercesc::DOMNode *t, const std::string &) const |
|
std::string | getAttribute (const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::string | getAttributeAsString (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
std::string | getAttributeAsString (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::string | getAttributeAsString (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const std::string &) const |
|
double | getAttributeAsDouble (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
double | getAttributeAsDouble (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
double | getAttributeAsDouble (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const double) const |
|
int | getAttributeAsInt (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
int | getAttributeAsInt (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
int | getAttributeAsInt (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const int) const |
|
std::vector< double > | getAttributeAsVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
std::vector< double > | getAttributeAsVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::vector< double > | getAttributeAsVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const std::vector< double > &) const |
|
std::vector< int > | getAttributeAsIntVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &) const |
|
std::vector< int > | getAttributeAsIntVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, bool &) const |
|
std::vector< int > | getAttributeAsIntVector (AGDDController &c, const xercesc::DOMNode *t, const std::string &, const std::vector< int > &) const |
|
Definition at line 11 of file sTGC_readoutHandler.h.
◆ sTGC_readoutHandler()
◆ ElementHandle()
void sTGC_readoutHandler::ElementHandle |
( |
AGDDController & |
c, |
|
|
xercesc::DOMNode * |
t |
|
) |
| |
|
overridevirtual |
Implements XMLHandler.
Definition at line 20 of file sTGC_readoutHandler.cxx.
24 (
c.GetHandlerStore().GetHandler(
"sTGC"));
25 if (!sTGCHand) std::abort();
32 if (! ret) std::cout <<
"WARNING: sPadWidth is missing" << std::endl;
35 if (! ret) std::cout <<
"WARNING: lPadWidth is missing" << std::endl;
38 if (! ret) std::cout <<
"WARNING: sStripWidth is missing" << std::endl;
41 if (! ret) std::cout <<
"WARNING: lStripWidth is missing" << std::endl;
44 if (! ret) std::cout <<
"WARNING: padH is missing" << std::endl;
48 std::cout <<
"INFO: nPadPhi is missing trying older format nPadX" << std::endl;
50 if (! ret) std::cout <<
"WARNING: nPadX is missing" << std::endl;
55 std::cout <<
"INFO: anglePadPhi is missing trying older format anglePadX" << std::endl;
57 if (! ret) std::cout <<
"WARNING: anglePadX is missing" << std::endl;
63 std::cout <<
"INFO: firstPadPhiDivision_C/A is missing trying older format firstPadPhi" << std::endl;
66 if (! ret) std::cout <<
"WARNING: firstPadPhi is missing" << std::endl;
74 std::cout <<
"INFO: PadPhiShift_C/A is missing trying older format firstPadPhi" << std::endl;
77 if (! ret) std::cout <<
"WARNING: firstPadPhi is missing" << std::endl;
81 if (! ret) std::cout <<
"WARNING: nPadH is missing" << std::endl;
84 if (! ret) std::cout <<
"WARNING: firstPadH is missing" << std::endl;
87 if (! ret) std::cout <<
"WARNING: firstPadRow is missing" << std::endl;
90 if (! ret) std::cout <<
"WARNING: nWires is missing" << std::endl;
93 if (! ret) std::cout <<
"WARNING: wireCutout is missing" << std::endl;
96 if (! ret) std::cout <<
"WARNING: firstWire is missing" << std::endl;
99 if (! ret) std::cout <<
"WARNING: wireGroupWidth is missing" << std::endl;
102 if (! ret) std::cout <<
"WARNING: nStrips is missing" << std::endl;
105 if (! ret) std::cout <<
"WARNING: firstTriggerBand is missing" << std::endl;
108 if (! ret) std::cout <<
"WARNING: nTriggerBands is missing" << std::endl;
111 if (! ret) std::cout <<
"WARNING: firstStripInTrigger is missing" << std::endl;
114 if (! ret) std::cout <<
"WARNING: firstStripWidth is missing" << std::endl;
117 if (! ret) std::cout <<
"WARNING: StripsInBandsLayer1 is missing" << std::endl;
120 if (! ret) std::cout <<
"WARNING: StripsInBandsLayer2 is missing" << std::endl;
123 if (! ret) std::cout <<
"WARNING: StripsInBandsLayer3 is missing" << std::endl;
126 if (! ret) std::cout <<
"WARNING: StripsInBandsLayer4 is missing" << std::endl;
129 if (! ret) std::cout <<
"WARNING: nWireGroups is missing" << std::endl;
132 if (! ret) std::cout <<
"WARNING: firstWireGroup is missing" << std::endl;
◆ getAttribute()
std::string XMLHandler::getAttribute |
( |
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protectedinherited |
Definition at line 43 of file XMLHandler.cxx.
46 std::string retValue=
"";
48 if (
t->hasAttributes()) {
51 std::unique_ptr<XMLCh[], decltype(deleter)>
ptr(XMLString::transcode(
name.c_str()), deleter);
52 DOMAttr *pAttributeNode = (DOMAttr*) pAttributes->getNamedItem(
ptr.get());
55 char*
val=XMLString::transcode(pAttributeNode->getValue());
◆ getAttributeAsDouble() [1/3]
double XMLHandler::getAttributeAsDouble |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protectedinherited |
◆ getAttributeAsDouble() [2/3]
double XMLHandler::getAttributeAsDouble |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protectedinherited |
◆ getAttributeAsDouble() [3/3]
◆ getAttributeAsInt() [1/3]
◆ getAttributeAsInt() [2/3]
int XMLHandler::getAttributeAsInt |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protectedinherited |
◆ getAttributeAsInt() [3/3]
◆ getAttributeAsIntVector() [1/3]
std::vector< int > XMLHandler::getAttributeAsIntVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protectedinherited |
Definition at line 116 of file XMLHandler.cxx.
121 std::vector<int> vect;
123 if (!isPresent) std::abort();
124 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
125 for (
unsigned int i=0;
i<
v.size();
i++)
127 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsIntVector() [2/3]
std::vector< int > XMLHandler::getAttributeAsIntVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protectedinherited |
Definition at line 180 of file XMLHandler.cxx.
184 std::vector<int> vect;
188 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
189 for (
unsigned int i=0;
i<
v.size();
i++)
191 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsIntVector() [3/3]
std::vector< int > XMLHandler::getAttributeAsIntVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
const std::vector< int > & |
def |
|
) |
| const |
|
protectedinherited |
Definition at line 253 of file XMLHandler.cxx.
258 std::vector<int> vect;
262 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
263 for (
unsigned int i=0;
i<
v.size();
i++)
265 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsString() [1/3]
std::string XMLHandler::getAttributeAsString |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protectedinherited |
◆ getAttributeAsString() [2/3]
std::string XMLHandler::getAttributeAsString |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protectedinherited |
◆ getAttributeAsString() [3/3]
std::string XMLHandler::getAttributeAsString |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
const std::string & |
def |
|
) |
| const |
|
protectedinherited |
◆ getAttributeAsVector() [1/3]
std::vector< double > XMLHandler::getAttributeAsVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protectedinherited |
Definition at line 100 of file XMLHandler.cxx.
105 std::vector<double> vect;
107 if (!isPresent) std::abort();
108 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
109 for (
unsigned int i=0;
i<
v.size();
i++)
111 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsVector() [2/3]
std::vector< double > XMLHandler::getAttributeAsVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
bool & |
isPresent |
|
) |
| const |
|
protectedinherited |
Definition at line 163 of file XMLHandler.cxx.
167 std::vector<double> vect;
171 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
172 for (
unsigned int i=0;
i<
v.size();
i++)
174 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ getAttributeAsVector() [3/3]
std::vector< double > XMLHandler::getAttributeAsVector |
( |
AGDDController & |
c, |
|
|
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name, |
|
|
const std::vector< double > & |
def |
|
) |
| const |
|
protectedinherited |
Definition at line 234 of file XMLHandler.cxx.
239 std::vector<double> vect;
243 std::vector<std::string>
v=
c.Evaluator().tokenize(
";",
temp);
244 for (
unsigned int i=0;
i<
v.size();
i++)
246 vect.push_back(
c.Evaluator().Eval(
v[
i].c_str()));
◆ GetName()
const std::string& XMLHandler::GetName |
( |
| ) |
const |
|
inlineinherited |
◆ Handle()
virtual void XMLHandler::Handle |
( |
AGDDController & |
c, |
|
|
xercesc::DOMNode * |
t |
|
) |
| |
|
inlinevirtualinherited |
◆ isAttribute()
bool XMLHandler::isAttribute |
( |
const xercesc::DOMNode * |
t, |
|
|
const std::string & |
name |
|
) |
| const |
|
protectedinherited |
◆ IsLoopToBeStopped()
bool XMLHandler::IsLoopToBeStopped |
( |
| ) |
const |
|
inherited |
◆ RegisterToStore()
Definition at line 23 of file XMLHandler.cxx.
25 c.GetHandlerStore().RegisterHandler(
this);
◆ StopLoop()
void XMLHandler::StopLoop |
( |
bool |
v | ) |
|
|
inherited |
◆ m_name
std::string XMLHandler::m_name |
|
protectedinherited |
◆ m_stopLoop
bool XMLHandler::m_stopLoop |
|
protectedinherited |
The documentation for this class was generated from the following files:
sTGCReadoutParameters roParameters
std::vector< double > firstPadPhiDivision_A
std::vector< int > StripsInBandsLayer1
std::map< std::string, std::string > DOMNamedNodeMap
std::vector< int > nPadPhi
std::vector< int > nWireGroups
double getAttributeAsDouble(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
std::vector< int > StripsInBandsLayer3
std::vector< int > nTriggerBands
std::vector< double > PadPhiShift_A
std::vector< double > firstPadPhiDivision_C
std::vector< int > firstTriggerBand
virtual void ElementHandle(AGDDController &c, xercesc::DOMNode *t)=0
std::vector< double > getAttributeAsVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
std::pair< std::vector< unsigned int >, bool > res
std::string getAttribute(const xercesc::DOMNode *t, const std::string &, bool &) const
std::vector< double > nPadH
std::vector< int > firstWireGroup
std::vector< int > getAttributeAsIntVector(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
std::vector< double > padH
std::vector< double > firstStripWidth
XMLHandler(const std::string &n, AGDDController &c)
std::vector< double > wireCutout
std::vector< int > firstPadRow
std::vector< double > firstPadH
std::vector< int > StripsInBandsLayer2
std::vector< int > StripsInBandsLayer4
int getAttributeAsInt(AGDDController &c, const xercesc::DOMNode *t, const std::string &) const
std::vector< double > firstWire
std::vector< int > firstStripInTrigger
sTGCDetectorDescription * GetsTGCCurrent()
std::vector< int > nWires
std::vector< double > PadPhiShift_C