Fork me on GitHub

Changeset 80d4a34 in git for readers/DelphesProMC.cpp


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesProMC.cpp

    r47bd664 r80d4a34  
    5353
    5454  Int_t pid, status;
    55   Double_t px, py, pz, e, mass;
     55  Double_t px, py, pz, mass;
    5656  Double_t x, y, z;
    5757
     
    9191    px = mutableParticles->px(i); py = mutableParticles->py(i); pz = mutableParticles->pz(i); mass = mutableParticles->mass(i);
    9292    x = mutableParticles->x(i); y = mutableParticles->y(i); z = mutableParticles->z(i);
    93     e = TMath::Sqrt(px*px + py*py + pz*pz + mass*mass);
    9493
    9594    candidate = factory->NewCandidate();
     
    108107    pdgParticle = pdg->GetParticle(pid);
    109108    candidate->Charge = pdgParticle ? Int_t(pdgParticle->Charge()/3.0) : -999;
    110     candidate->Mass = pdgParticle ? pdgParticle->Mass() : -999.9;
    111 
    112     candidate->Momentum.SetPxPyPzE(px, py, pz, e);
     109    candidate->Mass = mass;
     110
     111    candidate->Momentum.SetXYZM(px, py, pz, mass);
    113112
    114113    candidate->Position.SetXYZT(x, y, z, 0.0);
Note: See TracChangeset for help on using the changeset viewer.