Fork me on GitHub

source: git/examples/EventDisplay.C@ cf4a208

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

Minor fix to the EventDisplay script

  • Property mode set to 100644
File size: 954 bytes
Line 
1/* Example:
2 * root -l 'EventDisplay.C("delphes_card_CMS.tcl","../delphes_output.root")'
3 */
4
5void EventDisplay(const char* configfile = "delphes_card_CMS.tcl", const char* datafile = "delphes_output.root",
6 const char* ParticlePropagator="ParticlePropagator",
7 const char* TrackingEfficiency="ChargedHadronTrackingEfficiency",
8 const char* MuonEfficiency="MuonEfficiency",
9 const char* Calorimeters="Calorimeter")
10{
11 // load the libraries
12 gSystem->Load("libGeom");
13 gSystem->Load("libGuiHtml");
14 gSystem->Load("../libDelphesDisplay");
15
16 // create the detector representation
17 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
18 det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
19
20 // create the application
21 DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
22}
23
Note: See TracBrowser for help on using the repository browser.