Fix for DDLs chamber2 cables inversion (DAQ people mistake) for the interested runs
authorgvolpe <gvolpe@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Dec 2011 13:27:05 +0000 (13:27 +0000)
committergvolpe <gvolpe@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Dec 2011 13:27:05 +0000 (13:27 +0000)
HMPID/AliHMPIDRawStream.cxx

index 1471477..18fc8ee 100644 (file)
@@ -181,7 +181,15 @@ Bool_t AliHMPIDRawStream::Next()
   do {
     if (!fRawReader->ReadNextData(fData)) return kFALSE;
   } while (fRawReader->GetDataSize() == 0);
+  Int_t runNumber = fRawReader->GetRunNumber();
+  
+  Int_t ddlArray[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13}; 
+
+  // next line: fix for link chamber2 cables inversion for period LHC11d, LHC11e, LHC11f and LHC11h. 
   
+  if(runNumber>=156620 && runNumber<=170593) {ddlArray[4] = 5; ddlArray[5] = 4;}  
+  else {ddlArray[4] = 4; ddlArray[5] = 5;}
      
   /*
   Event type is selected as in $ALICE_ROOT/RAW/event.h  
@@ -205,7 +213,7 @@ Bool_t AliHMPIDRawStream::Next()
   fPosition = 0;
   Bool_t status=kFALSE;
   fRawDataSize=0;        
-  fDDLNumber = fRawReader->GetDDLID();
+  fDDLNumber = ddlArray[fRawReader->GetDDLID()];
   
   if(fDDLNumber<0) {
     AliWarning(Form("fDDLNumber not a acceptable value %i",fDDLNumber));