]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Bug in DDL config fixed (thanks to P.Hristov)
authorkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Oct 2006 16:04:01 +0000 (16:04 +0000)
committerkir <kir@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 30 Oct 2006 16:04:01 +0000 (16:04 +0000)
RICH/AliRICHDigit.h
RICH/AliRICHReconstructor.cxx

index 5a92fb5a3a319c682d401660e4d706efedf1921f..91e7c69e3393deae3e7fc1d4b469921787a4df66 100644 (file)
@@ -38,7 +38,7 @@ public:
          Int_t   Ch          (                               )const{return A2C(fPad);                               }                  //chamber number
          Int_t   Dilogic     (                               )const{return 10-PadX()/kDilX;                         }                  //raw d=1..10
   static void    DrawPc      (Bool_t isFill=kTRUE            );                                                                        //draw PCs
-         Int_t   Ddl         (                               )const{return (PadX()<kPadPcX) ? 2*Ch()-2 : 2*Ch()-1;}                    //DDL number 0..13
+         Int_t   Ddl         (                               )const{return (PadX()<kPadPcX) ? 2*Ch() : 2*Ch()+1;    }                  //DDL number 0..13
   static Float_t Hit2Sdi     (AliRICHHit *pHit,TClonesArray *);                                                                        //hit -> 9 sdigits, returns total QDC   
   static Bool_t  IsOverTh    (Float_t q                      )     {return q > 6;                                                  }   //is digit over threshold????
   static Bool_t  IsInside    (Float_t x,Float_t y            )     {return x>0&&y>0&&x<SizeAllX()&&y<SizeAllY();                   }   //is point inside pc boundary?
index debb31a4cb6620a6ea21f17e44d5e717cbf00a06..413263b9cb6e3674834daf4b8a38c8b95e3c68ad 100644 (file)
@@ -172,9 +172,9 @@ void AliRICHReconstructor::Reconstruct(AliRunLoader *pAL,AliRawReader* pRR)const
     pAL->GetEvent(iEvtN++);
     pRL->MakeTree("R");  pRich->MakeBranch("R");
     
-    for(Int_t iChN=1;iChN<=7;iChN++){//chambers loop
+    for(Int_t iCh=0;iCh<7;iCh++){//chambers loop
       TClonesArray *pDigLst=new TClonesArray("AliRICHDigit"); Int_t iDigCnt=0; //tmp list of digits for single chamber
-      pRR->Select("RICH",2*iChN-2,2*iChN-1);//select only DDL files for the current chamber      
+      pRR->Select("RICH",2*iCh,2*iCh+1);//select only DDL files for the current chamber      
       UInt_t w32=0;
       while(pRR->ReadNextInt(w32)){//raw records loop (in selected DDL files)
         UInt_t ddl=pRR->GetDDLID(); //returns 0,1,2 ... 13