]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/ITSSDDQAMaker.C
Fix problem in simulated raw data + code cleanup (F.Prino)
[u/mrichter/AliRoot.git] / ITS / ITSSDDQAMaker.C
index 36a3a8183c44c6a2dcf564c6d4ca1d6f7080c1e7..50b9fc4ba9f62941cf14ed58ef4881929973bf04 100644 (file)
@@ -70,9 +70,10 @@ Char_t *hisnam3 = new Char_t[50];
     Int_t moduleSDD;
     gStyle->SetPalette(1);
     while(s.Next()){                     //read the next raw digit; returns kFALSE if there is no digit left
+      if(s.IsCompletedModule()) continue;
+      iddl=rd->GetDDLID()-2; // -2 is temporary for test raw data
 
-      iddl=rd->GetDDLID(); // careful: it starts from 1!!!
-       isddmod=s.GetModuleNumber(iddl-1,s.GetCarlosId());        //this is the FEE Carlos
+       isddmod=s.GetModuleNumber(iddl,s.GetCarlosId());        //this is the FEE Carlos
                //cout<<"DDLID= "<<iddl <<"; Module number= " <<isddmod  <<endl;
        if(isddmod >= imodoffset) { 
          hModulePattern->Fill(isddmod-imodoffset);             // 0 to 259    so  240 to 499