From 3b31899954452b3cdf8c29ccd050dba55a747c33 Mon Sep 17 00:00:00 2001 From: ihrivnac Date: Thu, 20 Dec 2012 11:19:42 +0000 Subject: [PATCH] Fix bug in filling the track hit pattern from trigger track extrapolation (Diego) --- MUON/AliMUONTrackHitPattern.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MUON/AliMUONTrackHitPattern.cxx b/MUON/AliMUONTrackHitPattern.cxx index 5ff8e94eaac..7c9d97d0125 100644 --- a/MUON/AliMUONTrackHitPattern.cxx +++ b/MUON/AliMUONTrackHitPattern.cxx @@ -137,7 +137,13 @@ void AliMUONTrackHitPattern::ExecuteValidation(const AliMUONVTrackStore& trackSt trackParam.SetBendingSlope(triggerTrack->GetSlopeY()); trackParam.SetInverseBendingMomentum(1.); UInt_t pattern = GetHitPattern(trackParam, kTRUE); - triggerTrack->SetHitsPatternInTrigCh(pattern); + // The pattern is a UInt_t, including the information + // on the matched local board, + // but for backward compatibility we fill a UShort_t + // which do not contain such info. + // In the old pattern, we use 15 bits out of 16, so the last one should + // be masked or it will be filled with 1 bit with the local board info. + triggerTrack->SetHitsPatternInTrigCh((UShort_t)(pattern & 0x7FFF)); AliDebug(1, Form("Hit pattern (MTR): hits 0x%x slat %2i board %3i effFlag %i", pattern & 0xFF, AliESDMuonTrack::GetSlatOrInfo(pattern),triggerTrack->GetLoTrgNum(), AliESDMuonTrack::GetEffFlag(pattern))); } -- 2.43.0