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 4ad7f602af8b04c504f57f4939181edcb8c40057..37559654b04d133f4dc0c3db9a4a2d60f8a9cdc3 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)