]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing warnigs (Philippe P.)
authormartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Dec 2010 18:01:45 +0000 (18:01 +0000)
committermartinez <martinez@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 24 Dec 2010 18:01:45 +0000 (18:01 +0000)
PWG3/muondep/AliAnalysisTaskMuonFakes.cxx

index 89fb6bcf5c9fe253f356e325f14c5a4c9b3ff13d..44ad896501abe9d47142e6f9184a4f0e58818bcb 100644 (file)
@@ -368,12 +368,12 @@ void AliAnalysisTaskMuonFakes::UserExec(Option_t *)
     // try to match, by position, the reconstructed track with a simulated one
     Int_t nMatchClustersByPosition = 0;
     AliMUONTrack* matchedTrackRefByPosition = rc.FindCompatibleTrack(*muonTrack, *trackRefStore, nMatchClustersByPosition, kFALSE, fSigmaCut);
-    Int_t MCLabelByPosition = (matchedTrackRefByPosition) ? matchedTrackRefByPosition->GetUniqueID() : -1;
+    Int_t MCLabelByPosition = (matchedTrackRefByPosition) ? static_cast<Int_t>(matchedTrackRefByPosition->GetUniqueID()) : -1;
     
     // try to match, by using MC labels, the reconstructed track with a simulated one
     Int_t nMatchClustersByLabel = 0;
     AliMUONTrack* matchedTrackRefByLabel = rc.FindCompatibleTrack(*muonTrack, *trackRefStore, nMatchClustersByLabel, kTRUE, fSigmaCut);
-    Int_t MCLabelByLabel = (matchedTrackRefByLabel) ? matchedTrackRefByLabel->GetUniqueID() : -1;
+    Int_t MCLabelByLabel = (matchedTrackRefByLabel) ? static_cast<Int_t>(matchedTrackRefByLabel->GetUniqueID()) : -1;
     
     // fill global counters
     TString positionCase = (MCLabelByPosition >= 0) ? "position:match" : "position:not match";