Fork me on GitHub

Changeset 786028a in git


Ignore:
Timestamp:
May 18, 2016, 11:25:23 AM (8 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
641cb3d
Parents:
3f7ef54
Message:

fixed typo in TrackResolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TrackSmearing.cc

    r3f7ef54 r786028a  
    166166             *phiErrorHist = NULL;
    167167
    168   //cout<<fBeamSpotInputArray->GetSize ()<<endl;
    169168  if (!fBeamSpotInputArray || fBeamSpotInputArray->GetSize () == 0)
    170169    beamSpotPosition.SetXYZT(0.0, 0.0, 0.0, 0.0);
     
    175174  }
    176175
    177  
    178176  if (!fUseD0Formula)
    179177  {
     
    224222    d0 = trueD0 = candidate->D0;
    225223    dz = trueDZ = candidate->DZ;
     224     
    226225    p = trueP = candidate->P;
    227226    ctgTheta = trueCtgTheta = candidate->CtgTheta;
     
    352351    y = candidate->InitialPosition.Y ();
    353352    candidate->InitialPosition.SetZ (z + ((pz * (px * (x - beamSpotPosition.X ()) + py * (y - beamSpotPosition.Y ())) + pt * pt * (dz - z)) / (pt * pt)));
     353   
     354   
    354355    candidate->InitialPosition.SetT (t);
    355 
     356   
    356357    if (fApplyToPileUp || !candidate->IsPU)
    357358    {
     
    362363       candidate->ErrorPhi = phiError;
    363364       candidate->ErrorPT = ptError (p, ctgTheta, pError, ctgThetaError);
    364        candidate->TrackResolution = pError;
     365       candidate->TrackResolution = pError/p;
    365366    }
    366367   
Note: See TracChangeset for help on using the changeset viewer.