Fork me on GitHub

Changeset 44f4a4e in git for modules


Ignore:
Timestamp:
Oct 17, 2020, 4:09:38 AM (4 years ago)
Author:
Stephen Sekula <sekula@…>
Children:
62cc8f5
Parents:
25291dd
Message:

Make clone of IdentificationMap output candidates to avoid modifying PID data member of the input particle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/IdentificationMap.cc

    r25291dd r44f4a4e  
    167167      p = formula->Eval(pt, eta, phi, e);
    168168
     169
    169170      if(total <= r && r < total + p)
    170171      {
    171172        // change PID of particle
     173        candidate = static_cast<Candidate *>(candidate->Clone());
    172174        if(pdgCodeOut != 0) candidate->PID = charge * pdgCodeOut;
    173175        fOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.