]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG2/RESONANCES/AliRsnPair.cxx
Attempt to make the HV filtering more robust
[u/mrichter/AliRoot.git] / PWG2 / RESONANCES / AliRsnPair.cxx
index 2bb44e176711f3d0e1a0490478f72170df42fcd2..cbaf2b00b03ab7df66bf4ad5c056f5c0dccb63e7 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;
 }