Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TrackCovariance.cc

    rc18dca6 r3051ea17  
    9696  Candidate *candidate, *mother;
    9797  Double_t mass, p, pt, q, ct;
    98   Double_t dd0, ddz, dphi, dct, dp, dpt;
     98  Double_t dd0, ddz, dphi, dct, dp, dpt, dC;
    9999 
    100100
     
    115115    candidate->InitialPosition.SetXYZT(track.GetObsX().X(),track.GetObsX().Y(),track.GetObsX().Z(),candidatePosition.T());
    116116   
    117     // save full ACTS friendly covariance matrix internally (6x6: D, z0, phi0, theta, q/p, time)
    118     candidate->TrackCovarianceACTS = track.GetCovACTS();
     117    // save full covariance 5x5 matrix internally (D0, phi, Curvature, dz, ctg(theta))
     118    candidate->TrackCovariance = track.GetCov();
    119119
    120120    pt = candidate->Momentum.Pt();
     
    128128   
    129129    candidate->D0 = track.GetObsPar()[0];
     130    candidate->Phi = track.GetObsPar()[1];
     131    candidate->C = track.GetObsPar()[2];
    130132    candidate->DZ = track.GetObsPar()[3];
     133    candidate->CtgTheta = track.GetObsPar()[4];
    131134    candidate->P  = track.GetObsP().Mag();
    132     candidate->CtgTheta = track.GetObsPar()[4];
    133     candidate->Phi = track.GetObsPar()[1];
    134 
    135135    candidate->PT = pt;
    136136    candidate->Charge = q;
     
    142142    dpt       = 2 * TMath::Sqrt( track.GetCov()(2, 2))*pt*pt / (0.2998*fBz);
    143143    dp        = TMath::Sqrt((1.+ct*ct)*dpt*dpt + 4*pt*pt*ct*ct*dct*dct/(1.+ct*ct)/(1.+ct*ct));
     144    dC        = TMath::Sqrt(track.GetCov()(2, 2));
    144145
    145146    candidate->ErrorD0 = dd0;
    146147    candidate->ErrorDZ = ddz;
    147148    candidate->ErrorP = dp;
     149    candidate->ErrorC = dC;
    148150    candidate->ErrorCtgTheta = dct;
    149151    candidate->ErrorPhi = dphi;
Note: See TracChangeset for help on using the changeset viewer.