Fork me on GitHub

Changeset 53b78e8 in git for display/DelphesPlotSummary.cc


Ignore:
Timestamp:
Nov 6, 2014, 2:00:06 PM (10 years ago)
Author:
Christophe Delaere <christophe.delaere@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
5565691
Parents:
0a67548
Message:

New signal to show the progress of plot processing

Progress is now shown in the status bar when generating std plots.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesPlotSummary.cc

    r0a67548 r53b78e8  
    88
    99DelphesPlotSummary::~DelphesPlotSummary() {}
     10
     11void DelphesPlotSummary::Progress(Int_t p)
     12{
     13  Emit("Progress(Int_t)",p);
     14}
    1015
    1116void DelphesPlotSummary::Init(std::vector<DelphesBranchBase*>& elements) {
     
    4853
    4954void DelphesPlotSummary::FillSample(ExRootTreeReader* treeReader, Int_t event_id) {
    50   for(Int_t i=0;i<treeReader->GetEntries();++i) {
     55  Int_t entries = treeReader->GetEntries();
     56  for(Int_t i=0;i<entries;++i) {
    5157    treeReader->ReadEntry(i);
    5258    for(std::vector<DelphesBranchBase*>::iterator element = elements_->begin();element<elements_->end();++element) {
     
    7076      }
    7177    }
     78    Progress(int(100*i/entries));
    7279  }
    7380  treeReader->ReadEntry(event_id);
     81  Progress(100);
    7482}
    7583
Note: See TracChangeset for help on using the changeset viewer.