Fork me on GitHub

source: git/examples/evdisplay.C@ 2ca23b5

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 2ca23b5 was 5fbcfe8, checked in by Christophe Delaere <christophe.delaere@…>, 10 years ago

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.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1
2void evdisplay(const char* configfile = "delphes_card_CMS.tcl", const char* datafile = "delphes_output.root",
3 const char* ParticlePropagator="ParticlePropagator",
4 const char* TrackingEfficiency="ChargedHadronTrackingEfficiency",
5 const char* MuonEfficiency="MuonEfficiency",
6 const char* Calorimeters="Calorimeter")
7{
8 // load the libraries
9 gSystem->Load("libGeom");
10 gSystem->Load("libGuiHtml");
11 gSystem->Load("../libDelphesDisplay");
12
13 // create the detector representation
14 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
15 det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
16
17 // create the application items
18 DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
19
20/*
21 // EClipType not exported to CINT (see TGLUtil.h):
22 // 0 - no clip, 1 - clip plane, 2 - clip box
23 TGLViewer *v = gEve->GetDefaultGLViewer();
24 //Double_t plane[4] = { 0., 1., 0., 0. };
25 //v->GetClipSet()->SetClipState(1,plane);
26 //v->GetClipSet()->SetClipType(1);
27 //v->ColorSet().Background().SetColor(kMagenta+4);
28 //v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0);
29 v->RefreshPadEditor(v);
30 v->CurrentCamera().RotateRad(-1.2, 0.5);
31 v->DoDraw();
32*/
33}
34
Note: See TracBrowser for help on using the repository browser.