DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Calo3DProjection.cpp
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 //
12 //==========================================================================
13 
14 // Framework include files
15 #include <DDEve/Calo3DProjection.h>
16 #include <DDEve/Factories.h>
17 #include <DD4hep/InstanceCount.h>
18 
19 using namespace dd4hep;
20 
23 
24 Calo3DProjection::Calo3DProjection(Display* eve, const std::string& nam)
26 : View(eve, nam)
27 {
28  InstanceCount::increment(this);
29 }
30 
32 Calo3DProjection::~Calo3DProjection() {
34 }
35 
38  CreateScenes();
40  return Map(slot);
41 }
dd4hep::Calo3DProjection::Build
virtual View & Build(TEveWindow *slot) override
Build the projection view and map it to the given slot.
Definition: Calo3DProjection.cpp:37
dd4hep::Display
The main class of the DDEve display.
Definition: Display.h:56
DECLARE_VIEW_FACTORY
#define DECLARE_VIEW_FACTORY(x)
Definition: Factories.h:30
dd4hep::View::Map
virtual View & Map(TEveWindow *slot)
Map the view view to the slot.
Definition: View.cpp:334
Factories.h
ClassImp
ClassImp(Calo3DProjection) Calo3DProjection
Initializing constructor.
Definition: Calo3DProjection.cpp:21
dd4hep::View::name
const std::string & name() const
Access to the view name/title.
Definition: View.h:81
dd4hep::Calo3DProjection::Calo3DProjection
Calo3DProjection(Display *eve, const std::string &name)
Initializing constructor.
dd4hep::View::AddToGlobalItems
virtual TEveElementList * AddToGlobalItems(const std::string &nam)
Add the view to the global list of eve objects.
Definition: View.cpp:81
dd4hep::Calo3DProjection
3D projection for calorimeters
Definition: Calo3DProjection.h:35
slot
View TEveWindowSlot * slot
Definition: MultiView.cpp:28
dd4hep::InstanceCount::decrement
static void decrement(T *)
Decrement count according to type information.
Definition: InstanceCount.h:102
dd4hep::View::CreateScenes
virtual View & CreateScenes()
Create the geometry and the event scene.
Definition: View.cpp:306
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::View
class View View.h DDEve/View.h
Definition: View.h:45
Calo3DProjection.h
InstanceCount.h