ix=digs->GetCoord2(); // Strip Number
is=digs->GetCompressedSignal(); // ADC Signal
// cout<<" Module:"<<mod-500<<" N/P side:"<<iz<<" Strip Number:"<<ix<<" Amplidute:"<<is-1<<endl;
- if(is<0) is = 4096 + is;
+ if(is<0) is = 0;
+ if(is>4095) is = 4095;
if (fVerbose==2)
ftxt<<"DDL:"<<ddl<<" Mod: "<<modR<<" N/P: "<<iz<<" Strip: "<<ix<<" Value: "<<is-1<<endl;
}//end else
return;
}//end WriteHit
+
// signal is converted in unit of ADC
signal = res->GetSSDDEvToADC(signal);
- if(signal>4096.) signal = 4096.;//if exceeding, accumulate last one
+ if(signal>4095.) signal = 4095.;//if exceeding, accumulate last one
// threshold for zero suppression is set on the basis of the noise
// A good value is 3*sigma_noise