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
RevLine 
[5e6db08]1/* Example:
[cf4a208]2 * root -l 'EventDisplay.C("delphes_card_CMS.tcl","../delphes_output.root")'
[5e6db08]3 */
[d7d2da3]4
[cf4a208]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")
[d7d2da3]10{
[5565691]11 // load the libraries
12 gSystem->Load("libGeom");
13 gSystem->Load("libGuiHtml");
14 gSystem->Load("../libDelphesDisplay");
[d7d2da3]15
[5565691]16 // create the detector representation
17 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
18 det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
[d7d2da3]19
[5e6db08]20 // create the application
[5565691]21 DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
[d7d2da3]22}
23
Note: See TracBrowser for help on using the repository browser.