]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Changes needed for the analysis train (Mihaela).
authorpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 May 2008 08:30:00 +0000 (08:30 +0000)
committerpchrist <pchrist@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 May 2008 08:30:00 +0000 (08:30 +0000)
PWG2/AliAnalysisTaskProtons.cxx
PWG2/AliAnalysisTaskProtons.h
PWG2/PROOF-INF.PWG2spectra/SETUP.C

index f6c3d1327a0f0bd08a9c65e4b6e69f67b91f3415..6aa3882472152db1d00cc0832057e7ad805b9ec4 100644 (file)
@@ -14,7 +14,7 @@
 #include "AliAODEvent.h"
 #include "AliAODInputHandler.h"
 
-#include "PWG2spectra/SPECTRA/AliProtonAnalysis.h"
+#include "AliProtonAnalysis.h"
 #include "AliAnalysisTaskProtons.h"
 
 // Analysis task creating a the 2d y-p_t spectrum of p and antip
@@ -50,8 +50,9 @@ void AliAnalysisTaskProtons::ConnectInputData(Option_t *) {
     // Disable all branches and enable only the needed ones
     // The next two lines are different when data produced as AliESDEvent is read
     if(fAnalysisType == "ESD") {
-      tree->SetBranchStatus("*", kFALSE);
-      tree->SetBranchStatus("fTracks.*", kTRUE);
+// In train mode branches can be disabled at the level of ESD handler (M.G.)
+//      tree->SetBranchStatus("*", kFALSE);
+      tree->SetBranchStatus("*Tracks.*", kTRUE);
 
       AliESDInputHandler *esdH = dynamic_cast<AliESDInputHandler*> (AliAnalysisManager::GetAnalysisManager()->GetInputEventHandler());
       
index efd8070dea82a898b4f521cb4414f65a3b68ff9b..07b5f0b7956202048e399eeec3411da1253b245b 100644 (file)
@@ -8,9 +8,9 @@ class TString;
 class TList;
 class AliESDEvent;
 class AliAODEvent;
-#include "TF1.h"
+class AliProtonAnalysis;
+class TF1;
 
-#include "PWG2spectra/SPECTRA/AliProtonAnalysis.h"
 #include "AliAnalysisTask.h"
 
 class AliAnalysisTaskProtons : public AliAnalysisTask {
index df3eb9df64dc65671a26df70997295e413a4b05f..2b669059c5261fe77323c9c7cd13d03e24151567 100644 (file)
@@ -2,7 +2,7 @@ void SETUP() {
   CheckLoadLibrary("libPWG2spectra");
 
   // Set the include paths
-  gROOT->ProcessLine(".include PWG2spectra");
+  gROOT->ProcessLine(".include PWG2spectra/SPECTRA");
 
   // Set our location, so that other packages can find us
   gSystem->Setenv("PWG2spectra_INCLUDE", "PWG2spectra");