Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesLHEFReader.cc

    r77e9ae1 r1d9c62a  
    1717 */
    1818
     19
    1920/** \class DelphesLHEFReader
    2021 *
     
    2728#include "classes/DelphesLHEFReader.h"
    2829
     30#include <stdexcept>
    2931#include <iostream>
    3032#include <sstream>
    31 #include <stdexcept>
    3233
    3334#include <stdio.h>
    3435
     36#include "TObjArray.h"
     37#include "TStopwatch.h"
    3538#include "TDatabasePDG.h"
     39#include "TParticlePDG.h"
    3640#include "TLorentzVector.h"
    37 #include "TObjArray.h"
    38 #include "TParticlePDG.h"
    39 #include "TStopwatch.h"
    4041
    4142#include "classes/DelphesClasses.h"
     
    5354DelphesLHEFReader::DelphesLHEFReader() :
    5455  fInputFile(0), fBuffer(0), fPDG(0),
    55   fEventReady(kFALSE), fEventCounter(-1), fParticleCounter(-1), fCrossSection(1)
     56  fEventReady(kFALSE), fEventCounter(-1), fParticleCounter(-1),   fCrossSection(1)
    5657
    5758{
     
    123124    if(!rc)
    124125    {
    125       cerr << "** ERROR: "
    126            << "invalid event format" << endl;
     126      cerr << "** ERROR: " << "invalid event format" << endl;
    127127      return kFALSE;
    128128    }
     
    148148    if(!rc)
    149149    {
    150       cerr << "** ERROR: "
    151            << "invalid particle format" << endl;
     150      cerr << "** ERROR: " << "invalid particle format" << endl;
    152151      return kFALSE;
    153152    }
     
    163162    if(!pch)
    164163    {
    165       cerr << "** ERROR: "
    166            << "invalid weight format" << endl;
     164      cerr << "** ERROR: " << "invalid weight format" << endl;
    167165      return kFALSE;
    168166    }
     
    174172    if(!pch)
    175173    {
    176       cerr << "** ERROR: "
    177            << "invalid weight format" << endl;
     174      cerr << "** ERROR: " << "invalid weight format" << endl;
    178175      return kFALSE;
    179176    }
     
    184181    if(!rc)
    185182    {
    186       cerr << "** ERROR: "
    187            << "invalid weight format" << endl;
     183      cerr << "** ERROR: " << "invalid weight format" << endl;
    188184      return kFALSE;
    189185    }
     
    196192    if(!pch)
    197193    {
    198       cerr << "** ERROR: "
    199            << "invalid cross section format" << endl;
     194      cerr << "** ERROR: " << "invalid cross section format" << endl;
    200195      return kFALSE;
    201196    }
     
    204199    if(!pch)
    205200    {
    206       cerr << "** ERROR: "
    207            << "invalid cross section format" << endl;
     201      cerr << "** ERROR: " << "invalid cross section format" << endl;
    208202      return kFALSE;
    209203    }
     
    214208    if(!rc)
    215209    {
    216       cerr << "** ERROR: "
    217            << "invalid cross section format" << endl;
     210      cerr << "** ERROR: " << "invalid cross section format" << endl;
    218211      return kFALSE;
    219212    }
     
    256249{
    257250  LHEFWeight *element;
    258   vector<pair<int, double> >::const_iterator itWeightList;
     251  vector< pair< int, double > >::const_iterator itWeightList;
    259252
    260253  for(itWeightList = fWeightList.begin(); itWeightList != fWeightList.end(); ++itWeightList)
     
    286279
    287280  pdgParticle = fPDG->GetParticle(fPID);
    288   candidate->Charge = pdgParticle ? int(pdgParticle->Charge() / 3.0) : -999;
     281  candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
    289282  candidate->Mass = fMass;
    290283
Note: See TracChangeset for help on using the changeset viewer.