Fixing STREAM_FORMAT_STATE defect reported by Coverity
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 20:15:14 +0000 (20:15 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Nov 2010 20:15:14 +0000 (20:15 +0000)
MUON/AliMUONTrack.cxx

index d49874f..a354baf 100644 (file)
@@ -1171,6 +1171,8 @@ void AliMUONTrack::Print(Option_t*) const
 {
   /// Printing Track information 
 
+  streamsize curW = cout.width();
+  streamsize curPrecision = cout.precision();
   cout << "<AliMUONTrack> No.Clusters=" << setw(2)   << GetNClusters() << 
       ", Match2Trig=" << setw(1) << GetMatchTrigger()  << 
       ", LoTrgNum=" << setw(3) << LoCircuit()  << 
@@ -1178,6 +1180,8 @@ void AliMUONTrack::Print(Option_t*) const
   cout << Form(" HitTriggerPattern %x",fHitsPatternInTrigCh);
   cout << Form(" MClabel=%d",fTrackID) << endl;
   if (fTrackParamAtCluster) fTrackParamAtCluster->First()->Print("FULL");
+  cout.width(curW);
+  cout.precision(curPrecision);
 }
 
 //__________________________________________________________________________