Bug corrected
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jul 2008 09:02:11 +0000 (09:02 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 22 Jul 2008 09:02:11 +0000 (09:02 +0000)
ZDC/AliZDCRawStream.cxx

index a4e3889983abd7482e6eb97d808334e9c87a533c..8ea781a08f73bd6dd2615738ab59b2fe13fd1134 100644 (file)
@@ -104,7 +104,7 @@ AliZDCRawStream::AliZDCRawStream(const AliZDCRawStream& stream) :
   fScNWords(stream.GetScNWords()),       
   fScGeo(stream.GetScGeo()),     
   fScTS(stream.GetScTS()),       
-  fScTriggerNumber(stream.GetScTriggerNumber()),
+  fScTriggerNumber(stream.fScTriggerNumber),
   fIsScEventGood(stream.fIsScEventGood),
   fNConnCh(stream.fNConnCh),
   fCabledSignal(stream.GetCabledSignal())
@@ -539,7 +539,8 @@ void AliZDCRawStream::DecodeScaler()
     AliWarning("       AliZDCRawStream -> Scaler header corrupted\n");
     fIsScEventGood = kFALSE; 
   }
-  if(fPosition==fScNWords && fBuffer != 0x0){
+  Int_t scNwords = (Int_t) fScNWords;
+  if(fPosition==scNwords && fBuffer != 0x0){
     AliWarning("       AliZDCRawStream -> Scaler trailer corrupted\n");
     fIsScEventGood = kFALSE; 
   }