startTime no longer subtracted to TOF signal in AOD
[u/mrichter/AliRoot.git] / ANALYSIS / AliAnalysisTaskESDfilter.cxx
index b525fc3..2f58330 100644 (file)
@@ -511,7 +511,7 @@ void AliAnalysisTaskESDfilter::ConvertCascades(const AliESDEvent& esd)
 //      vCascade->Print();\r
 //    }\r
     \r
-    if(esd.GetTOFHeader() && fIsPidOwner) fESDpid->SetTOFResponse(const_cast<AliESDEvent*>(&esd), (AliESDpid::EStartTimeType_t)fTimeZeroType); //in case of AOD production starting form LHC10e without Tender. \r
+//    if(esd.GetTOFHeader() && fIsPidOwner) fESDpid->SetTOFResponse(const_cast<AliESDEvent*>(&esd), (AliESDpid::EStartTimeType_t)fTimeZeroType); //in case of AOD production starting form LHC10e without Tender. \r
 \r
 \r
     // 3 - Add the bachelor track from the cascade\r
@@ -2125,14 +2125,14 @@ void AliAnalysisTaskESDfilter::ConvertESDtoAOD()
     for (Int_t i=0; i<10; i++) t0spread[i] = (TMath::Sqrt(esd->GetSigma2DiamondZ()))/0.03; //0.03 to convert from cm to ps\r
     fESDpid->GetTOFResponse().SetT0resolution(t0spread);\r
     fESDpid->GetTOFResponse().SetTimeResolution(intrinsicTOFres);\r
-    fESDpid->SetTOFResponse(esd, (AliESDpid::EStartTimeType_t)fTimeZeroType);    \r
+      //    fESDpid->SetTOFResponse(esd, (AliESDpid::EStartTimeType_t)fTimeZeroType);    \r
     AliTOFHeader tmpTOFHeader(0,t0spread[0],0,NULL,NULL,NULL,intrinsicTOFres,t0spread[0]);   \r
     AODEvent()->SetTOFHeader(&tmpTOFHeader);         // write dummy TOF header in AOD\r
   } else {\r
     AODEvent()->SetTOFHeader(esd->GetTOFHeader());    // write TOF header in AOD\r
   }\r
   \r
-  if(esd->GetTOFHeader() && fIsPidOwner) fESDpid->SetTOFResponse(esd, (AliESDpid::EStartTimeType_t)fTimeZeroType); //in case of AOD production strating form LHC10e without Tender. \r
+  //  if(esd->GetTOFHeader() && fIsPidOwner) fESDpid->SetTOFResponse(esd, (AliESDpid::EStartTimeType_t)fTimeZeroType); //in case of AOD production strating form LHC10e without Tender. \r
   \r
   if ( fAreCascadesEnabled ) ConvertCascades(*esd);\r
 \r
@@ -2271,12 +2271,14 @@ void AliAnalysisTaskESDfilter::SetDetectorRawSignals(AliAODPid *aodpid, AliESDtr
  Double_t times[AliAODPid::kSPECIES]; track->GetIntegratedTimes(times);\r
  aodpid->SetIntegratedTimes(times);\r
 \r
-  Float_t tzeroTrack = fESDpid->GetTOFResponse().GetStartTime(track->P());\r
-  aodpid->SetTOFsignal(track->GetTOFsignal()-tzeroTrack);\r
+   //  Float_t tzeroTrack = fESDpid->GetTOFResponse().GetStartTime(track->P());\r
+   //  aodpid->SetTOFsignal(track->GetTOFsignal()-tzeroTrack);
+   aodpid->SetTOFsignal(track->GetTOFsignal());
   \r
   Double_t tofRes[5];\r
   for (Int_t iMass=0; iMass<5; iMass++){\r
-    tofRes[iMass]=(Double_t)fESDpid->GetTOFResponse().GetExpectedSigma(track->P(), times[iMass], AliPID::ParticleMass(iMass));\r
+    //    tofRes[iMass]=(Double_t)fESDpid->GetTOFResponse().GetExpectedSigma(track->P(), times[iMass], AliPID::ParticleMass(iMass));\r
+    tofRes[iMass]=0; //backward compatibility
   }\r
   aodpid->SetTOFpidResolution(tofRes);\r
 \r