From c6353e5146f262210e42359b12d5a0f1eb66e1c0 Mon Sep 17 00:00:00 2001 From: maszyman Date: Wed, 5 Nov 2014 12:31:37 +0100 Subject: [PATCH] correction in V0 shared daughter cut --- PWGCF/FEMTOSCOPY/AliFemto/AliFemtoV0SharedDaughterCut.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGCF/FEMTOSCOPY/AliFemto/AliFemtoV0SharedDaughterCut.cxx b/PWGCF/FEMTOSCOPY/AliFemto/AliFemtoV0SharedDaughterCut.cxx index a5e9aa08ca5..f3a962d8a9a 100644 --- a/PWGCF/FEMTOSCOPY/AliFemto/AliFemtoV0SharedDaughterCut.cxx +++ b/PWGCF/FEMTOSCOPY/AliFemto/AliFemtoV0SharedDaughterCut.cxx @@ -50,8 +50,8 @@ AliFemtoV0Collection AliFemtoV0SharedDaughterCut::AliFemtoV0SharedDaughterCutCol //if true there is a need to remove worse particle from the collection for(AliFemtoV0Iterator iter=V0CorrectedCollection.begin(); iter!=V0CorrectedCollection.end(); iter++ ) { if(positionInCollection==ii) { + V0CorrectedCollection.insert(iter, 1, pParticle); //inserting new better V0 V0CorrectedCollection.erase(iter); //removing old V0 - V0CorrectedCollection.insert(iter, pParticle); //inserting new better V0 IdPosArray[ii] = IdPosArray[count_pass]; //update of positive daughter's ID IdNegArray[ii] = IdNegArray[count_pass]; //update of negative daughter's ID dcaToPrimVertex[ii] = dcaToPrimVertex[count_pass]; //update of V0's DCA to primary vertex -- 2.39.3