update addtask macro for dptdpt correlations
authormiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Oct 2013 19:52:34 +0000 (19:52 +0000)
committermiweber <miweber@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Oct 2013 19:52:34 +0000 (19:52 +0000)
PWGCF/Correlations/macros/dptdptcorrelations/AddTaskDptDptCorrelations2010.C
PWGCF/Correlations/macros/dptdptcorrelations/AddTaskDptDptCorrelationsforWeight.C

index b2fa96a..a4f1cfb 100644 (file)
@@ -17,7 +17,8 @@ AliAnalysisTaskDptDptCorrelations *AddTaskDptDptCorrelations2010(int    system
                                                                 int    trackFilterBit         = 128,
                                                                 int    nClusterMin            = 80, 
                                                                 double etaMin                 = -0.9,
-                                                                 double etaMax                 = 0.9)
+                                                                 double etaMax                 = 0.9,
+                                                                int nCentrality               = 10)
                                                                  
 {
   // Set Default Configuration of this analysis
@@ -28,7 +29,7 @@ AliAnalysisTaskDptDptCorrelations *AddTaskDptDptCorrelations2010(int    system
   int    sameFilter             = 1;
 
   
-  int    nCentrality;
+  //int    nCentrality;
   double minCentrality[10];
   double maxCentrality[10];
 
@@ -38,7 +39,7 @@ AliAnalysisTaskDptDptCorrelations *AddTaskDptDptCorrelations2010(int    system
       {
 
        
-       nCentrality = 10;
+       //nCentrality = 10;
        minCentrality[0] = 0.0; maxCentrality[0] = 5.0;
        minCentrality[1] = 5.0; maxCentrality[1] = 10.;
        minCentrality[2] = 10.; maxCentrality[2] = 20.;
index 1e663ce..b4902df 100644 (file)
@@ -18,7 +18,8 @@ AliAnalysisTaskDptDptCorrelations *AddTaskDptDptCorrelationsforWeight(int    sys
                                                                       int    trackFilterBit         = 128,
                                                                       int    nClusterMin            = 80,
                                                                       double etaMin                 = -0.5,
-                                                                      double etaMax                 = 0.5)
+                                                                      double etaMax                 = 0.5,
+                                                                     int nCentrality               = 10)
 
 {
   // Set Default Configuration of this analysis
@@ -29,7 +30,7 @@ AliAnalysisTaskDptDptCorrelations *AddTaskDptDptCorrelationsforWeight(int    sys
   int    sameFilter             = 1;
 
   
-  int    nCentrality;
+  //int    nCentrality;
   double minCentrality[10];
   double maxCentrality[10];
 
@@ -39,7 +40,7 @@ AliAnalysisTaskDptDptCorrelations *AddTaskDptDptCorrelationsforWeight(int    sys
       {
 
        //To Get rid of Memory problem
-       nCentrality = 10;
+       //nCentrality = 10;
        minCentrality[0] = 0.0; maxCentrality[0] = 5.0;
        minCentrality[1] = 5.0; maxCentrality[1] = 10.;
        minCentrality[2] = 10.; maxCentrality[2] = 20.;