this->fDriftVel[1] = s.fDriftVel[1];
return *this;
}
+/*
//______________________________________________________________________
AliITSsimulation& AliITSsimulationSSD::operator=(
const AliITSsimulation &s){
return *this;
}
+*/
//______________________________________________________________________
AliITSsimulationSSD::AliITSsimulationSSD(const AliITSsimulationSSD &source):
AliITSsimulation(source),
if ( y > (seg->Dy()/2+10)*1.0E-4 ) {
// check if particle is within the detector
Warning("HitToDigit",
- "hit out of detector y0=%e,y=%e,dey=%e,j =%e module=%d",
- y0,y,dey,j,module);
+ "hit out of detector y0=%e,y=%e,dey=%e,j =%d module=%d, exceed=%e",
+ y0,y,dey,j,module, y-(seg->Dy()/2+10)*1.0E-4);
return;
} // end if
z = z0 + (j+0.5)*dez;
AliITSCalibrationSSD* res = (AliITSCalibrationSSD*)GetCalibrationModel(module);
- deadentries = res->GetDeadPChannelsList().GetSize();
- //cout<<module<<" "<<deadentries<<endl;
- for(Int_t i=0; i<deadentries; i++) {
- res->AddGainP(res->GetDeadPChannelsList().At(i),0.0);
- }
+ for(Int_t i=0;i<GetNStrips();i++){
- deadentries = res->GetDeadNChannelsList().GetSize();
- for(Int_t i=0; i<deadentries; i++) {
- res->AddGainN(res->GetDeadNChannelsList().At(i),0.0);
- }
+ //if((res->IsPChannelBad(i))||(res->IsNChannelBad(i))) cout<<module<<" "<<i<<" "<<res->IsPChannelBad(i)<<" "<<res->IsNChannelBad(i)<<endl;
+ if(res->IsPChannelBad(i)) res->AddGainP(i,0.0);
+ if(res->IsNChannelBad(i)) res->AddGainN(i,0.0);
+
+ } // loop over strips
}
// if strip is dead -> gain=0
if( ((k==0)&&(res->GetGainP(ix)==0)) || ((k==1)&&(res->GetGainN(ix)==0))) continue;
+ signal = fMapA2->GetSignal(k,ix);
// signal has to be uncalibrated
// In real life, gains are supposed to be calculated from calibration runs,
// stored in the calibration DB and used in the reconstruction
else signal /= res->GetGainN(ix);
// signal is converted in unit of ADC
- signal = res->GetDEvToADC(fMapA2->GetSignal(k,ix));
+ signal = res->GetDEvToADC(signal);
if(signal>4096.) signal = 4096.;//if exceeding, accumulate last one
// threshold for zero suppression is set on the basis of the noise