Fork me on GitHub

source: git/examples/EventDisplay.C@ acf622f

ImprovedOutputFile Timing dual_readout llp
Last change on this file since acf622f 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
RevLine 
[5e6db08]1/* Example:
[cf4a208]2 * root -l 'EventDisplay.C("delphes_card_CMS.tcl","../delphes_output.root")'
[f185c24]3 * root -l 'EventDisplay.C("delphes_card_FCC_basic.tcl","../delphes_output.root","ParticlePropagator","ChargedHadronTrackingEfficiency","MuonTrackingEfficiency","Ecal,Hcal")'
[5e6db08]4 */
[d7d2da3]5
[cf4a208]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",
[c3c9ac5]10 const char* Calorimeters="Calorimeter",
11 bool displayGeometryOnly = false)
[d7d2da3]12{
[5565691]13 // load the libraries
14 gSystem->Load("libGeom");
15 gSystem->Load("libGuiHtml");
16 gSystem->Load("../libDelphesDisplay");
[d7d2da3]17
[c3c9ac5]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);
[d7d2da3]22
[c3c9ac5]23 // display
24 det3D_geom.getDetector()->Draw("ogl");
[110821a]25
[c3c9ac5]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 }
[d7d2da3]36}
37
Note: See TracBrowser for help on using the repository browser.