DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
CaloLego.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 // Original Author: Matevz Tadel 2009 (MultiView.C)
12 //
13 //====================================================================
14 #ifndef DDEVE_CALOLEGO_H
15 #define DDEVE_CALOLEGO_H
16 
17 // Framework include files
18 #include "DDEve/View.h"
19 #include "DDEve/Display.h"
20 
21 // Forward declarations
22 class TH2F;
23 class TEveCalo3D;
24 class TEveCaloDataHist;
25 
27 namespace dd4hep {
28 
30  /*
31  * \author M.Frank
32  * \version 1.0
33  * \ingroup DD4HEP_EVE
34  */
35  class CaloLego : public View {
37  public:
39  CaloLego(Display* eve, const std::string& name);
41  virtual ~CaloLego();
43  virtual View& Build(TEveWindow* slot) override;
45  virtual void ConfigureGeometry(const DisplayConfiguration::ViewConfig& config) override;
47  virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig& config) override;
49  void ImportGeoTopics(const std::string& title) override;
50 
53  };
54 } /* End namespace dd4hep */
55 #endif // DDEVE_CALOLEGO_H
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
dd4hep::CaloLego::ConfigureGeometry
virtual void ConfigureGeometry(const DisplayConfiguration::ViewConfig &config) override
Configure a single geometry view.
Definition: CaloLego.cpp:59
dd4hep::CaloLego::ConfigureEvent
virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig &config) override
Configure a single event scene view.
Definition: CaloLego.cpp:108
dd4hep::CaloLego
Lego plot for calorimeter energy deposits.
Definition: CaloLego.h:35
dd4hep::CaloLego::ImportGeoTopics
void ImportGeoTopics(const std::string &title) override
Call to import geometry topics.
Definition: CaloLego.cpp:127
dd4hep::CaloLego::m_data
Display::CalodataContext m_data
Definition: CaloLego.h:36
dd4hep::View::name
const std::string & name() const
Access to the view name/title.
Definition: View.h:81
slot
View TEveWindowSlot * slot
Definition: MultiView.cpp:28
Display.h
dd4hep::CaloLego::~CaloLego
virtual ~CaloLego()
Default destructor.
Definition: CaloLego.cpp:46
dd4hep::DisplayConfiguration::ViewConfig
View configuration.
Definition: DisplayConfiguration.h:119
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::CaloLego::ClassDefOverride
ClassDefOverride(CaloLego, 0)
Root implementation macro.
dd4hep::View
class View View.h DDEve/View.h
Definition: View.h:45
dd4hep::Display::CalodataContext
Calorimeter data context for the DDEve event display.
Definition: Display.h:68
dd4hep::CaloLego::Build
virtual View & Build(TEveWindow *slot) override
Build the projection view and map it to the given slot.
Definition: CaloLego.cpp:52
View.h
dd4hep::CaloLego::CaloLego
CaloLego(Display *eve, const std::string &name)
Initializing constructor.