9 string hd_msg = gemcOpt.
args[
"LOG_MSG"].args +
" gcard: >> " ;
11 string file = gemcOpt.
args[
"gcard"].args;
12 if(file==
"no")
return;
14 QFile gcard(file.c_str());
16 if (!domDocument.setContent(&gcard))
19 cout << hd_msg <<
" gcard format is wrong - check XML syntax. Exiting." << endl;
24 QDomElement docElem = domDocument.documentElement();
28 n = docElem.firstChild();
31 QDomElement e = n.toElement();
35 string table_name =
gemc_tostring(e.attributeNode(
"name").value());
42 n = docElem.firstChild();
45 QDomElement e = n.toElement();
53 string det_name =
gemc_tostring(e.attributeNode(
"name").value());
55 QDomNode nn = e.firstChild();
58 QDomElement ee = nn.toElement();
79 nn = nn.nextSibling();
88 cout << hd_msg <<
" Importing SQL tables: " << endl << endl;
89 for(
unsigned int i=0; i<
gTab_Vec.size(); i++)
90 cout <<
" \"" <<
gTab_Vec[i] <<
"\"" << endl ;
106 rot = G4RotationMatrix(G4ThreeVector(1, 0, 0),
107 G4ThreeVector(0, 1, 0),
108 G4ThreeVector(0, 0, 1));
122 if(exist ==
"no" || exist ==
"NO" || exist ==
"No")
run_conditions(gemc_opts)
vector< string > gTab_Vec
Vector of SQL tables names.
void set_position(string X, string Y, string Z)
void set_existance(string exist)
string gemc_tostring(QString input)
map< string, gcard_detector > gDet_Map
Map of gcard_detector. Map Key = detector name.
map< string, opts > args
Options map.
void set_rotation(string X, string Y, string Z)
double get_number(string)
Returns dimension from string, i.e. 100*cm.