Fork me on GitHub

Changeset 0060caa in git


Ignore:
Timestamp:
May 5, 2021, 6:17:32 PM (3 years ago)
Author:
michele <michele.selvaggi@…>
Branches:
master
Children:
f08474a
Parents:
c27c038
Message:

initialPos in PF and Tracks given by cand, not particle pointer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/TreeWriter.cc

    rc27c038 r0060caa  
    404404    entry->Mass = m;
    405405
    406     particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
    407     const TLorentzVector &initialPosition = particle->Position;
     406    //particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     407    //const TLorentzVector &initialPosition = particle->Position;
     408    const TLorentzVector &initialPosition = candidate->InitialPosition;
    408409
    409410    entry->X = initialPosition.X();
     
    557558    entry->Mass = m;
    558559
    559     particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
    560     const TLorentzVector &initialPosition = particle->Position;
     560    //particle = static_cast<Candidate *>(candidate->GetCandidates()->At(0));
     561    //const TLorentzVector &initialPosition = particle->Position;
     562    const TLorentzVector &initialPosition = candidate->InitialPosition;
    561563
    562564    entry->X = initialPosition.X();
     
    574576    entry->Edges[3] = candidate->Edges[3];
    575577
    576     entry->T = position.T() * 1.0E-3 / c_light;
     578    //entry->T = position.T() * 1.0E-3 / c_light;
    577579    entry->NTimeHits = candidate->NTimeHits;
    578580
Note: See TracChangeset for help on using the changeset viewer.