Made it possible to pass corrEmpty
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2012 14:47:51 +0000 (14:47 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 31 Oct 2012 14:47:51 +0000 (14:47 +0000)
PWGLF/FORWARD/analysis2/AddTaskCentraldNdeta.C
PWGLF/FORWARD/analysis2/AddTaskForwarddNdeta.C
PWGLF/FORWARD/analysis2/AddTaskMCTruthdNdeta.C

index ea97604..e55684f 100644 (file)
  * @ingroup pwglf_forward_dndeta
  */
 AliAnalysisTask*
-AddTaskCentraldNdeta(const char* trig     = "INEL", 
-                    Double_t    vzMin    = -10, 
-                    Double_t    vzMax    = +10, 
-                    Bool_t      useCent  = false,
-                    const char* scheme   = 0,
-                    Bool_t      cutEdges = false,
-                    Double_t    trigEff  = 1, 
-                    Double_t    trigEff0 = 1,
+AddTaskCentraldNdeta(const char* trig      = "INEL", 
+                    Double_t    vzMin     = -10, 
+                    Double_t    vzMax     = +10, 
+                    Bool_t      useCent   = false,
+                    const char* scheme    = 0,
+                    Bool_t      cutEdges  = false,
+                    Double_t    trigEff   = 1, 
+                    Double_t    trigEff0  = 1,
+                    Bool_t      corrEmpty = false,
                     const char* mcanalysisfilename = "none")
 {
   // --- Load libraries ----------------------------------------------
@@ -62,7 +63,7 @@ AddTaskCentraldNdeta(const char* trig     = "INEL",
   // Whether to cut edges when re-binning 
   task->SetCutEdges(cutEdges);
   // Whether to correct for empty bins when projecting 
-  task->SetCorrEmpty(false);
+  task->SetCorrEmpty(corrEmpty);
   // Whether to use TH2::ProjectionX 
   task->SetUseROOTProjectX(false);
   // Bit mask of 
index 2988b91..0556d47 100644 (file)
@@ -33,6 +33,7 @@ AddTaskForwarddNdeta(const char* trig     = "INEL",
                     Bool_t      cutEdges = false,
                     Double_t    trigEff  = 1, 
                     Double_t    trigEff0 = 1,
+                    Bool_t      corrEmpty= false,
                     const char* mcanalysisfilename = "none")
 {
   // --- Load libraries ----------------------------------------------
@@ -65,7 +66,8 @@ AddTaskForwarddNdeta(const char* trig     = "INEL",
   // Whether to cut edges when re-binning 
   task->SetCutEdges(cutEdges);
   // Whether to correct for empty bins when projecting 
-  task->SetCorrEmpty(true);
+  // task->SetCorrEmpty(true);
+  task->SetCorrEmpty(corrEmpty);
   // Whether to use TH2::ProjectionX 
   task->SetUseROOTProjectX(false);
   // Bit mask of 
index e36d8b4..c2e2d4d 100644 (file)
  * @ingroup pwglf_forward_dndeta
  */
 AliAnalysisTask*
-AddTaskMCTruthdNdeta(const char* trig     = "INEL", 
-                    Double_t    vzMin    = -10, 
-                    Double_t    vzMax    = +10, 
-                    Bool_t      useCent  = false,
-                    const char* scheme   = 0,
-                    Bool_t      cutEdges = false,
-                    Double_t    trigEff  = 1, 
-                    Double_t    trigEff0 = 1)
+AddTaskMCTruthdNdeta(const char* trig      = "INEL", 
+                    Double_t    vzMin     = -10, 
+                    Double_t    vzMax     = +10, 
+                    Bool_t      useCent   = false,
+                    const char* scheme    = 0,
+                    Bool_t      cutEdges  = false,
+                    Double_t    trigEff   = 1, 
+                    Double_t    trigEff0  = 1,
+                    Bool_t      corrEmpty = false)
 {
   // --- Load libraries ----------------------------------------------
   gROOT->LoadClass("AliAODForwardMult", "libPWGLFforward2");
@@ -51,7 +52,7 @@ AddTaskMCTruthdNdeta(const char* trig     = "INEL",
   // Whether to cut edges when re-binning 
   task->SetCutEdges(cutEdges);
   // Whether to correct for empty bins when projecting 
-  task->SetCorrEmpty(true);
+  task->SetCorrEmpty(corrEmpty);
   // Whether to use TH2::ProjectionX 
   task->SetUseROOTProjectX(false);
   // Bit mask of