Fork me on GitHub

source: git/examples/evdisplay.C@ 4fd37d4

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

Pass the file names through the command line

  • 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("../libDelphesDisplay");
11
12 // create the detector representation
13 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
14 det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
15
16 // create the application items
17 DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, 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.