added error messages when task does not post data in UserCreateOutputObjects for...
[u/mrichter/AliRoot.git] / ANALYSIS / analysis.C
index 090b82b..fb34393 100644 (file)
@@ -3,7 +3,7 @@ void analysis(Int_t first = -1, Int_t last = -1, const char* directory=".")
 
   gSystem->Load("$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET)/libANALYSIS");
 
-  AliAODParticle::SetDebug(0);
+  AliVAODParticle::SetDebug(0);
   AliRunAnalysis* analysis = new AliRunAnalysis();
   
   ::Info("analysis.C","Setting dirs");
@@ -22,9 +22,11 @@ void analysis(Int_t first = -1, Int_t last = -1, const char* directory=".")
      }
    }
 
-  AliReaderESD* reader = new AliReaderESD(dirs);
-  reader->ReadSimulatedData(kTRUE);
-  reader->SetReadMostProbableOnly(kTRUE);
+  AliReaderAOD* reader = new AliReaderAOD("AOD.root");
+  reader->SetDirs(dirs);
+//  AliReaderESD* reader = new AliReaderESD(dirs);
+//  reader->ReadSimulatedData(kTRUE);
+//  reader->SetReadMostProbableOnly(kTRUE);
 
 /*  
    //example PID cuts