Fork me on GitHub

Changeset 110821a in git


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.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • display/Delphes3DGeometry.cc

    rcf4a208 r110821a  
    4242using namespace std;
    4343
    44 Delphes3DGeometry::Delphes3DGeometry(TGeoManager *geom) {
     44Delphes3DGeometry::Delphes3DGeometry(TGeoManager *geom, bool transp) {
    4545
    4646   //--- the geometry manager
     
    5151   TGeoMaterial *matVacuum = new TGeoMaterial("Vacuum", 0,0,0);
    5252   TGeoMaterial *matAl = new TGeoMaterial("Al", 26.98,13,2.7); // placeholder
    53    matVacuum->SetTransparency(85);
    54    matAl->SetTransparency(85);
     53   if(transp) {
     54     matVacuum->SetTransparency(85);
     55     matAl->SetTransparency(85);
     56   }
    5557
    5658   //--- define some media
  • display/Delphes3DGeometry.h

    rcf4a208 r110821a  
    3535class Delphes3DGeometry {
    3636   public:
    37      Delphes3DGeometry(TGeoManager *geom = NULL);
     37     Delphes3DGeometry(TGeoManager *geom = NULL, bool transp = false);
    3838     ~Delphes3DGeometry() {}
    3939
  • display/DelphesEventDisplay.cc

    rcf4a208 r110821a  
    415415   browser->SetTabTitle("Event Control", 0);
    416416
     417   // Geometry tab
     418   // TODO add a tab with the full geometry
     419   
    417420   // the summary tab
    418421   htmlSummary_ = new DelphesHtmlSummary("Delphes Event Display Summary Table");
  • 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.