Fork me on GitHub

Changeset 5fbcfe8 in git for display


Ignore:
Timestamp:
Oct 21, 2014, 1:36:59 AM (10 years ago)
Author:
Christophe Delaere <christophe.delaere@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
8b04b31
Parents:
4fd37d4
Message:

First introduction of the HTML summary tab

At this stage, I did the bare minimum required to add one tab after
copy/pasting the ROOT example. Right now, it just adds a white page.

Location:
display
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesEventDisplay.cc

    r4fd37d4 r5fbcfe8  
    145145   }
    146146
     147   // the GUI: control panel, summary tab
    147148   make_gui();
     149
     150   //ready...
    148151   load_event();
    149152   gEve->Redraw3D(kTRUE);   
     
    299302   browser->StopEmbedding();
    300303   browser->SetTabTitle("Event Control", 0);
    301 }
    302 
     304
     305   // the summary tab
     306   htmlSummary_ = new DelphesHtmlSummary("Delphes Event Display Summary Table");
     307   TEveWindowSlot* slot = TEveWindow::CreateWindowInTab(gEve->GetBrowser()->GetTabRight());
     308   gHtml_ = new TGHtml(0, 100, 100);
     309   TEveWindowFrame *wf = slot->MakeFrame(gHtml_);
     310   gHtml_->MapSubwindows();
     311   wf->SetElementName("Summary");
     312
     313}
     314
  • display/DelphesEventDisplay.h

    r4fd37d4 r5fbcfe8  
    2525#include "display/DelphesDisplay.h"
    2626#include "display/Delphes3DGeometry.h"
     27#include "display/DelphesHtmlSummary.h"
    2728#include "TChain.h"
    2829#include "TAxis.h"
     30#include "TGHtml.h"
    2931#include "TClonesArray.h"
    3032
     
    5658    std::vector<DelphesBranchBase*> elements_;
    5759    DelphesDisplay *delphesDisplay_;
     60    DelphesHtmlSummary *htmlSummary_;
     61    TGHtml *gHtml_;
    5862
    5963    // gui controls
  • display/DisplayLinkDef.h

    r4fd37d4 r5fbcfe8  
    3535#include "display/Delphes3DGeometry.h"
    3636#include "display/DelphesEventDisplay.h"
     37#include "display/DelphesHtmlSummary.h"
    3738
    3839#ifdef __CINT__
     
    4950#pragma link C++ class Delphes3DGeometry;
    5051#pragma link C++ class DelphesEventDisplay;
     52#pragma link C++ class DelphesHtmlObjTable;
     53#pragma link C++ class DelphesHtmlSummary;
    5154
    5255#endif
Note: See TracChangeset for help on using the changeset viewer.