Fork me on GitHub

Changes in / [accffb9:9330b7b] in git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • readers/DelphesROOT.cpp

    raccffb9 r9330b7b  
    8585  Candidate *candidate;
    8686  Int_t pdgCode;
    87   Int_t maxEvents;
    8887
    8988  const Double_t c_light = 2.99792458E8;
     
    126125    confReader = new ExRootConfReader;
    127126    confReader->ReadFile(argv[1]);
    128    
    129     maxEvents = confReader->GetInt("::MaxEvents", 0);
    130 
    131     if(maxEvents < 0)
    132     {
    133       throw runtime_error("MaxEvents must be zero or positive");
    134     }
    135127
    136128    modularDelphes = new Delphes("Delphes");
     
    178170      {
    179171   
    180         if(entry >= maxEvents) break;
    181172        treeReader->ReadEntry(entry);
    182173       
Note: See TracChangeset for help on using the changeset viewer.