Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
Fireworks
Core
src
FW3DView.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: cmsShow36
4
// Class : FW3DView
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author:
10
// Created: Wed Apr 7 14:40:47 CEST 2010
11
// $Id: FW3DView.cc,v 1.54 2011/01/17 14:11:43 amraktad Exp $
12
//
13
14
// system include files
15
#include <boost/bind.hpp>
16
17
// user include files
18
#include "TGLViewer.h"
19
#include "TGLScenePad.h"
20
#include "TEveCalo.h"
21
#include "TEveScene.h"
22
23
#include "
Fireworks/Core/interface/FW3DView.h
"
24
#include "
Fireworks/Core/interface/Context.h
"
25
#include "
Fireworks/Core/interface/FWViewContext.h
"
26
#include "
Fireworks/Core/interface/CmsShowViewPopup.h
"
27
#include "
Fireworks/Core/interface/FWViewEnergyScale.h
"
28
29
//
30
// constants, enums and typedefs
31
//
32
33
//
34
// static data member definitions
35
//
36
37
//
38
// constructors and destructor
39
//
40
FW3DView::FW3DView
(TEveWindowSlot* slot,
FWViewType::EType
typeId):
41
FW3DViewBase
(slot, typeId),
42
m_calo(0)
43
{
44
viewerGL
()->CurrentCamera().SetFixDefCenter(kTRUE);
45
}
46
47
FW3DView::~FW3DView
()
48
{
49
m_calo
->Destroy();
50
}
51
52
53
TEveCaloViz*
54
FW3DView::getEveCalo
()
const
55
{
56
return
static_cast<
TEveCaloViz*
>
(
m_calo
);
57
}
58
59
void
FW3DView::setContext
(
const
fireworks::Context
& ctx)
60
{
61
FW3DViewBase::setContext
(ctx);
62
63
TEveCaloData*
data
=
context
().
getCaloData
();
64
m_calo
=
new
TEveCalo3D(data);
65
m_calo
->SetElementName(
"calo barrel"
);
66
67
m_calo
->SetBarrelRadius(
context
().
caloR1
(
false
));
68
m_calo
->SetEndCapPos(
context
().
caloZ1
(
false
));
69
m_calo
->SetFrameTransparency(80);
70
m_calo
->SetAutoRange(
false
);
71
m_calo
->SetScaleAbs(
true
);
72
eventScene
()->AddElement(
m_calo
);
73
}
FWEveView::eventScene
TEveScene * eventScene()
Definition:
FWEveView.h:76
FW3DView::FW3DView
FW3DView(TEveWindowSlot *, FWViewType::EType)
Definition:
FW3DView.cc:40
FW3DView::setContext
virtual void setContext(const fireworks::Context &)
Definition:
FW3DView.cc:59
Context.h
FWEveView::viewerGL
TGLViewer * viewerGL() const
Definition:
FWEveView.cc:198
FWPFGeom::caloR1
float caloR1()
Definition:
FWPFGeom.h:21
CmsShowViewPopup.h
fireworks::Context
Definition:
Context.h:42
FW3DViewBase::setContext
virtual void setContext(const fireworks::Context &)
Definition:
FW3DViewBase.cc:157
fireworks::Context::getCaloData
TEveCaloDataHist * getCaloData() const
Definition:
Context.h:81
FW3DView::~FW3DView
virtual ~FW3DView()
Definition:
FW3DView.cc:47
FW3DViewBase
Definition:
FW3DViewBase.h:41
FWEveView::context
const fireworks::Context & context()
Definition:
FWEveView.h:65
FWPFGeom::caloZ1
float caloZ1()
Definition:
FWPFGeom.h:22
FW3DView.h
FWViewType::EType
EType
Definition:
FWViewType.h:34
FW3DView::getEveCalo
virtual TEveCaloViz * getEveCalo() const
Definition:
FW3DView.cc:54
data
char data[epos_bytes_allocation]
Definition:
EPOS_Wrapper.h:82
FWViewEnergyScale.h
FWViewContext.h
FW3DView::m_calo
TEveCalo3D * m_calo
Definition:
FW3DView.h:53
Generated for CMSSW Reference Manual by
1.8.5