]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Puting a pre-compilator flag for online purpose (if AliLog not present) (Christian)
authorpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Sep 2006 13:05:19 +0000 (13:05 +0000)
committerpcrochet <pcrochet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 22 Sep 2006 13:05:19 +0000 (13:05 +0000)
MUON/AliMUONPayloadTracker.cxx
MUON/AliMUONPayloadTrigger.cxx

index 376ddfca8ad275ff8e1f5bfc8364231a0f4005fc..c5336255d697d16e762a7a583701f1fb6211c799 100644 (file)
 
 #include "AliRawReader.h"
 #include "AliRawDataHeader.h"
+
+#ifndef DATE_SYS
 #include "AliLog.h"
+#endif
 
 #include "AliMUONDspHeader.h"
 #include "AliMUONBlockHeader.h"
@@ -185,8 +188,13 @@ Bool_t AliMUONPayloadTracker::Decode(UInt_t* buffer, Int_t totalDDLSize)
       // skipping additionnal word if padding
       if (fDspHeader->GetPaddingWord() == 1) {
        if (buffer[index++] != fDspHeader->GetDefaultPaddingWord())
+
+#ifndef DATE_SYS
          AliWarning(Form("Error in padding word for iBlock %d, iDsp %d, iBus %d\n", 
                          iBlock, iDsp, iBusPatch));
+#else
+       printf("Error in padding word for iBlock %d, iDsp %d, iBus %d\n", iBlock, iDsp, iBusPatch);
+#endif
       }
 
       index = indexDsp + totalDspSize;
@@ -247,8 +255,14 @@ Bool_t AliMUONPayloadTracker::CheckDataParity()
 
     // Check
     if (parity != fBusStruct->GetParity(idata)) {
+#ifndef DATE_SYS
       AliWarning(Form("Parity error in word %d for manuId %d and channel %d\n", 
                      idata, fBusStruct->GetManuId(idata), fBusStruct->GetChannelId(idata)));
+#else
+      printf("Parity error in word %d for manuId %d and channel %d\n", 
+            idata, fBusStruct->GetManuId(idata), fBusStruct->GetChannelId(idata));
+#endif
+
       return kFALSE;
                     
     }
index b859630915a96923fb1bed7e4886d9d940c7d4ba..0c780203d50973c7e26f47e7e9d7bf93a2fc98c2 100644 (file)
 
 #include "AliRawReader.h"
 #include "AliRawDataHeader.h"
+
+#ifndef DATE_SYS
 #include "AliLog.h"
+#endif
 
 #include "AliMUONDarcHeader.h"
 #include "AliMUONRegHeader.h"
@@ -97,7 +100,11 @@ Bool_t AliMUONPayloadTrigger::Decode(UInt_t *buffer)
   }
 
   if (buffer[index++] != darcHeader->GetEndOfDarc())
-    AliWarning(Form("Wrong end of Darc word %x instead of %x\n",buffer[index-1], darcHeader->GetEndOfDarc())); 
+#ifndef DATE_SYS
+    AliWarning(Form("Wrong end of Darc word %x instead of %x\n",buffer[index-1], darcHeader->GetEndOfDarc()));
+#else 
+  printf("Wrong end of Darc word %x instead of %x\n",buffer[index-1], darcHeader->GetEndOfDarc());
+#endif
 
   // 4 words of global board input + Global board output
   memcpy(darcHeader->GetGlobalInput(), &buffer[index], (kGlobalHeaderSize)*4); 
@@ -110,8 +117,12 @@ Bool_t AliMUONPayloadTrigger::Decode(UInt_t *buffer)
   }
 
   if (buffer[index++] != darcHeader->GetEndOfGlobal())
+#ifndef DATE_SYS
     AliWarning(Form("Wrong end of Global word %x instead of %x\n",buffer[index-1], darcHeader->GetEndOfGlobal()));
-    
+#else 
+  printf("Wrong end of Global word %x instead of %x\n",buffer[index-1], darcHeader->GetEndOfGlobal());
+#endif
   // 8 regional boards
   for (Int_t iReg = 0; iReg < fMaxReg; iReg++) {           //loop over regeonal card
 
@@ -126,7 +137,11 @@ Bool_t AliMUONPayloadTrigger::Decode(UInt_t *buffer)
     }
 
     if (buffer[index++] != fRegHeader->GetEndOfReg())
+#ifndef DATE_SYS
       AliWarning(Form("Wrong end of Reg word %x instead of %x\n",buffer[index-1], fRegHeader->GetEndOfReg()));
+#else
+      printf("Wrong end of Reg word %x instead of %x\n",buffer[index-1], fRegHeader->GetEndOfReg());
+#endif
 
     // 16 local cards per regional board
     for (Int_t iLoc = 0; iLoc < fMaxLoc; iLoc++) {         //loop over local card
@@ -144,7 +159,11 @@ Bool_t AliMUONPayloadTrigger::Decode(UInt_t *buffer)
       }
 
       if (buffer[index++] != fLocalStruct->GetEndOfLocal())
+#ifndef DATE_SYS
        AliWarning(Form("Wrong end of local word %x instead of %x\n",buffer[index-1], fLocalStruct->GetEndOfLocal()));
+#else
+      printf("Wrong end of local word %x instead of %x\n",buffer[index-1], fLocalStruct->GetEndOfLocal());
+#endif
          
       fDDLTrigger->AddLocStruct(*fLocalStruct, iReg);