Fork me on GitHub

source: git/examples/evdisplay.C@ fafc433

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

Working basic GUI

The functionality of Fwd and Bck buttons has been restored.
This brings us back to a fully working prototype ready for new features.

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