Control plots are drawn automatically at the end of procession
authorkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Mar 2004 09:33:04 +0000 (09:33 +0000)
committerkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Mar 2004 09:33:04 +0000 (09:33 +0000)
RICH/RichBatch.C

index e447f5bbe69d9b52c85c8b38b53d47538191cc19..2035ffc966ebd6da64f432c1e07ce984d5941552 100644 (file)
@@ -6,7 +6,11 @@ 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; 
+  AliReconstruction *pRec=new AliReconstruction; pRec->Run();         delete pRec;
+  AliRunLoader* runLoader = AliRunLoader::Open();
+  runLoader->LoadgAlice();
+  ((AliRICH*)runLoader->GetAliRun()->GetDetector("RICH"))->ControlPlots();
   cout<<"\nInfo in <my/RichBatch.C>: Start time: ";time.Print();
     cout<<"Info in <my/RichBatch.C>: Stop  time: ";time.Set();  time.Print();
     cout<<"Info in <my/RichBatch.C>: Time  used: ";sw.Print();