28 #include "StTpcSimpleGeometry.hh"
29 #include "StTpcSimpleSlowControl.hh"
30 #include "StTpcSimpleElectronics.hh"
31 #include "StSimpleMagneticField.hh"
32 #include "StTrsDeDx.hh"
34 int main (
int argc,
char* argv[])
41 string geoFile(
"../run/TPCgeo.conf");
42 if (access(geoFile.c_str(),R_OK)) {
43 cerr <<
"ERROR:\n" << geoFile <<
" cannot be opened" << endl;
45 cerr <<
"Exitting..." << endl;
49 string scFile(
"../run/sc.conf");
50 if (access(scFile.c_str(),R_OK)) {
51 cerr <<
"ERROR:\n" << scFile <<
" cannot be opened" << endl;
53 cerr <<
"Exitting..." << endl;
57 string magFile(
"../run/example.conf");
58 if (access(magFile.c_str(),R_OK)) {
59 cerr <<
"ERROR:\n" << magFile <<
" cannot be opened" << endl;
60 cerr <<
"Exitting..." << endl;
64 string electronicsFile(
"../run/electronics.conf");
65 if (access(electronicsFile.c_str(),R_OK)) {
66 cerr <<
"ERROR:\n" << electronicsFile <<
" cannot be opened" << endl;
67 cerr <<
"Exitting..." << endl;
76 StTpcSimpleGeometry::instance(geoFile.c_str());
80 StTpcSimpleElectronics::instance(electronicsFile.c_str());
81 electronicsDb->print();
84 StTpcSimpleSlowControl::instance(scFile.c_str());
88 StSimpleMagneticField::instance(magFile.c_str());