Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • classes/DelphesLHEFReader.cc

    r1d9c62a r77e9ae1  
    1717 */
    1818
    19 
    2019/** \class DelphesLHEFReader
    2120 *
     
    2827#include "classes/DelphesLHEFReader.h"
    2928
    30 #include <stdexcept>
    3129#include <iostream>
    3230#include <sstream>
     31#include <stdexcept>
    3332
    3433#include <stdio.h>
    3534
     35#include "TDatabasePDG.h"
     36#include "TLorentzVector.h"
    3637#include "TObjArray.h"
     38#include "TParticlePDG.h"
    3739#include "TStopwatch.h"
    38 #include "TDatabasePDG.h"
    39 #include "TParticlePDG.h"
    40 #include "TLorentzVector.h"
    4140
    4241#include "classes/DelphesClasses.h"
     
    5453DelphesLHEFReader::DelphesLHEFReader() :
    5554  fInputFile(0), fBuffer(0), fPDG(0),
    56   fEventReady(kFALSE), fEventCounter(-1), fParticleCounter(-1),   fCrossSection(1)
     55  fEventReady(kFALSE), fEventCounter(-1), fParticleCounter(-1), fCrossSection(1)
    5756
    5857{
     
    124123    if(!rc)
    125124    {
    126       cerr << "** ERROR: " << "invalid event format" << endl;
     125      cerr << "** ERROR: "
     126           << "invalid event format" << endl;
    127127      return kFALSE;
    128128    }
     
    148148    if(!rc)
    149149    {
    150       cerr << "** ERROR: " << "invalid particle format" << endl;
     150      cerr << "** ERROR: "
     151           << "invalid particle format" << endl;
    151152      return kFALSE;
    152153    }
     
    162163    if(!pch)
    163164    {
    164       cerr << "** ERROR: " << "invalid weight format" << endl;
     165      cerr << "** ERROR: "
     166           << "invalid weight format" << endl;
    165167      return kFALSE;
    166168    }
     
    172174    if(!pch)
    173175    {
    174       cerr << "** ERROR: " << "invalid weight format" << endl;
     176      cerr << "** ERROR: "
     177           << "invalid weight format" << endl;
    175178      return kFALSE;
    176179    }
     
    181184    if(!rc)
    182185    {
    183       cerr << "** ERROR: " << "invalid weight format" << endl;
     186      cerr << "** ERROR: "
     187           << "invalid weight format" << endl;
    184188      return kFALSE;
    185189    }
     
    192196    if(!pch)
    193197    {
    194       cerr << "** ERROR: " << "invalid cross section format" << endl;
     198      cerr << "** ERROR: "
     199           << "invalid cross section format" << endl;
    195200      return kFALSE;
    196201    }
     
    199204    if(!pch)
    200205    {
    201       cerr << "** ERROR: " << "invalid cross section format" << endl;
     206      cerr << "** ERROR: "
     207           << "invalid cross section format" << endl;
    202208      return kFALSE;
    203209    }
     
    208214    if(!rc)
    209215    {
    210       cerr << "** ERROR: " << "invalid cross section format" << endl;
     216      cerr << "** ERROR: "
     217           << "invalid cross section format" << endl;
    211218      return kFALSE;
    212219    }
     
    249256{
    250257  LHEFWeight *element;
    251   vector< pair< int, double > >::const_iterator itWeightList;
     258  vector<pair<int, double> >::const_iterator itWeightList;
    252259
    253260  for(itWeightList = fWeightList.begin(); itWeightList != fWeightList.end(); ++itWeightList)
     
    279286
    280287  pdgParticle = fPDG->GetParticle(fPID);
    281   candidate->Charge = pdgParticle ? int(pdgParticle->Charge()/3.0) : -999;
     288  candidate->Charge = pdgParticle ? int(pdgParticle->Charge() / 3.0) : -999;
    282289  candidate->Mass = fMass;
    283290
Note: See TracChangeset for help on using the changeset viewer.