Optimisation
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Mar 2011 07:14:40 +0000 (07:14 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Mar 2011 07:14:40 +0000 (07:14 +0000)
C. Loizides

ANALYSIS/AliCentralitySelectionTask.cxx

index 4ad7f60..3755965 100644 (file)
@@ -155,6 +155,8 @@ AliAnalysisTaskSE(),
   }
   fUseScaling=kTRUE;
   fUseCleaning=kTRUE;
+  fBranchNames="ESD:AliESDRun.,AliESDHeader.,AliESDZDC.,AliESDFMD.,AliESDVZERO."
+               ",SPDVertex.,TPCVertex.,PrimaryVertex.,AliMultiplicity.,Tracks ";
 }   
 
 //________________________________________________________________________
@@ -243,6 +245,8 @@ AliCentralitySelectionTask::AliCentralitySelectionTask(const char *name):
   }
   fUseScaling=kTRUE;
   fUseCleaning=kTRUE;
+  fBranchNames="ESD:AliESDRun.,AliESDHeader.,AliESDZDC.,AliESDFMD.,AliESDVZERO."
+               ",SPDVertex.,TPCVertex.,PrimaryVertex.,AliMultiplicity.,Tracks ";
 }
 
 //________________________________________________________________________
@@ -477,6 +481,8 @@ void AliCentralitySelectionTask::UserExec(Option_t */*option*/)
        AliError("No ESD Event");
        return;
     }
+
+    LoadBranches();
     
     if (fRunNo<=0) {
       if (SetupRun(esd)<0)