X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFCalibTask.cxx;h=dfe0faa9039d9ca620400aa9b8239773c9ab9ad2;hb=bc0379e53cf2a5d420d9a508db96dcfb1113210b;hp=09e5b61dc3da7289705b61d69856797182d36a10;hpb=1e76f1ecca8f2d91d9f1df710a0205f719c76bd6;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFCalibTask.cxx b/TOF/AliTOFCalibTask.cxx index 09e5b61dc3d..dfe0faa9039 100644 --- a/TOF/AliTOFCalibTask.cxx +++ b/TOF/AliTOFCalibTask.cxx @@ -14,6 +14,12 @@ **************************************************************************/ /* $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 @@ -187,8 +193,11 @@ AliTOFCalibTask:: ~AliTOFCalibTask() // destructor AliInfo("TOF Calib Task: Deleting"); + for (Int_t i =0;iGetTOFCalChannel()); 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(); @@ -498,7 +507,6 @@ void AliTOFCalibTask::Terminate(Option_t *) for (Int_t i = 0;iGetTOFcluster();//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++; @@ -738,6 +746,10 @@ Bool_t AliTOFCalibTask::CombPID(Float_t *smallarray, Int_t size){ smallarray[idxextimePr]=-1; } } + delete[] exptof; + delete[] timeofflight; + delete[] texp; + delete[] index; } return 1; @@ -798,6 +810,11 @@ Float_t AliTOFCalibTask::LoopCombPID(Int_t itrkinset, Int_t ntrkinset, Float_t chisquarebest=chisquare; } + delete[] besttimezero; + delete[] bestchisquare; + delete[] bestweightedtimezero; + delete[] weightedtimezero; + delete[] timezero; } } return chisquarebest;