1 | /* Example:
|
---|
2 | * root -l 'EventDisplay.C("delphes_card_CMS.tcl","../delphes_output.root")'
|
---|
3 | * root -l 'EventDisplay.C("delphes_card_FCC_basic.tcl","../delphes_output.root","ParticlePropagator","ChargedHadronTrackingEfficiency","MuonTrackingEfficiency","Ecal,Hcal")'
|
---|
4 | */
|
---|
5 |
|
---|
6 | void EventDisplay(const char* configfile = "delphes_card_CMS.tcl", const char* datafile = "delphes_output.root",
|
---|
7 | const char* ParticlePropagator="ParticlePropagator",
|
---|
8 | const char* TrackingEfficiency="ChargedHadronTrackingEfficiency",
|
---|
9 | const char* MuonEfficiency="MuonEfficiency",
|
---|
10 | const char* Calorimeters="Calorimeter")
|
---|
11 | {
|
---|
12 | // load the libraries
|
---|
13 | gSystem->Load("libGeom");
|
---|
14 | gSystem->Load("libGuiHtml");
|
---|
15 | gSystem->Load("../libDelphesDisplay");
|
---|
16 |
|
---|
17 | // create the detector representation
|
---|
18 | Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"), true);
|
---|
19 | det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
|
---|
20 |
|
---|
21 | // create the application
|
---|
22 | DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
|
---|
23 |
|
---|
24 | // another view of the geometry, in another window and without transparency
|
---|
25 | Delphes3DGeometry det3D_geom(new TGeoManager("delphes", "Delphes geometry"), false);
|
---|
26 | det3D_geom.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
|
---|
27 | new TCanvas;
|
---|
28 | det3D_geom.getDetector()->Draw();
|
---|
29 | }
|
---|
30 |
|
---|