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?
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