bugfix: filling correct histogram; extension of argument options for configuring...
authorebruna <ebruna@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Jun 2013 17:11:18 +0000 (17:11 +0000)
committerebruna <ebruna@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Jun 2013 17:11:18 +0000 (17:11 +0000)
PWGHF/correlationHF/AliDxHFEParticleSelectionEl.cxx
PWGHF/correlationHF/macros/AddTaskDxHFECorrelation.C
PWGHF/correlationHF/macros/AddTaskDxHFECorrelationME.C

index 97c155f..d93f45e 100644 (file)
@@ -810,7 +810,7 @@ void AliDxHFEParticleSelectionEl::InvMassFilter(TList *elList, Bool_t *selIndx)
                ((TH1D*)fHistoList->FindObject("fInvMass2SelLS"))->Fill(mass);
                if(mass>fInvMassLow)
                  {
-                   ((TH1D*)fHistoList->FindObject("fInvMassLScut"))->Fill(mass);
+                   ((TH1D*)fHistoList->FindObject("fInvMass2SelLScut"))->Fill(mass);
                    selIndx[i]=kTRUE;
                    selIndx[j]=kTRUE;
                  }
@@ -821,7 +821,7 @@ void AliDxHFEParticleSelectionEl::InvMassFilter(TList *elList, Bool_t *selIndx)
                ((TH1D*)fHistoList->FindObject("fInvMass2SelULS"))->Fill(mass);
                if(mass>fInvMassLow)
                  {
-                   ((TH1D*)fHistoList->FindObject("fInvMassULScut"))->Fill(mass);
+                   ((TH1D*)fHistoList->FindObject("fInvMass2SelULScut"))->Fill(mass);
                    selIndx[i]=kTRUE;
                    selIndx[j]=kTRUE;
                  }
index 547669e..1dc9fa3 100644 (file)
@@ -134,7 +134,9 @@ int AddTaskDxHFECorrelation(TString configuration="", TString analysisName="PWGH
            bEventMixing=kTRUE;
            taskOptions+=" event-mixing";
          }
-         if (argument.BeginsWith("PbPb")) {
+         if (argument.BeginsWith("PbPb") ||
+             argument.BeginsWith("system=1") ||
+             argument.BeginsWith("Pb-Pb")) {
            system=1;
            taskOptions+=" system=Pb-Pb";
          }
index d54e488..dc3665a 100644 (file)
@@ -95,7 +95,8 @@ int AddTaskDxHFECorrelationME(TString configuration="")
       }
     }
     else if(argument.BeginsWith("PbPb") ||
-           argument.BeginsWith("system=1")){
+           argument.BeginsWith("system=1") ||
+           argument.BeginsWith("Pb-Pb")){
       system=1;
       taskOptions+=" PbPb";
     }