Fork me on GitHub

Changeset e26d4d6 in git for readers


Ignore:
Timestamp:
Aug 13, 2013, 5:28:49 PM (11 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
ca55e0b8
Parents:
74fdbae
Message:

read time from ProMC file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesProMC.cpp

    r74fdbae re26d4d6  
    5454  Int_t pid, status;
    5555  Double_t px, py, pz, mass;
    56   Double_t x, y, z;
     56  Double_t x, y, z, t;
    5757
    5858  pdg = TDatabasePDG::Instance();
     
    9090    status = mutableParticles->status(i);
    9191    px = mutableParticles->px(i); py = mutableParticles->py(i); pz = mutableParticles->pz(i); mass = mutableParticles->mass(i);
    92     x = mutableParticles->x(i); y = mutableParticles->y(i); z = mutableParticles->z(i);
     92    x = mutableParticles->x(i); y = mutableParticles->y(i); z = mutableParticles->z(i); t = mutableParticles->t(i);
    9393
    9494    candidate = factory->NewCandidate();
     
    111111    candidate->Momentum.SetXYZM(px, py, pz, mass);
    112112
    113     candidate->Position.SetXYZT(x, y, z, 0.0);
     113    candidate->Position.SetXYZT(x, y, z, t);
    114114
    115115    allParticleOutputArray->Add(candidate);
Note: See TracChangeset for help on using the changeset viewer.