Fork me on GitHub

Changeset dacd9c5 in git


Ignore:
Timestamp:
Dec 22, 2014, 1:50:39 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
42f8e78
Parents:
8c72f09
Message:

fix particle status in PileUpMergerPythia8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/PileUpMergerPythia8.cc

    r8c72f09 rdacd9c5  
    2121 *  Merges particles from pile-up sample into event
    2222 *
    23  *  \author P. Selvaggi - UCL, Louvain-la-Neuve
     23 *  \author M. Selvaggi - UCL, Louvain-la-Neuve
    2424 *
    2525 */
     
    102102  TDatabasePDG *pdg = TDatabasePDG::Instance();
    103103  TParticlePDG *pdgParticle;
    104   Int_t pid;
     104  Int_t pid, status;
    105105  Float_t x, y, z, t;
    106106  Float_t px, py, pz, e;
     
    131131      Pythia8::Particle &particle = fPythia->event[i];
    132132
    133       if(particle.status() != 1 || !particle.isVisible() || particle.pT() <= fPTMin) continue;
     133      status = particle.statusHepMC();
     134
     135      if(status != 1 || !particle.isVisible() || particle.pT() <= fPTMin) continue;
    134136
    135137      pid = particle.id();
     
    141143      candidate->PID = pid;
    142144
    143       candidate->Status = 1;
     145      candidate->Status = status;
    144146
    145147      pdgParticle = pdg->GetParticle(pid);
Note: See TracChangeset for help on using the changeset viewer.