[cfc3160] | 1 |
|
---|
[400597a] | 2 | void 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")
|
---|
[cfc3160] | 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"));
|
---|
[400597a] | 14 | det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
|
---|
[cfc3160] | 15 |
|
---|
| 16 | // create the application items
|
---|
[400597a] | 17 | DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
|
---|
[cfc3160] | 18 |
|
---|
[fafc433] | 19 | /*
|
---|
[cfc3160] | 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 |
|
---|