add external variable
authorzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Nov 2013 12:12:57 +0000 (12:12 +0000)
committerzconesa <zconesa@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Nov 2013 12:12:57 +0000 (12:12 +0000)
PWGHF/vertexingHF/macros/AddTaskDplus.C

index 2ca68a6..433e704 100644 (file)
@@ -6,7 +6,8 @@ AliAnalysisTaskSEDplus *AddTaskDplus(Int_t system=0/*0=pp,1=PbPb*/,
                                     TString finDirname="Loose",
                                     TString filename="",
                                     TString finAnObjname="AnalysisCuts",
-                                    Int_t etaRange=0)
+                                    Int_t etaRange=0,
+                                    Bool_t cutsDistr=kFALSE)
 {
   //                                                                                                                                    
   // Test macro for the AliAnalysisTaskSE for D+ candidates 
@@ -57,6 +58,7 @@ AliAnalysisTaskSEDplus *AddTaskDplus(Int_t system=0/*0=pp,1=PbPb*/,
   dplusTask->SetDebugLevel(0);
   dplusTask->SetMassLimits(0.2);
   dplusTask->SetUseBit(kTRUE);
+  dplusTask->SetCutsDistr(cutsDistr);
   dplusTask->SetSystem(system);
   if (doSparse) dplusTask->SetDoImpactParameterHistos(kTRUE);
   if(etaRange==1) dplusTask->SetUseOnlyPositiveEta();