void BuildEvents() { // ======================================================================== // Verbosity level (0=quiet, 1=event level, 2=track level, 3=debug) Int_t iVerbose = 0; // ---- Load libraries ------------------------------------------------- gROOT->Macro("$VMCWORKDIR/gconfig/rootlogon.C"); // ------------------------------------------------------------------------ // Output file // ----- Timer -------------------------------------------------------- TStopwatch timer; timer.Start(); // ------------------------------------------------------------------------ // ----- Reconstruction run ------------------------------------------- /* FairRunAna *fRun= new FairRunAna(); fRun->SetInputFile(RecoPixFile); fRun->AddFriend(RecoStrFile); fRun->SetOutputFile(outFile); */ // ------------------------------------------------------------------------ // ----- Parameter database -------------------------------------------- /* FairRuntimeDb* rtdb = fRun->GetRuntimeDb(); FairParRootFileIo* parInput1 = new FairParRootFileIo(kTRUE); parInput1->open(parFile.Data(),"UPDATE"); rtdb->setFirstInput(parInput1); */ TtEventBuilder *match = new TtEventBuilder(); match->SetInputPixelFile("ordered_199_spill_1.root.hits.root"); match->SetInputStripFile("data156.root.hits.root"); match->SetPixBranchInName("MVDHitsPixel"); match->SetStrBranchInName("MVDHitsStrip"); match->SetSpillPixels(1); match->SetSpillStrips(3355); match->SetOutputFile("data156_eventBuilt_hits.root"); match->SetStrBranchOutName("MatchedStripHits"); match->SetPixBranchOutName("MatchedPixelHits"); //match->SetPixBranchOutName("MVDHitsPixelFinal"); //match->SetStrBranchOutName("MVDHitsStripFinal"); match->SetTimeOffset(37); match->SetTimeRange(5); match->Run(); /* rtdb->setOutput(parInput1); rtdb->print(); // ----- Intialise and run -------------------------------------------- fRun->Init(); fRun->Run(0,0); // ------------------------------------------------------------------------ rtdb->saveOutput(); rtdb->print(); // ----- Finish ------------------------------------------------------- timer.Stop(); Double_t rtime = timer.RealTime(); Double_t ctime = timer.CpuTime(); cout << endl << endl; cout << "Macro finished succesfully." << endl; cout << "Output file is " << outFile << endl; cout << "Parameter file is " << parFile << endl; cout << "Real time " << rtime << " s, CPU time " << ctime << " s" << endl; cout << endl; // ------------------------------------------------------------------------ */ }