// Getters for data kept in fSegmentation and fResponse.
// Returns the Threshold in electrons
Double_t GetThreshold(){Double_t a=0.0,b=0.0;
- AliITSresponseSPD* res = (AliITSresponseSPD*)GetResponseModel(0);
+ AliITSresponseSPD* res = (AliITSresponseSPD*)GetResponseModel(GetModuleNumber());
res->Thresholds(a,b); return a;}
// Returns the threshold and rms noise.
void GetThresholds(Double_t &t,Double_t &s){
- AliITSresponseSPD* res = (AliITSresponseSPD*)GetResponseModel(0);
+ AliITSresponseSPD* res = (AliITSresponseSPD*)GetResponseModel(GetModuleNumber());
res->Thresholds(t,s);}
// Returns the couplings Columb and Row.
void GetCouplings(Double_t &cc,Double_t &cr){
- AliITSresponseSPD* res = (AliITSresponseSPD*)GetResponseModel(0);
+ AliITSresponseSPD* res = (AliITSresponseSPD*)GetResponseModel(GetModuleNumber());
res->GetCouplingParam(cc,cr);}
// Returns the number of pixels in x
Int_t GetNPixelsX(){AliITSsegmentationSPD* seg= (AliITSsegmentationSPD*)GetSegmentationModel(0);return seg->Npx();}
FillHistograms(ix,iz,sig+electronics);
if(GetDebug(3)){
cout<<sig<<"+"<<electronics<<">threshold("<<ix<<","<<iz
- <<")="<<GetThreshold(ix,iz) <<endl;
+ <<")="<<GetThreshold() <<endl;
} // end if GetDebug
- if (sig+electronics <= GetThreshold(ix,iz)) continue;
+ if (sig+electronics <= GetThreshold()) continue;
dig.SetCoord1(iz);
dig.SetCoord2(ix);
dig.SetSignal(1);
j1 += isign;
// pulse1 *= couplR;
xr = gRandom->Rndm();
- //if ((j1<0)||(j1>GetNPixelsZ()-1)||(pulse1<GetThreshold(j1,col))){
+ //if ((j1<0)||(j1>GetNPixelsZ()-1)||(pulse1<GetThreshold())){
if ((j1<0) || (j1>GetNPixelsZ()-1) || (xr>couplR)){
j1 = row;
flag = 1;
j2 += isign;
// pulse2 *= couplC;
xr = gRandom->Rndm();
- //if((j2<0)||j2>(GetNPixelsX()-1)||pulse2<GetThreshold(row,j2)){
+ //if((j2<0)||j2>(GetNPixelsX()-1)||pulse2<GetThreshold()){
if ((j2<0) || (j2>GetNPixelsX()-1) || (xr>couplC)){
j2 = col;
flag = 1;
do{
j1 += isign;
pulse1 *= couplR;
- if ((j1<0)||(j1>GetNPixelsZ()-1)||(pulse1<GetThreshold(j1,col))){
+ if ((j1<0)||(j1>GetNPixelsZ()-1)||(pulse1<GetThreshold())){
pulse1 = GetMap()->GetSignalOnly(row,col);
j1 = row;
flag = 1;
do{
j2 += isign;
pulse2 *= couplC;
- if((j2<0)||(j2>(GetNPixelsX()-1))||(pulse2<GetThreshold(row,j2))){
+ if((j2<0)||(j2>(GetNPixelsX()-1))||(pulse2<GetThreshold())){
pulse2 = GetMap()->GetSignalOnly(row,col);
j2 = col;
flag = 1;
void SetCouplingOld(Int_t row, Int_t col,Int_t ntrack,Int_t idhit);
// Getters for data kept in fSegmentation and fResponse.
// Returns the Threshold in electrons
- Double_t GetThreshold(Int_t ix,Int_t iz){
- Double_t th,sig;AliITSresponseSPD* res=(AliITSresponseSPD*)GetResponseModel(0);
+ Double_t GetThreshold(){
+ Double_t th,sig;AliITSresponseSPD* res=(AliITSresponseSPD*)GetResponseModel(GetModuleNumber());
res->Thresholds(th,sig);return th;};
// Returns the couplings Columb and Row.
void GetCouplings(Double_t &cc,Double_t &cr){