90 TString geoFile =
"SIGEMS_r7.root",
95 Mscale = 1250 / 900.0;
164 paramDir +=
"/parameters";
176 TObjString stsDigiFile =
"sts_v1_BMN_SI_GEM.digi.par";
178 parFileList->
Add(&stsDigiFile);
199 FairRunAna* run =
new FairRunAna();
201 run->SetOutputFile(outFile);
239 run->SetField(magField);
241 cout <<
"FIELD SCALE: " << magField->
GetScale() << endl;
273 run->AddTask(stsDigitize);
281 run->AddTask(stsClusterFinder);
292 run->AddTask(stsFindHits);
302 run->AddTask(kalman);
310 run->AddTask(stsFindTracks);
322 run->AddTask(findVertex);
341 // -------------------------------------------------------------------------
343 // === End of STS local reconstruction ===
344 // =========================================================================
348 // =========================================================================
349 // === Global tracking ===
350 // =========================================================================
353 // Tracking method to be used
354 // "branch" - branching tracking
355 // "nn" - nearest neighbor tracking
356 // "weight" - weighting tracking
359 // Hit-to-track merger method to be used
360 // "nearest_hit" - assigns nearest hit to the track
365 // ----- Primary vertex finding ---------------------------------------
366 CbmPrimaryVertexFinder* pvFinder = new CbmPVFinderKF();
367 CbmFindPrimaryVertex* findVertex = new CbmFindPrimaryVertex(pvFinder); //
368 run->AddTask(findVertex);
369 // ------------------------------------------------------------------------
371 // === End of global tracking ===
372 // =========================================================================
374 // ----------- TRD track Pid Like ----------------------
375 // Since in the newest version of this method depends on the global
376 // track the task has to move after the global tracking
377 // FU 08.02.12 Switch the task off since the input file needed for the new geometry has to be generated first.
378 // CbmTrdSetTracksPidLike* trdSetTracksPidLikeTask =
379 // new CbmTrdSetTracksPidLike("Likelihood", "Likelihood");
380 // run->AddTask(trdSetTracksPidLikeTask);
381 // ----------------------------------------------------
387 FairRuntimeDb* rtdb = run->GetRuntimeDb();
388 FairParRootFileIo* parIo1 =
new FairParRootFileIo();
389 FairParAsciiFileIo* parIo2 =
new FairParAsciiFileIo();
390 parIo1->open(parFile.
Data());
391 parIo2->open(parFileList,
"in");
392 gSystem->Unlink(parIo2->getFilename());
393 rtdb->setFirstInput(parIo1);
394 rtdb->setSecondInput(parIo2);
395 rtdb->setOutput(parIo1);
402 cout <<
"Starting run" << endl;
403 run->Run(0, nEvents);
410 cout << endl << endl;
411 cout <<
"Macro finished succesfully." << endl;
412 cout <<
"Output file is " << outFile << endl;
413 cout <<
"Parameter file is " << parFile << endl;
414 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
420 cout <<
" Test passed" << endl;
421 cout <<
" All ok " << endl;
void run_reco_gem_r7(TString inFile="", TString outFile="", TString geoFile="SIGEMS_r7.root", Int_t nEvents=0, Int_t rnum=0, Double_t Mscale=1.366666667)