Fork me on GitHub

Changeset 1166 in svn


Ignore:
Timestamp:
07/04/13 01:03:29 (7 years ago)
Author:
pavel
Message:

use better name for event counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/DelphesCMSFWLite.cpp

    r1157 r1166  
    136136  TObjArray *allParticleOutputArray = 0, *stableParticleOutputArray = 0, *partonOutputArray = 0;
    137137  Int_t i;
    138   Long64_t entry, allEntries;
     138  Long64_t eventCounter, numberOfEvents;
    139139
    140140  if(argc < 4)
     
    197197      fwlite::Event event(inputFile);
    198198
    199       allEntries = event.size();
    200 
    201       if(allEntries <= 0) continue;
    202 
    203       ExRootProgressBar progressBar(allEntries - 1);
     199      numberOfEvents = event.size();
     200
     201      if(numberOfEvents <= 0) continue;
     202
     203      ExRootProgressBar progressBar(numberOfEvents - 1);
    204204
    205205      // Loop over all objects
    206       entry = 0;
     206      eventCounter = 0;
    207207      modularDelphes->Clear();
    208208      treeWriter->Clear();
     
    217217        treeWriter->Clear();
    218218
    219         progressBar.Update(entry);
    220         ++entry;
     219        progressBar.Update(eventCounter);
     220        ++eventCounter;
    221221      }
    222222      progressBar.Finish();
Note: See TracChangeset for help on using the changeset viewer.