1)Terminate() method implemented in the frame. Simple examples on what to do with...
[u/mrichter/AliRoot.git] / PWG4 / PartCorrBase / AliAnaPartCorrMaker.cxx
index 22104e898dd444720ec92c576b30286e2c61faf7..17f1cf50d7b71182e4bf1bdb423f96e43a07d630 100755 (executable)
@@ -198,7 +198,7 @@ Bool_t AliAnaPartCorrMaker::ProcessEvent(Int_t iEntry){
                fAODBranchList->At(iaod)->Clear();
        
        //Tell the reader to fill the data in the 3 detector lists
-       fReader->FillInputEvent();
+       fReader->FillInputEvent(iEntry);
        
        //Loop on analysis algorithms
        if(fAnaDebug > 0 ) printf("*** Begin analysis *** \n");
@@ -223,3 +223,17 @@ Bool_t AliAnaPartCorrMaker::ProcessEvent(Int_t iEntry){
        return kTRUE ;
        
 }
+
+//________________________________________________________________________
+void AliAnaPartCorrMaker::Terminate()
+{  
+       //Execute Terminate of analysis
+       //Do some final plots.
+                       
+       for(Int_t iana = 0; iana <  fAnalysisContainer->GetEntries(); iana++){
+                       
+               AliAnaPartCorrBaseClass * ana =  ((AliAnaPartCorrBaseClass *) fAnalysisContainer->At(iana)) ;
+               ana->Terminate();
+
+       }//Loop on analysis defined
+}