1 |
|
---|
2 | void 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("../libDelphes");
|
---|
11 | gSystem->Load("../libDelphesDisplay");
|
---|
12 |
|
---|
13 | // create the detector representation
|
---|
14 | Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
|
---|
15 | det3D.readFile(filename, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
|
---|
16 |
|
---|
17 | // create the application items
|
---|
18 | DelphesEventDisplay display("delphes_card_CMS.tcl", "../delphes_output.root", det3D); //TODO root file as input cfg
|
---|
19 | /*
|
---|
20 | make_gui();
|
---|
21 | load_event();
|
---|
22 | gEve->Redraw3D(kTRUE); // Reset camera after the first event has been shown.
|
---|
23 |
|
---|
24 | // EClipType not exported to CINT (see TGLUtil.h):
|
---|
25 | // 0 - no clip, 1 - clip plane, 2 - clip box
|
---|
26 | TGLViewer *v = gEve->GetDefaultGLViewer();
|
---|
27 | //Double_t plane[4] = { 0., 1., 0., 0. };
|
---|
28 | //v->GetClipSet()->SetClipState(1,plane);
|
---|
29 | //v->GetClipSet()->SetClipType(1);
|
---|
30 | //v->ColorSet().Background().SetColor(kMagenta+4);
|
---|
31 | //v->SetGuideState(TGLUtil::kAxesEdge, kTRUE, kFALSE, 0);
|
---|
32 | v->RefreshPadEditor(v);
|
---|
33 | v->CurrentCamera().RotateRad(-1.2, 0.5);
|
---|
34 | v->DoDraw();
|
---|
35 | */
|
---|
36 | }
|
---|
37 |
|
---|