new way to provide control plots
authorkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 May 2004 11:57:44 +0000 (11:57 +0000)
committerkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 28 May 2004 11:57:44 +0000 (11:57 +0000)
RICH/RichBatch.C

index 2035ffc..364e726 100644 (file)
@@ -6,10 +6,12 @@ void RichBatch(const Int_t iNevents,const Bool_t isDebug,const char *sConfigFile
   TStopwatch sw;TDatime time;  
 
   AliSimulation     *pSim=new AliSimulation;     pSim->Run(iNevents); delete pSim;
-  AliReconstruction *pRec=new AliReconstruction; pRec->Run();         delete pRec;
-  AliRunLoader* runLoader = AliRunLoader::Open();
-  runLoader->LoadgAlice();
-  ((AliRICH*)runLoader->GetAliRun()->GetDetector("RICH"))->ControlPlots();
+  AliReconstruction *pRec=new AliReconstruction; pRec->SetRunLocalReconstruction("RICH"); pRec->SetFillESD("RICH");  pRec->Run();         delete pRec;
+  
+  AliRunLoader* pAL = AliRunLoader::Open();
+  pAL->LoadgAlice();
+  AliRICH *pRICH=(AliRICH*)pAL->GetAliRun()->GetDetector("RICH");
+  if(pRICH) pRICH->ControlPlots();
  
   cout<<"\nInfo in <my/RichBatch.C>: Start time: ";time.Print();
     cout<<"Info in <my/RichBatch.C>: Stop  time: ";time.Set();  time.Print();