]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/TPCLib/AliHLTTPCdEdxComponent.cxx
correcting compilation warnings, enable keyword substitution
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCdEdxComponent.cxx
index abe48f18486054900661a66b77f5520ee3351859..e6289a45c86d9897ab04d38501e886f32020859a 100644 (file)
@@ -463,15 +463,19 @@ int AliHLTTPCdEdxComponent::DoEvent
 
       // Cook dEdx
 
-      if( outSize+sizeof( AliHLTFloat32_t ) > maxBufferSize ){
+      if( outSize+3*sizeof( AliHLTFloat32_t ) > maxBufferSize ){
         HLTWarning( "Output buffer size %d exceed", maxBufferSize );
         iResult = -ENOSPC;
         break;
       }
-     *outPtr = tTPC.CookdEdx( 0.02, 0.6 );      
-      outPtr++;
-      outSize+=sizeof( AliHLTFloat32_t );    
-      outBlock.fSize+=sizeof( AliHLTFloat32_t );  
+
+      tTPC.CookdEdx( 0.02, 0.6 );      
+      outPtr[0] = tTPC.GetdEdx();
+      outPtr[1] = tTPC.GetSDEDX(0);
+      outPtr[2] = tTPC.GetNCDEDX(0);
+      outPtr+=3;
+      outSize+=3*sizeof( AliHLTFloat32_t );    
+      outBlock.fSize+=3*sizeof( AliHLTFloat32_t );  
 
       unsigned int step = sizeof( AliHLTExternalTrackParam ) + currTrack->fNPoints * sizeof( unsigned int );
       currTrack = ( AliHLTExternalTrackParam* )( (( Byte_t * )currTrack) + step );