Fork me on GitHub

source: git/examples/EventDisplay.C@ 6427420

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

Cleaning of the Event Display script

  • 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.