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