Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • display/DelphesDisplay.cc

    r341014c r1fa50c2  
    1717 */
    1818
    19 #include "TEveBrowser.h"
     19
    2020#include "TEveManager.h"
    21 #include "TEveProjectionAxes.h"
    22 #include "TEveProjectionManager.h"
    23 #include "TEveScene.h"
    2421#include "TEveViewer.h"
    25 #include "TEveWindow.h"
    2622#include "TGLViewer.h"
    2723#include "TGLWidget.h"
     24#include "TEveScene.h"
     25#include "TEveProjectionManager.h"
     26#include "TEveProjectionAxes.h"
     27#include "TEveBrowser.h"
     28#include "TEveWindow.h"
    2829#include "TGTab.h"
    2930
    3031#include "TEveCalo2DGL.h"
    31 #include "TEveCalo3DGL.h"
     32#include "TEveCalo3DGL.h" 
    3233#include "TEveCaloLegoGL.h"
    3334#include "TEveCaloLegoOverlay.h"
     
    4748  fRhoZMgr = new TEveProjectionManager(TEveProjection::kPT_RhoZ);
    4849
    49   fRPhiGeomScene = gEve->SpawnNewScene("RPhi Geometry");
    50   fRhoZGeomScene = gEve->SpawnNewScene("RhoZ Geometry");
     50        fRPhiGeomScene = gEve->SpawnNewScene("RPhi Geometry");
     51        fRhoZGeomScene = gEve->SpawnNewScene("RhoZ Geometry");
    5152
    52   fRPhiCaloScene = gEve->SpawnNewScene("RPhi Calorimeter");
    53   fRhoZCaloScene = gEve->SpawnNewScene("RhoZ Calorimeter");
    54   fLegoCaloScene = gEve->SpawnNewScene("Lego Calorimeter");
     53        fRPhiCaloScene = gEve->SpawnNewScene("RPhi Calorimeter");
     54        fRhoZCaloScene = gEve->SpawnNewScene("RhoZ Calorimeter");
     55        fLegoCaloScene = gEve->SpawnNewScene("Lego Calorimeter");
    5556
    56   fRPhiEventScene = gEve->SpawnNewScene("RPhi Event Data");
    57   fRhoZEventScene = gEve->SpawnNewScene("RhoZ Event Data");
    58 
     57        fRPhiEventScene = gEve->SpawnNewScene("RPhi Event Data");
     58        fRhoZEventScene = gEve->SpawnNewScene("RhoZ Event Data");
     59 
    5960  axes = new TEveProjectionAxes(fRPhiMgr);
    6061  fRPhiGeomScene->AddElement(axes);
     
    8485  f3DimView->AddScene(gEve->GetGlobalScene());
    8586  f3DimView->AddScene(gEve->GetEventScene());
    86 
     87 
    8788  pack1->NewSlot()->MakeCurrent();
    8889  fLegoView = gEve->SpawnNewViewer("Lego View", "");
    8990  fLegoView->GetGLViewer()->SetCurrentCamera(TGLViewer::kCameraOrthoXOY);
    9091  fLegoView->AddScene(fLegoCaloScene);
    91 
     92 
    9293  pack0->NewSlot()->MakeCurrent();
    9394  fRPhiView = gEve->SpawnNewViewer("RPhi View", "");
     
    9697  fRPhiView->AddScene(fRPhiCaloScene);
    9798  fRPhiView->AddScene(fRPhiEventScene);
    98 
     99       
    99100  pack0->NewSlot()->MakeCurrent();
    100101  fRhoZView = gEve->SpawnNewViewer("RhoZ View", "");
     
    113114//------------------------------------------------------------------------------
    114115
    115 void DelphesDisplay::ImportGeomRPhi(TEveElement *el)
    116 {
     116void DelphesDisplay::ImportGeomRPhi(TEveElement* el)
     117{ 
    117118  fRPhiMgr->ImportElements(el, fRPhiGeomScene);
    118119}
    119120
    120 void DelphesDisplay::ImportGeomRhoZ(TEveElement *el)
    121 {
     121void DelphesDisplay::ImportGeomRhoZ(TEveElement* el)
     122{ 
    122123  fRhoZMgr->ImportElements(el, fRhoZGeomScene);
    123124}
     
    136137{
    137138  TEveCaloLegoOverlay *overlay = new TEveCaloLegoOverlay();
    138 
     139 
    139140  overlay->SetCaloLego(calo);
    140141  fLegoView->GetGLViewer()->AddOverlayElement(overlay);
     
    143144}
    144145
    145 void DelphesDisplay::ImportEventRPhi(TEveElement *el)
    146 {
     146void DelphesDisplay::ImportEventRPhi(TEveElement* el)
     147{ 
    147148  fRPhiMgr->ImportElements(el, fRPhiEventScene);
    148149}
    149150
    150 void DelphesDisplay::ImportEventRhoZ(TEveElement *el)
    151 {
     151void DelphesDisplay::ImportEventRhoZ(TEveElement* el)
     152{ 
    152153  fRhoZMgr->ImportElements(el, fRhoZEventScene);
    153154}
     
    165166}
    166167//------------------------------------------------------------------------------
     168
Note: See TracChangeset for help on using the changeset viewer.