Fork me on GitHub

Changeset 110821a in git for examples


Ignore:
Timestamp:
Nov 21, 2014, 10:39:38 PM (10 years ago)
Author:
Christophe Delaere <christophe.delaere@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
f185c24
Parents:
cf4a208
Message:

Display the full geometry next to the eventdisplay

Next step would be to display it directly in the eve window.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • examples/EventDisplay.C

    rcf4a208 r110821a  
    1515
    1616   // create the detector representation
    17    Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"));
     17   Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"), true);
    1818   det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
    1919
    2020   // create the application
    2121   DelphesEventDisplay* display = new DelphesEventDisplay(configfile, datafile, det3D);
     22
     23   // another view of the geometry, in another window and without transparency
     24   Delphes3DGeometry det3D_geom(new TGeoManager("delphes", "Delphes geometry"), false);
     25   det3D_geom.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters);
     26   new TCanvas;
     27   det3D_geom.getDetector()->Draw();
    2228}
    2329
Note: See TracChangeset for help on using the changeset viewer.