From a74ad849bfa9761fb0251871db6b8274b60b1b3e Mon Sep 17 00:00:00 2001 From: skowron Date: Thu, 15 Jul 2004 10:19:03 +0000 Subject: [PATCH] Bug Correction --- HBTAN/AliHBTAnalysis.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/HBTAN/AliHBTAnalysis.cxx b/HBTAN/AliHBTAnalysis.cxx index e6ebb15e029..e5e6eda6a54 100644 --- a/HBTAN/AliHBTAnalysis.cxx +++ b/HBTAN/AliHBTAnalysis.cxx @@ -150,7 +150,15 @@ Int_t AliHBTAnalysis::ProcessEvent(AliAOD* aodrec, AliAOD* aodsim) Error("ProcessEvent","Analysis <<%s>> option not specified.",GetName()); return 1; } - if ( Rejected(aodrec,aodsim) ) return 0; + if ( Rejected(aodrec,aodsim) ) + { +// Double_t x = 0, y = 0, z = 0; +// aodrec->GetPrimaryVertex(x,y,z); +// Info("ProcessEvent","Event has vertex at %f %f %f",x,y,z); + Info("ProcessEvent","Nch is %d",aodsim->GetNumberOfCharged()); + Info("ProcessEvent","%s: Event cut rejected this event",GetName()); + return 0; + } //Move event to the apparent vertex -> must be after the event cut //It is important for any cut that use any spacial coordiantes, @@ -1690,7 +1698,7 @@ void AliHBTAnalysis::FilterOut(AliAOD* out1, AliAOD* out2, AliAOD* in) const if (in2) { - out2->AddParticle(part); + out2->AddParticle(new AliAODParticle(*part)); continue; } } -- 2.31.1