5 #include <utl/Reader.h>
29 Reader theReader(
"conf.xml", Reader::eSCHEMA);
36 ofstream outp(
"SDenseStationRingAt1000.xml",
ios::out);
41 "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n"
42 "<SDenseStationList\n"
43 " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
44 " xsi:noNamespaceSchemaLocation=\""
46 "/SDenseStationList.xsd\">\n\n";
50 " deltaPhi = polar angle measured in the shower frame\n"
51 " r = distance from the shower core in plane perpindicular to shower axis\n"
52 " z = height above the core position\n"
55 " <ellipsoid> WGS84 </ellipsoid>\n"
56 " <zone> 19 </zone>\n"
63 const int firstStation = 90000;
64 for (
int i = 0; i < numStations; ++i) {
65 const double deltaPhi = i*2*M_PI/numStations;
68 "<denseStation id=\"" << firstStation+i <<
"\">\n"
69 " <deltaPhi unit=\"radian\"> " << deltaPhi <<
" </deltaPhi>\n"
70 " <r unit=\"meter\"> " << radius <<
"</r>\n"
76 outp <<
"</SDenseStationList>\n";
vector< t2list > out
output of the algorithm: a list of clusters
Branch GetChild(const std::string &childName) const
Get child of this Branch by child name.
Branch GetTopBranch() const
Get the top Branch (represents same entity as document node)
Utility for parsing XML files.
int main(int argc, char *argv[])
void GetData(bool &b) const
Overloads of the GetData member template function.