]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFReconstructor.cxx
Fix Coverity
[u/mrichter/AliRoot.git] / TOF / AliTOFReconstructor.cxx
index b3326b45f441185a03f4d2df8757715279697a1e..4c2e1b67177cb263552a2c0ccfc6bcfa2f109043 100644 (file)
@@ -262,24 +262,25 @@ void AliTOFReconstructor::FillEventTimeWithTOF(AliESDEvent *event, AliESDpid *es
   if (!GetRecoParam()) AliFatal("cannot get TOF RECO params");
 
   Float_t tofResolution = GetRecoParam()->GetTimeResolution();// TOF time resolution in ps
-  AliTOFT0maker *tofT0maker = new AliTOFT0maker(esdPID,fTOFcalib);
-  //AliTOFT0maker tofT0maker = AliTOFT0maker(esdPID,fTOFcalib);
+  AliTOFT0maker *tofT0maker = new AliTOFT0maker(esdPID);
   tofT0maker->SetTimeResolution(tofResolution);
   tofT0maker->ComputeT0TOF(event);
   tofT0maker->WriteInESD(event);
   tofT0maker->~AliTOFT0maker();
   delete tofT0maker;
 
+  esdPID->SetTOFResponse(event,(AliESDpid::EStartTimeType_t)GetRecoParam()->GetStartTimeType());
+
 }
 
 //_____________________________________________________________________________
 void 
-AliTOFReconstructor::FillESD(TTree *, TTree *, AliESDEvent *esdEvent) const
+AliTOFReconstructor::FillESD(TTree *, TTree *, AliESDEvent * /*esdEvent*/) const
 {
   //
   // correct Texp 
   // 
   //
 
-  fTOFcalib->CalibrateTExp(esdEvent);
+  //  fTOFcalib->CalibrateTExp(esdEvent);
 }