6 gSystem->Load(
"libTable");
7 gSystem->Load(
"St_Tables");
8 gSystem->Load(
"St_base");
9 gSystem->Load(
"StChain");
10 gSystem->Load(
"StStarLogger.so");
11 gSystem->Load(
"StUtilities.so");
14 gSystem->Load(
"StDbLib");
15 gSystem->Load(
"StDbBroker");
16 gSystem->Load(
"St_db_Maker");
22 dbMk->SetMaxEntryTime(20100401,0);
23 dbMk->SetFlavor(
"ofl+sim");
25 dbMk->SetDateTime(20090320,45000);
27 dbMk->SaveSnapshotPlus(
"Geometry");
28 dbMk->SaveSnapshotPlus(
"Calibrations");
29 dbMk->SaveSnapshotPlus(
"Conditions");
31 dbMk->SaveSnapshotPlus(
"RunLog/onl");
32 dbMk->SaveSnapshotPlus(
"RunLog/MagFactor");
36 gSystem->Exec(
"rm ./StarDb/Geometry/tpc/tpcGlobalPosition*");
37 gSystem->Exec(
"rm ./StarDb/RunLog/onl/starClockOnl*");
39 dbMk->SetFlavor(
"sim");
40 dbMk->SaveSnapshotPlus(
"Geometry/tpc/tpcGlobalPosition");
41 dbMk->SaveSnapshotPlus(
"RunLog/onl/starClockOnl");
45 std::stringstream ostr;
48 for (
int i = 1; i <= 24; i++) {
50 ostr <<
"Geometry/tpc/Sector_";
51 ostr << std::setw(2) << std::setfill(
'0') << i <<
"/tpcSectorPosition";
52 std::cout << ostr.str() << std::endl;
54 rm.append(ostr.str());
56 std::cout << rm << std::endl;
57 gSystem->Exec(rm.c_str());
59 dbMk->SaveSnapshotPlus(ostr.str().c_str());
61 ostr <<
"Calibrations/tpc/Sector_";
62 ostr << std::setw(2) << std::setfill(
'0') << i <<
"/tpcISTimeOffsets";
63 std::cout << ostr.str() << std::endl;
65 rm.append(ostr.str());
67 std::cout << rm << std::endl;
68 gSystem->Exec(rm.c_str());
71 dbMk->SaveSnapshotPlus(ostr.str().c_str());
73 ostr <<
"Calibrations/tpc/Sector_";
74 ostr << std::setw(2) << std::setfill(
'0') << i <<
"/tpcOSTimeOffsets";
75 std::cout << ostr.str() << std::endl;
77 rm.append(ostr.str());
79 std::cout << rm << std::endl;
80 gSystem->Exec(rm.c_str());
82 dbMk->SaveSnapshotPlus(ostr.str().c_str());