#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
// 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());
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 {
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");