DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CaloLego.h
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 // Original Author: Matevz Tadel 2009 (MultiView.C)
13 //
14 //====================================================================
15 #ifndef DD4HEP_DDEVE_CALOLEGO_H
16 #define DD4HEP_DDEVE_CALOLEGO_H
17 
18 // Framework include files
19 #include "DDEve/View.h"
20 #include "DDEve/Display.h"
21 
22 // Forward declarations
23 class TH2F;
24 class TEveCalo3D;
25 class TEveCaloDataHist;
26 
28 namespace DD4hep {
29 
31  /*
32  * \author M.Frank
33  * \version 1.0
34  * \ingroup DD4HEP_EVE
35  */
36  class CaloLego : public View {
38  public:
40  CaloLego(Display* eve, const std::string& name);
42  virtual ~CaloLego();
44  virtual View& Build(TEveWindow* slot);
46  virtual void ConfigureGeometry(const DisplayConfiguration::ViewConfig& config);
48  virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig& config);
50  void ImportGeoTopics(const std::string& title);
51 
53  ClassDef(CaloLego,0);
54  };
55 
56 } /* End namespace DD4hep */
57 
58 #endif /* DD4HEP_DDEVE_CALOLEGO_H */
CaloLego(Display *eve, const std::string &name)
Initializing constructor.
virtual ~CaloLego()
Default destructor.
Definition: CaloLego.cpp:46
Display::CalodataContext m_data
Definition: CaloLego.h:37
Lego plot for calorimeter energy deposits.
Definition: CaloLego.h:36
virtual void ConfigureGeometry(const DisplayConfiguration::ViewConfig &config)
Configure a single geometry view.
Definition: CaloLego.cpp:59
View TEveWindowSlot * slot
Definition: MultiView.cpp:30
void ImportGeoTopics(const std::string &title)
Call to import geometry topics.
Definition: CaloLego.cpp:127
class View View.h DDEve/View.h
Definition: View.h:46
ClassDef(CaloLego, 0)
Root implementation macro.
virtual View & Build(TEveWindow *slot)
Build the projection view and map it to the given slot.
Definition: CaloLego.cpp:52
virtual void ConfigureEvent(const DisplayConfiguration::ViewConfig &config)
Configure a single event scene view.
Definition: CaloLego.cpp:108
The main class of the DDEve display.
Definition: Display.h:57
const std::string & name() const
Access to the view name/title.
Definition: View.h:85