Changeset 341014c in git for display/DelphesDisplay.cc
- Timestamp:
- Feb 12, 2019, 9:29:17 PM (6 years ago)
- Branches:
- ImprovedOutputFile, Timing, llp, master
- Children:
- 6455202
- Parents:
- 45e58be
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
display/DelphesDisplay.cc
r45e58be r341014c 17 17 */ 18 18 19 19 #include "TEveBrowser.h" 20 20 #include "TEveManager.h" 21 #include "TEveProjectionAxes.h" 22 #include "TEveProjectionManager.h" 23 #include "TEveScene.h" 21 24 #include "TEveViewer.h" 25 #include "TEveWindow.h" 22 26 #include "TGLViewer.h" 23 27 #include "TGLWidget.h" 24 #include "TEveScene.h"25 #include "TEveProjectionManager.h"26 #include "TEveProjectionAxes.h"27 #include "TEveBrowser.h"28 #include "TEveWindow.h"29 28 #include "TGTab.h" 30 29 31 30 #include "TEveCalo2DGL.h" 32 #include "TEveCalo3DGL.h" 31 #include "TEveCalo3DGL.h" 33 32 #include "TEveCaloLegoGL.h" 34 33 #include "TEveCaloLegoOverlay.h" … … 48 47 fRhoZMgr = new TEveProjectionManager(TEveProjection::kPT_RhoZ); 49 48 50 51 49 fRPhiGeomScene = gEve->SpawnNewScene("RPhi Geometry"); 50 fRhoZGeomScene = gEve->SpawnNewScene("RhoZ Geometry"); 52 51 53 54 55 52 fRPhiCaloScene = gEve->SpawnNewScene("RPhi Calorimeter"); 53 fRhoZCaloScene = gEve->SpawnNewScene("RhoZ Calorimeter"); 54 fLegoCaloScene = gEve->SpawnNewScene("Lego Calorimeter"); 56 55 57 58 59 56 fRPhiEventScene = gEve->SpawnNewScene("RPhi Event Data"); 57 fRhoZEventScene = gEve->SpawnNewScene("RhoZ Event Data"); 58 60 59 axes = new TEveProjectionAxes(fRPhiMgr); 61 60 fRPhiGeomScene->AddElement(axes); … … 85 84 f3DimView->AddScene(gEve->GetGlobalScene()); 86 85 f3DimView->AddScene(gEve->GetEventScene()); 87 86 88 87 pack1->NewSlot()->MakeCurrent(); 89 88 fLegoView = gEve->SpawnNewViewer("Lego View", ""); 90 89 fLegoView->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY); 91 90 fLegoView->AddScene(fLegoCaloScene); 92 91 93 92 pack0->NewSlot()->MakeCurrent(); 94 93 fRPhiView = gEve->SpawnNewViewer("RPhi View", ""); … … 97 96 fRPhiView->AddScene(fRPhiCaloScene); 98 97 fRPhiView->AddScene(fRPhiEventScene); 99 98 100 99 pack0->NewSlot()->MakeCurrent(); 101 100 fRhoZView = gEve->SpawnNewViewer("RhoZ View", ""); … … 114 113 //------------------------------------------------------------------------------ 115 114 116 void DelphesDisplay::ImportGeomRPhi(TEveElement *el)117 { 115 void DelphesDisplay::ImportGeomRPhi(TEveElement *el) 116 { 118 117 fRPhiMgr->ImportElements(el, fRPhiGeomScene); 119 118 } 120 119 121 void DelphesDisplay::ImportGeomRhoZ(TEveElement *el)122 { 120 void DelphesDisplay::ImportGeomRhoZ(TEveElement *el) 121 { 123 122 fRhoZMgr->ImportElements(el, fRhoZGeomScene); 124 123 } … … 137 136 { 138 137 TEveCaloLegoOverlay *overlay = new TEveCaloLegoOverlay(); 139 138 140 139 overlay->SetCaloLego(calo); 141 140 fLegoView->GetGLViewer()->AddOverlayElement(overlay); … … 144 143 } 145 144 146 void DelphesDisplay::ImportEventRPhi(TEveElement *el)147 { 145 void DelphesDisplay::ImportEventRPhi(TEveElement *el) 146 { 148 147 fRPhiMgr->ImportElements(el, fRPhiEventScene); 149 148 } 150 149 151 void DelphesDisplay::ImportEventRhoZ(TEveElement *el)152 { 150 void DelphesDisplay::ImportEventRhoZ(TEveElement *el) 151 { 153 152 fRhoZMgr->ImportElements(el, fRhoZEventScene); 154 153 } … … 166 165 } 167 166 //------------------------------------------------------------------------------ 168
Note:
See TracChangeset
for help on using the changeset viewer.