]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Minor bug on T0-AC resolution fixed. TOF resolution no longer read from TOHheader...
authorzampolli <chiara.zampolli@cern.ch>
Mon, 27 Oct 2014 08:49:54 +0000 (09:49 +0100)
committerzampolli <chiara.zampolli@cern.ch>
Mon, 27 Oct 2014 08:49:54 +0000 (09:49 +0100)
STEER/STEERBase/AliPIDResponse.cxx

index cddeeadbe9b3ab1e83832d31b98174d4d32f3268..5c8e5a4c2201603aef047608cf319148b3893033 100644 (file)
@@ -1902,7 +1902,7 @@ void AliPIDResponse::SetTOFResponse(AliVEvent *vevent,EStartTimeType_t option){
     AliTOFHeader *tofHeader = (AliTOFHeader*)vevent->GetTOFHeader();
 
     if (tofHeader) { // read global info and T0-TOF
-      fTOFResponse.SetTimeResolution(tofHeader->GetTOFResolution());
+      //      fTOFResponse.SetTimeResolution(tofHeader->GetTOFResolution()); // read from OADB in the initialization
       t0spread = tofHeader->GetT0spread(); // read t0 sprad
       if(t0spread < 10) t0spread = 80;
 
@@ -1968,8 +1968,8 @@ void AliPIDResponse::SetTOFResponse(AliVEvent *vevent,EStartTimeType_t option){
            t0C= vevent->GetT0TOF()[2] - starttimeoffset;
         //      t0AC= vevent->GetT0TOF()[0];
            t0AC= t0A/resT0A/resT0A + t0C/resT0C/resT0C;
-           resT0AC= TMath::Sqrt(1./resT0A/resT0A + 1./resT0C/resT0C);
-           t0AC /= resT0AC*resT0AC;
+           resT0AC= 1./TMath::Sqrt(1./resT0A/resT0A + 1./resT0C/resT0C);
+           t0AC *= resT0AC*resT0AC;
        }
 
        Float_t t0t0Best = 0;
@@ -2043,8 +2043,8 @@ void AliPIDResponse::SetTOFResponse(AliVEvent *vevent,EStartTimeType_t option){
            t0C= vevent->GetT0TOF()[2] - starttimeoffset;
         //      t0AC= vevent->GetT0TOF()[0];
            t0AC= t0A/resT0A/resT0A + t0C/resT0C/resT0C;
-           resT0AC= TMath::Sqrt(1./resT0A/resT0A + 1./resT0C/resT0C);
-           t0AC /= resT0AC*resT0AC;
+           resT0AC= 1./TMath::Sqrt(1./resT0A/resT0A + 1./resT0C/resT0C);
+           t0AC *= resT0AC*resT0AC;
        }
 
        if(TMath::Abs(t0A) < t0cut && TMath::Abs(t0C) < t0cut && TMath::Abs(t0C-t0A) < 500){