20 TString inDir =
"/home/zinchenk/bmon/urqmd/";
22 TString inFile = inDir +
"auau.ek45gev.0_3fm.10k.0012.f14.gz";
26 TString outFile = outDir +
"/mc.root";
27 TString parFile = outDir +
"/AuAu_urqmd_3.3p1_4.0_gev__10000_ev__mbias__seed_0_params.root";
31 TString targetGeom =
"target_au_250mu.geo";
35 TString magnetGeom =
"magnet_modified.root";
44 TString stsGeom =
"GEMS_v17_AZ.root";
54 TString fieldMap =
"field_sp41v1";
73 gROOT->LoadMacro(
"$VMCWORKDIR/gconfig/basiclibs.C");
100 fRun->SetName(
"TGeant3");
101 fRun->SetOutputFile(outFile);
102 FairRuntimeDb* rtdb = fRun->GetRuntimeDb();
107 fRun->SetMaterials(
"media.geo");
111 if (caveGeom !=
"") {
114 cave->SetGeometryFileName(caveGeom);
115 fRun->AddModule(cave);
118 if (pipeGeom !=
"") {
121 pipe->SetGeometryFileName(pipeGeom);
122 fRun->AddModule(pipe);
125 if (targetGeom !=
"") {
128 target->SetGeometryFileName(targetGeom);
129 fRun->AddModule(target);
132 if (magnetGeom !=
"") {
135 magnet->SetGeometryFileName(magnetGeom);
136 fRun->AddModule(magnet);
141 sts->SetGeometryFileName(stsGeom);
142 fRun->AddModule(sts);
148 tof->SetGeometryFileName(tofGeom);
149 fRun->AddModule(tof);
167 fRun->SetField(magField);
176 FairPrimaryGenerator* primGen =
new FairPrimaryGenerator();
177 fRun->SetGenerator(primGen);
186 primGen->AddGenerator(urqmdGen);
190 TString laqGSM =
"/home/zinchenk/laqgsm/AuAu4_5mb_1.r12";
224 FairBoxGenerator* boxGen =
new FairBoxGenerator(-211, 5);
225 boxGen->SetPRange(0.1, 7.0);
226 boxGen->SetPhiRange(0, 360);
228 boxGen->SetThetaRange(0.1, 60);
230 boxGen->SetXYZ(0., 0., 0.);
234 FairBoxGenerator* boxGen1 =
new FairBoxGenerator(211, 1);
235 boxGen1->SetPRange(0.1, 7.0);
236 boxGen1->SetPhiRange(0, 360);
237 boxGen1->SetThetaRange(0.1, 60);
240 boxGen1->SetXYZ(0., 0., 0.);
278 fieldPar->setChanged();
279 fieldPar->setInputVersion(fRun->GetRunId(), 1);
281 FairParRootFileIo* parOut =
new FairParRootFileIo(kParameterMerged);
284 rtdb->setOutput(parOut);
292 fRun->CreateGeometryFile(
"data/geofile_full.root");
298 cout << endl << endl;
299 cout <<
"Macro finished succesfully." << endl;
300 cout <<
"Output file is " << outFile << endl;
301 cout <<
"Parameter file is " << parFile << endl;
302 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
"s" << endl << endl;
305 cout <<
" Test passed" << endl;
306 cout <<
" All ok " << endl;