Fork me on GitHub

Changeset 80d4a34 in git for classes


Ignore:
Timestamp:
Jul 8, 2013, 9:27:21 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
bba4646
Parents:
47bd664
Message:

use mass from input file

Location:
classes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesHepMCReader.cc

    r47bd664 r80d4a34  
    338338  pdgParticle = fPDG->GetParticle(fPID);
    339339  candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
    340   candidate->Mass = pdgParticle ? pdgParticle->Mass() : -999.9;
     340  candidate->Mass = fMass;
    341341
    342342  candidate->Momentum.SetPxPyPzE(fPx, fPy, fPz, fE);
  • classes/DelphesLHEFReader.cc

    r47bd664 r80d4a34  
    181181  pdgParticle = fPDG->GetParticle(fPID);
    182182  candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
    183   candidate->Mass = pdgParticle ? pdgParticle->Mass() : -999.9;
     183  candidate->Mass = fMass;
    184184
    185185  candidate->Momentum.SetPxPyPzE(fPx, fPy, fPz, fE);
  • classes/DelphesSTDHEPReader.cc

    r47bd664 r80d4a34  
    415415  int number;
    416416  int pid, status, m1, m2, d1, d2;
    417   double px, py, pz, e, m;
     417  double px, py, pz, e, mass;
    418418  double x, y, z, t;
    419419
     
    439439    xdr_double(&bufferXDR[4], &pz);
    440440    xdr_double(&bufferXDR[4], &e);
    441     xdr_double(&bufferXDR[4], &m);
     441    xdr_double(&bufferXDR[4], &mass);
    442442
    443443    xdr_double(&bufferXDR[5], &x);
     
    461461    pdgParticle = fPDG->GetParticle(pid);
    462462    candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
    463     candidate->Mass = pdgParticle ? pdgParticle->Mass() : -999.9;
     463    candidate->Mass = mass;
    464464
    465465    candidate->Momentum.SetPxPyPzE(px, py, pz, e);
Note: See TracChangeset for help on using the changeset viewer.