Fork me on GitHub

Changeset 2671df6 in git for modules


Ignore:
Timestamp:
Feb 16, 2021, 4:32:30 PM (4 years ago)
Author:
Michele Selvaggi <michele.selvaggi@…>
Branches:
master
Children:
0852ba95
Parents:
90975be
Message:

included CovarianceMatrix in Track and ParticleFlowCandidate branches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    r90975be r2671df6  
    348348
    349349    entry->D0 = candidate->D0;
    350     entry->ErrorD0 = candidate->ErrorD0;
    351350    entry->DZ = candidate->DZ;
    352     entry->ErrorDZ = candidate->ErrorDZ;
    353351
    354352    entry->ErrorP = candidate->ErrorP;
    355353    entry->ErrorPT = candidate->ErrorPT;
     354
     355    // diagonal covariance matrix terms
     356    entry->ErrorD0 = candidate->ErrorD0;
     357    entry->ErrorC = candidate->ErrorC;
     358    entry->ErrorPhi = candidate->ErrorPhi;
     359    entry->ErrorDZ = candidate->ErrorDZ;
    356360    entry->ErrorCtgTheta = candidate->ErrorCtgTheta;
    357     entry->ErrorPhi = candidate->ErrorPhi;
     361
     362    // add some offdiagonal covariance matrix elements
     363    entry->ErrorD0Phi          = candidate->TrackCovariance(0,1);
     364    entry->ErrorD0C            = candidate->TrackCovariance(0,2);
     365    entry->ErrorD0DZ           = candidate->TrackCovariance(0,3);
     366    entry->ErrorD0CtgTheta     = candidate->TrackCovariance(0,4);
     367    entry->ErrorPhiC           = candidate->TrackCovariance(1,2);
     368    entry->ErrorPhiDZ          = candidate->TrackCovariance(1,3);
     369    entry->ErrorPhiCtgTheta    = candidate->TrackCovariance(1,4);
     370    entry->ErrorCDZ            = candidate->TrackCovariance(2,3);
     371    entry->ErrorCCtgTheta      = candidate->TrackCovariance(2,4);
     372    entry->ErrorDZCtgTheta     = candidate->TrackCovariance(3,4);
    358373
    359374    entry->Xd = candidate->Xd;
     
    482497
    483498    entry->D0 = candidate->D0;
    484     entry->ErrorD0 = candidate->ErrorD0;
    485499    entry->DZ = candidate->DZ;
    486     entry->ErrorDZ = candidate->ErrorDZ;
    487500
    488501    entry->ErrorP = candidate->ErrorP;
    489502    entry->ErrorPT = candidate->ErrorPT;
    490503    entry->ErrorCtgTheta = candidate->ErrorCtgTheta;
     504
     505
     506    // diagonal covariance matrix terms
     507
     508    entry->ErrorD0 = candidate->ErrorD0;
     509    entry->ErrorC = candidate->ErrorC;
    491510    entry->ErrorPhi = candidate->ErrorPhi;
     511    entry->ErrorDZ = candidate->ErrorDZ;
     512    entry->ErrorCtgTheta = candidate->ErrorCtgTheta;
     513
     514    // add some offdiagonal covariance matrix elements
     515    entry->ErrorD0Phi          = candidate->TrackCovariance(0,1);
     516    entry->ErrorD0C            = candidate->TrackCovariance(0,2);
     517    entry->ErrorD0DZ           = candidate->TrackCovariance(0,3);
     518    entry->ErrorD0CtgTheta     = candidate->TrackCovariance(0,4);
     519    entry->ErrorPhiC           = candidate->TrackCovariance(1,2);
     520    entry->ErrorPhiDZ          = candidate->TrackCovariance(1,3);
     521    entry->ErrorPhiCtgTheta    = candidate->TrackCovariance(1,4);
     522    entry->ErrorCDZ            = candidate->TrackCovariance(2,3);
     523    entry->ErrorCCtgTheta      = candidate->TrackCovariance(2,4);
     524    entry->ErrorDZCtgTheta     = candidate->TrackCovariance(3,4);
     525
     526    cout<<entry->ErrorPhiC<<endl;
    492527
    493528    entry->Xd = candidate->Xd;
Note: See TracChangeset for help on using the changeset viewer.