Fork me on GitHub

Changeset 1247 in svn for trunk/readers


Ignore:
Timestamp:
Aug 13, 2013, 5:28:49 PM (11 years ago)
Author:
Pavel Demin
Message:

read time from ProMC file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/readers/DelphesProMC.cpp

    r1189 r1247  
    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.