]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ANALYSIS/AliAnalysisGoodies.cxx
Partial implementation of MC event loop
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisGoodies.cxx
index 330049190a0f05892f0bd07c35d33648f3c4f481..1bcc9e6be2cb91a601473ff7c466f1ce3b4b1875 100644 (file)
@@ -48,6 +48,9 @@ AliAnalysisGoodies::AliAnalysisGoodies() :
   fESDTreeName("esdTree"), 
   fAmgr(0)
 {
+    //ctor
+    // connects to alien and creates an analysis manager
+
   fTimer.Reset() ; 
    
   TString token = gSystem->Getenv("GRID_TOKEN") ; 
@@ -67,7 +70,9 @@ AliAnalysisGoodies::AliAnalysisGoodies(const AliAnalysisGoodies& ag) :
   fESDTreeName(""), 
   fAmgr(0x0)  
 {
-  
+    //copy ctor
+    // connects to alien and creates an analysis manager
+
   fESDTreeName = ag.fESDTreeName ;  
   TString token = gSystem->Getenv("GRID_TOKEN") ; 
   
@@ -93,6 +98,8 @@ AliAnalysisGoodies& AliAnalysisGoodies::operator=(const AliAnalysisGoodies& ag)
 //______________________________________________________________________________
 void AliAnalysisGoodies::Help() const  
 {
+    // helper
+    // display all available utilities
   AliInfo("Analysis utilities:\n") ; 
   printf("                ***  Alien2Local  : copy files ESD files listed in an xml collection from AliEn catalog to local storage and creates a local xml collection  \n") ; 
   printf("                                        usage: Alien2Local(in, out)\n") ; 
@@ -228,10 +235,10 @@ AliAnalysisDataContainer *  AliAnalysisGoodies::ConnectOuput(AliAnalysisTask * t
   char filename[20] ; 
 
     if (opt == "AOD" ) {    
-      if ( fAmgr->GetEventHandler() == 0x0) {
+      if ( fAmgr->GetOutputEventHandler() == 0x0) {
        AliAODHandler * aodHandler = new AliAODHandler() ; 
        aodHandler->SetOutputFileName(Form("%s_0.root",task->GetName())) ; 
-       fAmgr->SetEventHandler(aodHandler) ;
+       fAmgr->SetOutputEventHandler(aodHandler) ;
       } 
       sprintf(filename, "default") ; 
     }