00001
00002 void RunTrackMate(Int_t nevents=999,
00003
00004
00005 const char *eventFile1="/star/data07/calib/fisyak/ITTF/Tests/tpt.NoEst/productionHigh_FullField/st_physics_5050060_raw_1010010.event.root",
00006 const char *eventFile2="/star/data07/calib/fisyak/ITTF/Tests/ittf.noSvt/productionHigh_FullField/st_physics_5050060_raw_1010010.event.root",
00007 const char* fileIndex="TEST",
00008 const char* outDir=".")
00009 {
00010
00011 gROOT->LoadMacro("bfc.C");
00012 TString Chain("in,StEvent,nodefault");
00013 bfc(-2,Chain.Data(),0,0,0);
00014 gSystem->Load("StTrackMateMaker");
00015 cout << "Job will run on File: " << eventFile1 << endl;
00016 cout << "Corresponding ITTF File: " << eventFile2 << endl;
00017
00018 StIOMaker* ioMaker1 = new StIOMaker("IO1","r",eventFile1);
00019
00020
00021
00022
00023
00024 StIOMaker* ioMaker2 = new StIOMaker("IO2","r",eventFile2);
00025
00026
00027
00028
00029 StTrackMateMaker* goodStuff = new StTrackMateMaker;
00030 goodStuff->SetFileIndex(fileIndex);
00031 goodStuff->SetOutDir(outDir);
00032
00033
00034
00035 chain->PrintInfo();
00036 Int_t initStat = chain->Init();
00037 if (initStat) chain->Fatal(initStat, "during Init()");
00038 if (nevents > 0) chain->EventLoop(1,nevents);
00039 }