Fork me on GitHub

Changeset 5b51d33 in git for modules


Ignore:
Timestamp:
Jun 6, 2018, 12:13:40 PM (6 years ago)
Author:
Pavel Demin <pavel-demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
ec37bc3
Parents:
60e1de6
Message:

check if candidate is particle before setting impact parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/ParticlePropagator.cc

    r60e1de6 r5b51d33  
    372372
    373373        // store these variables before cloning
    374         particle->D0 = d0*1.0E3;
    375         particle->DZ = dz*1.0E3;
    376         particle->P  = p;
    377         particle->PT = pt;
    378         particle->CtgTheta = ctgTheta;
    379         particle->Phi = phip;
     374        if(particle == candidate)
     375        {
     376          particle->D0 = d0*1.0E3;
     377          particle->DZ = dz*1.0E3;
     378          particle->P = p;
     379          particle->PT = pt;
     380          particle->CtgTheta = ctgTheta;
     381          particle->Phi = phip;
     382        }
    380383
    381384        mother = candidate;
Note: See TracChangeset for help on using the changeset viewer.