Fork me on GitHub

Changeset 53b78e8 in git for display/DelphesEventDisplay.h


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/DelphesEventDisplay.h

    r0a67548 r53b78e8  
    2727#include "display/DelphesHtmlSummary.h"
    2828#include "display/DelphesPlotSummary.h"
     29#include "TSystem.h"
    2930#include "TChain.h"
    3031#include "TAxis.h"
     
    105106
    106107    void InitSummaryPlots() {
    107       plotSummary_->FillSample(treeReader_, event_id_); // TODO we could add a signal to give the progress
     108      plotSummary_->FillSample(treeReader_, event_id_);
    108109      plotSummary_->FillEvent();
    109110      plotSummary_->Draw();
     111    }
     112
     113    void DisplayProgress(Int_t p) { //TODO replace by a progress bar
     114         fStatusBar_->SetText(Form("Processing... %d %%",p), 1);
     115         gSystem->ProcessEvents();
    110116    }
    111117};
Note: See TracChangeset for help on using the changeset viewer.