Changeset 110821a in git
- Timestamp:
- Nov 21, 2014, 10:39:38 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- f185c24
- Parents:
- cf4a208
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
display/Delphes3DGeometry.cc
rcf4a208 r110821a 42 42 using namespace std; 43 43 44 Delphes3DGeometry::Delphes3DGeometry(TGeoManager *geom ) {44 Delphes3DGeometry::Delphes3DGeometry(TGeoManager *geom, bool transp) { 45 45 46 46 //--- the geometry manager … … 51 51 TGeoMaterial *matVacuum = new TGeoMaterial("Vacuum", 0,0,0); 52 52 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 } 55 57 56 58 //--- define some media -
display/Delphes3DGeometry.h
rcf4a208 r110821a 35 35 class Delphes3DGeometry { 36 36 public: 37 Delphes3DGeometry(TGeoManager *geom = NULL );37 Delphes3DGeometry(TGeoManager *geom = NULL, bool transp = false); 38 38 ~Delphes3DGeometry() {} 39 39 -
display/DelphesEventDisplay.cc
rcf4a208 r110821a 415 415 browser->SetTabTitle("Event Control", 0); 416 416 417 // Geometry tab 418 // TODO add a tab with the full geometry 419 417 420 // the summary tab 418 421 htmlSummary_ = new DelphesHtmlSummary("Delphes Event Display Summary Table"); -
examples/EventDisplay.C
rcf4a208 r110821a 15 15 16 16 // create the detector representation 17 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry") );17 Delphes3DGeometry det3D(new TGeoManager("delphes", "Delphes geometry"), true); 18 18 det3D.readFile(configfile, ParticlePropagator, TrackingEfficiency, MuonEfficiency, Calorimeters); 19 19 20 20 // create the application 21 21 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(); 22 28 } 23 29
Note:
See TracChangeset
for help on using the changeset viewer.