]>
Commit | Line | Data |
---|---|---|
87c65a3e | 1 | void RichBatch(const Int_t iNevents,const Bool_t isDebug,const char *sConfigFileName) |
2 | { | |
3582c1f9 | 3 | if(isDebug) gAlice->SetDebug(1); |
87c65a3e | 4 | |
3582c1f9 | 5 | Info("my/RichBatch.C","%i event(s) requested, debug %i,config file %s",iNevents,isDebug,sConfigFileName); |
87c65a3e | 6 | TStopwatch sw;TDatime time; |
7 | ||
f9bab07b | 8 | AliSimulation *pSim=new AliSimulation; pSim->Run(iNevents); delete pSim; |
63d2150c | 9 | AliReconstruction *pRec=new AliReconstruction; pRec->SetRunLocalReconstruction("RICH"); pRec->SetFillESD("RICH"); pRec->Run(); delete pRec; |
10 | ||
11 | AliRunLoader* pAL = AliRunLoader::Open(); | |
12 | pAL->LoadgAlice(); | |
13 | AliRICH *pRICH=(AliRICH*)pAL->GetAliRun()->GetDetector("RICH"); | |
14 | if(pRICH) pRICH->ControlPlots(); | |
a4e22153 | 15 | |
3582c1f9 | 16 | cout<<"\nInfo in <my/RichBatch.C>: Start time: ";time.Print(); |
17 | cout<<"Info in <my/RichBatch.C>: Stop time: ";time.Set(); time.Print(); | |
18 | cout<<"Info in <my/RichBatch.C>: Time used: ";sw.Print(); | |
19 | gSystem->Exec("touch ZZZ______finished_______ZZZ"); | |
87c65a3e | 20 | } |