Int_t nt=-1;
if(fo) {
AliWarning("PlaneEff: you asked for FO efficiency");
- nf=fFound[GetKey(im,ic,fo,bcm4)];
- nt=fTried[GetKey(im,ic,fo,bcm4)];
+ UInt_t key=GetKey(im,ic,fo,bcm4);
+ if(key<kNModule*kNChip*(kNClockPhase+1)) {
+ nf=fFound[key];
+ nt=fTried[key];
+ }
} else {
- nf=fFound[GetKey(im,ic)];
- nt=fTried[GetKey(im,ic)];
+ UInt_t key=GetKey(im,ic);
+ if (key<kNModule*kNChip) {
+ nf=fFound[key];
+ nt=fTried[key];
+ }
}
return AliITSPlaneEff::PlaneEff(nf,nt);
}
Int_t nt=-1;
if(fo) {
AliWarning("ErrPlaneEff: you asked for FO efficiency");
- nf=fFound[GetKey(im,ic,fo,bcm4)];
- nt=fTried[GetKey(im,ic,fo,bcm4)];
+ UInt_t key=GetKey(im,ic,fo,bcm4);
+ if(key<kNModule*kNChip*(kNClockPhase+1)) {
+ nf=fFound[key];
+ nt=fTried[key];
+ }
} else {
- nf=fFound[GetKey(im,ic)];
- nt=fTried[GetKey(im,ic)];
+ UInt_t key=GetKey(im,ic);
+ if (key<kNModule*kNChip) {
+ nf=fFound[key];
+ nt=fTried[key];
+ }
}
return AliITSPlaneEff::ErrPlaneEff(nf,nt);
}
if(fo && bcm4>=kNClockPhase)
{AliError("UpDatePlaneEff: you asked for Fast Or in a wrong phase"); return kFALSE;}
if (!fo) {
- fTried[GetKey(im,ic)]++;
- if(Kfound) fFound[GetKey(im,ic)]++;
- return kTRUE;
+ UInt_t key=GetKey(im,ic);
+ if(key<kNModule*kNChip) {
+ fTried[key]++;
+ if(Kfound) fFound[key]++;
+ return kTRUE;
+ }
}
else {
- fTried[GetKey(im,ic,fo,bcm4)]++;
- if(Kfound) fFound[GetKey(im,ic,fo,bcm4)]++;
- return kTRUE;
+ UInt_t key=GetKey(im,ic,fo,bcm4);
+ if(key<kNModule*kNChip*(kNClockPhase+1)) {
+ fTried[key]++;
+ if(Kfound) fFound[key]++;
+ return kTRUE;
+ }
}
return kFALSE;
}
// get key given a basic block
UInt_t key=99999;
if(mod>=kNModule || chip>=kNChip)
- {AliWarning("GetKey: you asked for a non existing block"); return 99999;}
+ {AliDebug(1,"GetKey: you asked for a non existing block"); return 99999;}
key = mod*kNChip+chip;
if(FO) {
- if(BCm4>= kNClockPhase) {AliWarning("GetKey: you have asked Fast OR and a non exisiting BC modulo 4"); return 99999;}
+ if(BCm4>= kNClockPhase) {AliDebug(1,"GetKey: you have asked Fast OR and a non exisiting BC modulo 4"); return 99999;}
key += kNModule*kNChip*(BCm4+1);
}
return key;
// Implemented by valerio.altini@ba.infn.it
if(key>=kNModule*kNChip*(kNClockPhase+1))
- {AliWarning("SwitchChipKeyNumbering: you asked for a non existing key"); return 99999;}
+ {AliDebug(1,"SwitchChipKeyNumbering: you asked for a non existing key"); return 99999;}
UInt_t mod=9999,chip=9999,phase=9999;
GetModAndChipFromKey(key,mod,chip);
if(mod<kNModuleLy1) chip = kNChip-(chip+1);
if(key>=kNModule*kNChip*(kNClockPhase+1))
{AliError("GetBCm4FromKey: you asked for a non existing key"); return 999;}
if(key<kNModule*kNChip)
- {AliWarning("GetBCm4FromKey: key is below 1200, why are you asking for FO related stuff"); return 999;}
+ {AliDebug(1,"GetBCm4FromKey: key is below 1200, why are you asking for FO related stuff"); return 999;}
return key/(kNModule*kNChip) - 1 ;
}
// Return: kTRUE if computation was succesfully, kFALSE otherwise
//
if(key>=kNModule*kNChip)
- {AliWarning("GetBlockBoundaries: you asked for a non existing key"); return kFALSE;}
+ {AliDebug(1,"GetBlockBoundaries: you asked for a non existing key"); return kFALSE;}
UInt_t chip=GetChipFromKey(key);
zmn=GetLocZFromCol(chip*kNCol);
zmx=GetLocZFromCol((chip+1)*kNCol);