1 void RichBatch(const Int_t iNevents,const Bool_t isDebug,const char *sConfigFileName)
3 if(isDebug) gAlice->SetDebug(1);
5 Info("my/RichBatch.C","%i event(s) requested, debug %i,config file %s",iNevents,isDebug,sConfigFileName);
6 TStopwatch sw;TDatime time;
8 AliSimulation *pSim=new AliSimulation; pSim->Run(iNevents); delete pSim;
9 AliReconstruction *pRec=new AliReconstruction; pRec->Run(); delete pRec;
10 AliRunLoader* runLoader = AliRunLoader::Open();
11 runLoader->LoadgAlice();
12 ((AliRICH*)runLoader->GetAliRun()->GetDetector("RICH"))->ControlPlots();
14 cout<<"\nInfo in <my/RichBatch.C>: Start time: ";time.Print();
15 cout<<"Info in <my/RichBatch.C>: Stop time: ";time.Set(); time.Print();
16 cout<<"Info in <my/RichBatch.C>: Time used: ";sw.Print();
17 gSystem->Exec("touch ZZZ______finished_______ZZZ");