Fork me on GitHub

source: git/examples/EventDisplay.C@ 856efb6

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

Small adjustments and optimizations

  • Property mode set to 100644
File size: 1.5 KB
Line 
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
6void 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 bool displayGeometryOnly = false)
12{
13 // load the libraries
14 gSystem->Load("libGeom");
15 gSystem->Load("libGuiHtml");
16 gSystem->Load("../libDelphesDisplay");
17
18 if(displayGeometryOnly) {
19 // create the detector representation without transparency
20 Delphes3DGeometry det3D_geom(new TGeoManager("delphes", "Delphes geometry"), false);
21 det3D_geom.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
22
23 // display
24 det3D_geom.getDetector()->Draw("ogl");
25
26 } else {
27
28 // create the detector representation
29 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"), true);
30 det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
31
32 // create the application
33 DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
34
35 }
36}
37
Note: See TracBrowser for help on using the repository browser.