Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesDisplay.cc

    r1fa50c2 r341014c  
    1717 */
    1818
    19 
     19#include "TEveBrowser.h"
    2020#include "TEveManager.h"
     21#include "TEveProjectionAxes.h"
     22#include "TEveProjectionManager.h"
     23#include "TEveScene.h"
    2124#include "TEveViewer.h"
     25#include "TEveWindow.h"
    2226#include "TGLViewer.h"
    2327#include "TGLWidget.h"
    24 #include "TEveScene.h"
    25 #include "TEveProjectionManager.h"
    26 #include "TEveProjectionAxes.h"
    27 #include "TEveBrowser.h"
    28 #include "TEveWindow.h"
    2928#include "TGTab.h"
    3029
    3130#include "TEveCalo2DGL.h"
    32 #include "TEveCalo3DGL.h" 
     31#include "TEveCalo3DGL.h"
    3332#include "TEveCaloLegoGL.h"
    3433#include "TEveCaloLegoOverlay.h"
     
    4847  fRhoZMgr = new TEveProjectionManager(TEveProjection::kPT_RhoZ);
    4948
    50         fRPhiGeomScene = gEve->SpawnNewScene("RPhi Geometry");
    51         fRhoZGeomScene = gEve->SpawnNewScene("RhoZ Geometry");
     49  fRPhiGeomScene = gEve->SpawnNewScene("RPhi Geometry");
     50  fRhoZGeomScene = gEve->SpawnNewScene("RhoZ Geometry");
    5251
    53         fRPhiCaloScene = gEve->SpawnNewScene("RPhi Calorimeter");
    54         fRhoZCaloScene = gEve->SpawnNewScene("RhoZ Calorimeter");
    55         fLegoCaloScene = gEve->SpawnNewScene("Lego Calorimeter");
     52  fRPhiCaloScene = gEve->SpawnNewScene("RPhi Calorimeter");
     53  fRhoZCaloScene = gEve->SpawnNewScene("RhoZ Calorimeter");
     54  fLegoCaloScene = gEve->SpawnNewScene("Lego Calorimeter");
    5655
    57         fRPhiEventScene = gEve->SpawnNewScene("RPhi Event Data");
    58         fRhoZEventScene = gEve->SpawnNewScene("RhoZ Event Data");
    59  
     56  fRPhiEventScene = gEve->SpawnNewScene("RPhi Event Data");
     57  fRhoZEventScene = gEve->SpawnNewScene("RhoZ Event Data");
     58
    6059  axes = new TEveProjectionAxes(fRPhiMgr);
    6160  fRPhiGeomScene->AddElement(axes);
     
    8584  f3DimView->AddScene(gEve->GetGlobalScene());
    8685  f3DimView->AddScene(gEve->GetEventScene());
    87  
     86
    8887  pack1->NewSlot()->MakeCurrent();
    8988  fLegoView = gEve->SpawnNewViewer("Lego View", "");
    9089  fLegoView->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
    9190  fLegoView->AddScene(fLegoCaloScene);
    92  
     91
    9392  pack0->NewSlot()->MakeCurrent();
    9493  fRPhiView = gEve->SpawnNewViewer("RPhi View", "");
     
    9796  fRPhiView->AddScene(fRPhiCaloScene);
    9897  fRPhiView->AddScene(fRPhiEventScene);
    99        
     98
    10099  pack0->NewSlot()->MakeCurrent();
    101100  fRhoZView = gEve->SpawnNewViewer("RhoZ View", "");
     
    114113//------------------------------------------------------------------------------
    115114
    116 void DelphesDisplay::ImportGeomRPhi(TEveElement* el)
    117 { 
     115void DelphesDisplay::ImportGeomRPhi(TEveElement *el)
     116{
    118117  fRPhiMgr->ImportElements(el, fRPhiGeomScene);
    119118}
    120119
    121 void DelphesDisplay::ImportGeomRhoZ(TEveElement* el)
    122 { 
     120void DelphesDisplay::ImportGeomRhoZ(TEveElement *el)
     121{
    123122  fRhoZMgr->ImportElements(el, fRhoZGeomScene);
    124123}
     
    137136{
    138137  TEveCaloLegoOverlay *overlay = new TEveCaloLegoOverlay();
    139  
     138
    140139  overlay->SetCaloLego(calo);
    141140  fLegoView->GetGLViewer()->AddOverlayElement(overlay);
     
    144143}
    145144
    146 void DelphesDisplay::ImportEventRPhi(TEveElement* el)
    147 { 
     145void DelphesDisplay::ImportEventRPhi(TEveElement *el)
     146{
    148147  fRPhiMgr->ImportElements(el, fRPhiEventScene);
    149148}
    150149
    151 void DelphesDisplay::ImportEventRhoZ(TEveElement* el)
    152 { 
     150void DelphesDisplay::ImportEventRhoZ(TEveElement *el)
     151{
    153152  fRhoZMgr->ImportElements(el, fRhoZEventScene);
    154153}
     
    166165}
    167166//------------------------------------------------------------------------------
    168 
Note: See TracChangeset for help on using the changeset viewer.