**************************************************************************/
/*
$Log$
+Revision 1.6 2007/10/05 10:44:11 zampolli
+Oversight for debugging purpose fixed
+
+Revision 1.5 2007/10/05 10:38:10 zampolli
+Oversight fixed
+
Revision 1.4 2007/10/04 15:36:44 zampolli
Updates to new TOF offline calibration schema
// destructor
AliInfo("TOF Calib Task: Deleting");
+ for (Int_t i =0;i<TOFCHANNELS;i++){
+ delete [] fbigarray[i];
+ }
delete[] fbigarray;
- delete findexarray;
+ delete[] findexarray;
delete fOutputContainer;
delete fhToT;
delete fhTime;
nselected++;
Int_t ich = Int_t(t->GetTOFCalChannel());
fhch->Fill(ich);
- ich=3;
+ // ich=3; //only for debug purpose
AliDebug(2,Form(" ESD in channel %i, filling array %i",t->GetTOFCalChannel(),ich));
Float_t tot = t->GetTOFsignalToT();
Float_t time = t->GetTOFsignalRaw();
for (Int_t i = 0;i<TOFCHANNELS;i++){
Int_t size=findexarray[i]*NIDX;
- if (i==3) AliInfo(Form(" entries %i in channel %i ",findexarray[i],i));
AliDebug(2, Form(" entries %i in channel %i ",findexarray[i],i));
if (findexarray[i]<=2) {
AliDebug(1, Form(" not enough statistics for combined PID for channel %i, putting all the tracks as if they were pions",i));
// return 0; // skipping momentum cut
}
- UInt_t assignedTOFcluster=t->GetTOFcluster();//index of the assigned TOF cluster, >0 ?
- if(assignedTOFcluster==0){ // not matched
+ Int_t assignedTOFcluster=t->GetTOFcluster();//index of the assigned TOF cluster, >0 ?
+ if(assignedTOFcluster==-1){ // not matched
return 0;
}
fnESDassTOFcl++;
smallarray[idxextimePr]=-1;
}
}
+ delete[] exptof;
+ delete[] timeofflight;
+ delete[] texp;
+ delete[] index;
}
return 1;
chisquarebest=chisquare;
}
+ delete[] besttimezero;
+ delete[] bestchisquare;
+ delete[] bestweightedtimezero;
+ delete[] weightedtimezero;
+ delete[] timezero;
}
}
return chisquarebest;