Fork me on GitHub

Changeset 7143a0e in git


Ignore:
Timestamp:
Mar 1, 2021, 3:59:56 PM (4 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
3f8466a
Parents:
601a13b
Message:

force gen particle candidate to track covariance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TrackCovariance.cc

    r601a13b r7143a0e  
    100100void TrackCovariance::Process()
    101101{
    102   Candidate *candidate, *mother;
     102  Candidate *candidate, *mother, *particle;
    103103  Double_t mass, p, pt, q, ct;
    104104  Double_t dd0, ddz, dphi, dct, dp, dpt, dC;
     
    110110
    111111    // converting to meters
    112     const TLorentzVector &candidatePosition = candidate->InitialPosition*1e-03;
    113     const TLorentzVector &candidateMomentum = candidate->Momentum;
     112    //const TLorentzVector &candidatePosition = candidate->InitialPosition*1e-03;
     113    //const TLorentzVector &candidateMomentum = candidate->Momentum;
     114
     115    particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     116
     117    const TLorentzVector &candidatePosition = particle->Position*1e-03;
     118    const TLorentzVector &candidateMomentum = particle->Momentum;
    114119
    115120    if ( !fCovariance->IsAccepted(candidateMomentum.Vect()) ) continue;
Note: See TracChangeset for help on using the changeset viewer.