Skip to content

Commit

Permalink
coverity fix: dump the correct track in debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
pillot authored and aphecetche committed Mar 18, 2015
1 parent 7e640c1 commit 3bf6eb4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions MUON/MUONrec/AliMUONTrackReconstructor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ Bool_t AliMUONTrackReconstructor::FollowTrackInChamber(AliMUONTrack &trackCandid
// Printout for debuging
if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructor") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
cout << "FollowTrackInStation: added the best cluster in chamber(1..): " << bestTrackParamAtCluster.GetClusterPtr()->GetChamberId()+1 << endl;
if (AliLog::GetGlobalDebugLevel() >= 3) newTrack->RecursiveDump();
if (AliLog::GetGlobalDebugLevel() >= 3) trackCandidate.RecursiveDump();
}

} else return kFALSE;
Expand Down Expand Up @@ -877,7 +877,7 @@ Bool_t AliMUONTrackReconstructor::FollowTrackInStation(AliMUONTrack &trackCandid
// Printout for debuging
if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructor") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
cout << "FollowTrackInStation: added the two best clusters in station(1..): " << nextStation+1 << endl;
if (AliLog::GetGlobalDebugLevel() >= 3) newTrack->RecursiveDump();
if (AliLog::GetGlobalDebugLevel() >= 3) trackCandidate.RecursiveDump();
}

} else if (foundOneCluster) {
Expand All @@ -886,7 +886,7 @@ Bool_t AliMUONTrackReconstructor::FollowTrackInStation(AliMUONTrack &trackCandid
// Printout for debuging
if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructor") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
cout << "FollowTrackInStation: added the best cluster in chamber(1..): " << bestTrackParamAtCluster1.GetClusterPtr()->GetChamberId()+1 << endl;
if (AliLog::GetGlobalDebugLevel() >= 3) newTrack->RecursiveDump();
if (AliLog::GetGlobalDebugLevel() >= 3) trackCandidate.RecursiveDump();
}

} else {
Expand Down
6 changes: 3 additions & 3 deletions MUON/MUONrec/AliMUONTrackReconstructorK.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ Bool_t AliMUONTrackReconstructorK::FollowTrackInChamber(AliMUONTrack &trackCandi
// Printout for debuging
if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructorK") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
cout << "FollowTrackInChamber: added the best cluster in chamber(1..): " << bestTrackParamAtCluster.GetClusterPtr()->GetChamberId()+1 << endl;
if (AliLog::GetGlobalDebugLevel() >= 3) newTrack->RecursiveDump();
if (AliLog::GetGlobalDebugLevel() >= 3) trackCandidate.RecursiveDump();
}

} else return kFALSE;
Expand Down Expand Up @@ -1014,7 +1014,7 @@ Bool_t AliMUONTrackReconstructorK::FollowTrackInStation(AliMUONTrack &trackCandi
// Printout for debuging
if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructorK") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
cout << "FollowTrackInStation: added the two best clusters in station(1..): " << nextStation+1 << endl;
if (AliLog::GetGlobalDebugLevel() >= 3) newTrack->RecursiveDump();
if (AliLog::GetGlobalDebugLevel() >= 3) trackCandidate.RecursiveDump();
}

} else if (foundOneCluster) {
Expand All @@ -1023,7 +1023,7 @@ Bool_t AliMUONTrackReconstructorK::FollowTrackInStation(AliMUONTrack &trackCandi
// Printout for debuging
if ((AliLog::GetDebugLevel("MUON","AliMUONTrackReconstructorK") >= 1) || (AliLog::GetGlobalDebugLevel() >= 1)) {
cout << "FollowTrackInStation: added the best cluster in chamber(1..): " << bestTrackParamAtCluster1.GetClusterPtr()->GetChamberId()+1 << endl;
if (AliLog::GetGlobalDebugLevel() >= 3) newTrack->RecursiveDump();
if (AliLog::GetGlobalDebugLevel() >= 3) trackCandidate.RecursiveDump();
}

} else {
Expand Down

0 comments on commit 3bf6eb4

Please sign in to comment.