From: ivana Date: Fri, 6 May 2011 15:44:38 +0000 (+0000) Subject: In AliMUONTracker: X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=5ff135e6da2953fe4156ea0d76f58c8431d0ce81 In AliMUONTracker: Add a special case to use the vertex from ESD, even if the number of contributors is < 1, when it is taken from the simulation (using AliITSVertexerFast) (Livio, Philippe P.) --- diff --git a/MUON/AliMUONTracker.cxx b/MUON/AliMUONTracker.cxx index 382bae80c50..53a4cf35203 100644 --- a/MUON/AliMUONTracker.cxx +++ b/MUON/AliMUONTracker.cxx @@ -257,7 +257,7 @@ void AliMUONTracker::FillESD(const AliMUONVTrackStore& trackStore, AliESDEvent* // get ITS vertex Double_t vertex[3] = {0., 0., 0.}; const AliESDVertex* esdVert = esd->GetVertex(); - if (esdVert->GetNContributors()) { + if (esdVert->GetNContributors() > 0 || !strcmp(esdVert->GetTitle(),"vertexer: smearMC")) { esdVert->GetXYZ(vertex); AliDebug(1,Form("found vertex (%e,%e,%e)",vertex[0],vertex[1],vertex[2])); }