]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliSimDigits.cxx
store ntuple in same file as histos (Renu)
[u/mrichter/AliRoot.git] / TPC / AliSimDigits.cxx
index 3257e952e3ab84d453cbcaa7358e70bea9ae3cbb..0ebe639593771336a2f62adb41801a08079d8c22 100644 (file)
@@ -84,7 +84,9 @@ AliSimDigits & AliSimDigits::operator =(const AliSimDigits & param)
   //
   // assignment operator - dummy
   //
-  fTrIndex=param.fTrIndex;
+  if(this!=&param){
+    fTrIndex=param.fTrIndex;
+  }
   return (*this);
 }
 
@@ -372,7 +374,8 @@ AliH2F *  AliSimDigits::DrawTracks( const char *option,Int_t level,
   //  
   //make digits histo 
   char ch[30];
-  sprintf(ch,"Track Segment_%d level %d ",GetID(),level );
+  //sprintf(ch,"Track Segment_%d level %d ",GetID(),level );
+  snprintf(ch,30,"Track Segment_%d level %d ",GetID(),level );
   if ( (fNrows<1)|| (fNcols<1)) {
     return 0;
   }