Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesPythia8.cpp

    r01f457a r3e276d4  
    22 *  Delphes: a framework for fast simulation of a generic collider experiment
    33 *  Copyright (C) 2012-2014  Universite catholique de Louvain (UCL), Belgium
    4  * 
     4 *
    55 *  This program is free software: you can redistribute it and/or modify
    66 *  it under the terms of the GNU General Public License as published by
    77 *  the Free Software Foundation, either version 3 of the License, or
    88 *  (at your option) any later version.
    9  * 
     9 *
    1010 *  This program is distributed in the hope that it will be useful,
    1111 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    1212 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1313 *  GNU General Public License for more details.
    14  * 
     14 *
    1515 *  You should have received a copy of the GNU General Public License
    1616 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
     
    2323#include <signal.h>
    2424
    25 #include "Pythia8/Pythia.h"
     25#include "Pythia.h"
    2626
    2727#include "TROOT.h"
     
    8989  pdg = TDatabasePDG::Instance();
    9090
    91   for(i = 0; i < pythia->event.size(); ++i)
     91  for(i = 1; i < pythia->event.size(); ++i)
    9292  {
    9393    Pythia8::Particle &particle = pythia->event[i];
    9494
    9595    pid = particle.id();
    96     status = pythia->event.statusHepMC(i);
     96    status = particle.statusHepMC();
    9797    px = particle.px(); py = particle.py(); pz = particle.pz(); e = particle.e(); mass = particle.m();
    9898    x = particle.xProd(); y = particle.yProd(); z = particle.zProd(); t = particle.tProd();
     
    270270    progressBar.Finish();
    271271
    272     pythia->statistics();
     272    pythia->stat();
    273273
    274274    modularDelphes->FinishTask();
Note: See TracChangeset for help on using the changeset viewer.