}
for (Int_t ipmt=0; ipmt<12; ipmt++){
- if(time[ipmt] > 1 ) {
+ if(time[ipmt] > 1 && adc[ipmt]>0.1) {
if(time[ipmt]<besttimeC){
besttimeC=time[ipmt]; //timeC
pmtBestC=ipmt;
}
}
for ( Int_t ipmt=12; ipmt<24; ipmt++){
- if(time[ipmt] > 1) {
+ if(time[ipmt] > 1 && adc[ipmt]>0.1) {
if(time[ipmt]<besttimeA) {
besttimeA=time[ipmt]; //timeA
pmtBestA=ipmt;}
Int_t refPoint = 0;
//Bad channel
Int_t badpmt = GetRecoParam()->GetRefPoint();
- Int_t low[110], high[110];
+ Int_t low[500], high[500];
Int_t allData[110][5];
high[i0] = Int_t (GetRecoParam()->GetHigh(i0));
}
+ Float_t lowAmpThreshold = GetRecoParam()->GetLow(200);
+ Float_t highAmpThreshold = GetRecoParam()->GetHigh(200);
Double32_t besttimeA=9999999;
Double32_t besttimeC=9999999;
Int_t pmtBestA=99999;
}
fESDTZEROfriend->SetT0timeCorr(noncalibtime) ;
for (Int_t ipmt=0; ipmt<12; ipmt++){
- if(time[ipmt] > 1 && ipmt != badpmt && adc[ipmt]>0.1 )
+ if(time[ipmt] > 1 && ipmt != badpmt && adc[ipmt]>lowAmpThreshold && adc[ipmt]<highAmpThreshold)
{
if(time[ipmt]<besttimeC){
besttimeC=time[ipmt]; //timeC
}
for ( Int_t ipmt=12; ipmt<24; ipmt++)
{
- if(time[ipmt] > 1 && ipmt != badpmt && adc[ipmt]>0.1)
+ if(time[ipmt] > 1 && ipmt != badpmt && adc[ipmt]>lowAmpThreshold && adc[ipmt]<highAmpThreshold)
{
if(time[ipmt]<besttimeA) {
besttimeA=time[ipmt]; //timeA
****************************************************/
AliDebug(1,Form("Start FillESD T0"));
+
pESD ->SetT0spread(fTimeSigmaShift);
-
Float_t channelWidth = fParam->GetChannelWidth() ;
Float_t c = 0.0299792458; // cm/ps
Float_t currentVertex=0, shift=0;
if ( time[i] >1) {
ampQTC[i] = frecpoints -> GetAmp(i);
amp[i] = frecpoints -> AmpLED(i);
- AliDebug(1,Form("T0: time %f ampQTC %f ampLED %f \n", time[i], ampQTC[i], amp[i]));
+ AliDebug(10,Form("T0: time %f ampQTC %f ampLED %f \n", time[i], ampQTC[i], amp[i]));
}
}
Int_t trig= frecpoints ->GetT0Trig();
AliESDfriend *fr = (AliESDfriend*)pESD->FindListObject("AliESDfriend");
if (fr) {
- AliDebug(1, Form("Writing TZERO friend data to ESD tree"));
+ AliDebug(10, Form("Writing TZERO friend data to ESD tree"));
// if (ncont>2) {
tcorr = fESDTZEROfriend->GetT0timeCorr();