added separate histogram entry for V0A and C BG flag
[u/mrichter/AliRoot.git] / PWG0 / eventStats / AliEventStatsTask.cxx
index 3a9b6b05f06fdbc520b8c5182ef8c63473a72ad9..d624126be36f898fb3b86ce79266f0e23bc42855 100644 (file)
@@ -2,23 +2,16 @@
 
 #include "AliEventStatsTask.h"
 
-#include <TCanvas.h>
 #include <TFile.h>
-#include <TChain.h>
 #include <TH1F.h>
 #include <TH2F.h>
-#include <TH3F.h>
 
 #include <AliLog.h>
 #include <AliESDEvent.h>
 #include <AliHeader.h>
-#include <AliAnalysisManager.h>
-#include <AliESDInputHandler.h>
-#include <AliESDHeader.h>
-#include <AliTriggerAnalysis.h>
 
 #include "AliPhysicsSelection.h"
-#include "AliBackgroundSelection.h"
+//#include "AliBackgroundSelection.h"
 
 ClassImp(AliEventStatsTask)
 
@@ -62,12 +55,9 @@ void AliEventStatsTask::UserCreateOutputObjects()
   fOutput = new TList;
   fOutput->SetOwner();
   
-  fPhysicsSelection = new AliPhysicsSelection;
-  AliBackgroundSelection* background = new AliBackgroundSelection("AliBackgroundSelection", "AliBackgroundSelection");
-  background->Init();
-  //fPhysicsSelection->AddBackgroundIdentification(background);
-  //AliLog::SetClassDebugLevel("AliPhysicsSelection", AliLog::kDebug);
-
+  if (!fPhysicsSelection)
+    fPhysicsSelection = new AliPhysicsSelection;
+  
   fOutput->Add(fPhysicsSelection);
 }