]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCRawStreamOld.cxx
Added protection against zero calibration coefficients.
[u/mrichter/AliRoot.git] / TPC / AliTPCRawStreamOld.cxx
index a82276d40104d5309f10924deaa156058e06f854..18daede7579061779847632f85aea5fc4f58676b 100644 (file)
@@ -45,12 +45,7 @@ AliTPCRawStreamOld::AliTPCRawStreamOld(AliRawReader* rawReader) :
 {
   // create an object to read TPC raw digits
 
-  //  Do not select on the equipment Id, since the Id
-  //  is wrong (it starts from 228 or so...)
-  //  SelectRawData(0);
-  //  Skip the Common Data Header, since it is only 7
-  //  32-bit words
-  rawReader->RequireHeader(kFALSE);
+  SelectRawData(0);
 
   TString path = gSystem->Getenv("ALICE_ROOT");
   path += "/TPC/mapping/Patch";
@@ -126,7 +121,7 @@ void AliTPCRawStreamOld::ApplyAltroMapping()
   // Take the DDL index, load
   // the corresponding altro mapping
   // object and fill the sector,row and pad indeces
-  Int_t ddlNumber = GetDDLNumber()-228;
+  Int_t ddlNumber = GetDDLNumber();
   Int_t patchIndex;
   if (ddlNumber < 72) {
     fSector = ddlNumber / 2;