Solved a bug in AliRsnPair and removed an excess of printouts in AliRsnCutSet
authorpulvir <pulvir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Mar 2011 13:38:36 +0000 (13:38 +0000)
committerpulvir <pulvir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Mar 2011 13:38:36 +0000 (13:38 +0000)
PWG2/RESONANCES/AliRsnCutSet.cxx
PWG2/RESONANCES/AliRsnPair.cxx

index 39aea35..433f76b 100644 (file)
@@ -138,7 +138,7 @@ void AliRsnCutSet::AddCut(AliRsnCut *cut)
    AliDebug(AliLog::kDebug, "<-");
    fCuts.Add(cut);
    AliInfo(Form("====> Adding a new cut: [%s]", cut->GetName()));
-   cut->Print();
+   //cut->Print();
    fNumOfCuts++;
 
    if (fBoolValues) delete [] fBoolValues;
index 2bb44e1..cbaf2b0 100644 (file)
@@ -114,6 +114,9 @@ Bool_t AliRsnPair::Fill
    fMother.SetDaughter(1, daughter2);
    fMother.ComputeSum(fPairDef->GetMass1(), fPairDef->GetMass2());
    
+   // assign reference event
+   if (refFirst) fMother.SetRefEvent(daughter1->GetOwnerEvent()); else fMother.SetRefEvent(daughter2->GetOwnerEvent());
+   
    // if required a true pair, check this here and eventually return a fail message
    // this is done using the method AliRsnMother::CommonMother with 2 arguments
    // passed by reference, where the real GEANT label of the particle is stored
@@ -153,9 +156,6 @@ Bool_t AliRsnPair::Fill
 
    // if pair is accepted, increment counter
    ++fCount;
-   
-   // assign reference event
-   if (refFirst) fMother.SetRefEvent(daughter1->GetOwnerEvent()); else fMother.SetRefEvent(daughter2->GetOwnerEvent());
 
    return kTRUE;
 }