CMS 3D CMS Logo

FWRPZView.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWRPZView_h
2 #define Fireworks_Core_FWRPZView_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWRPZView
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Feb 19 10:33:21 EST 2008
19 //
20 
21 // system include files
22 #include <string>
23 
24 // user include files
29 #include "TEveVector.h"
30 
31 // forward declarations
32 class TEveProjectionManager;
33 class TGLMatrix;
34 class TEveCalo2D;
35 class TEveProjectionAxes;
36 class TEveWindowSlot;
37 class FWColorManager;
38 class FWRPZViewGeometry;
39 
40 class FWRPZView : public FWEveView {
41 public:
42  FWRPZView(TEveWindowSlot* iParent, FWViewType::EType);
43  ~FWRPZView() override;
44 
45  // ---------- const member functions ---------------------
46 
47  void addTo(FWConfiguration&) const override;
48  void populateController(ViewerParameterGUI&) const override;
49  TEveCaloViz* getEveCalo() const override;
50 
51  // ---------- member functions ---------------------------
52  void setContext(const fireworks::Context&) override;
53  void setFrom(const FWConfiguration&) override;
54  void voteCaloMaxVal() override;
55 
56  void eventBegin() override;
57  void eventEnd() override;
58  void setupEventCenter() override;
59 
60  //returns the new element created from this import
61  void importElements(TEveElement* iProjectableChild, float layer, TEveElement* iProjectedParent = nullptr);
62 
63  void shiftOrigin(TEveVector& center);
64  void resetOrigin();
65 
66 private:
67  FWRPZView(const FWRPZView&) = delete; // stop default
68  const FWRPZView& operator=(const FWRPZView&) = delete; // stop default
69 
70  void doPreScaleDistortion();
71  void doFishEyeDistortion();
72  void doCompression(bool);
74 
75  void setEtaRng();
76 
77  void showProjectionAxes();
79 
80  // ---------- member data --------------------------------
81  const static float s_distortF;
82  const static float s_distortFInv;
83 
85  TEveProjectionManager* m_projMgr;
86  TEveProjectionAxes* m_axes;
87  TEveCalo2D* m_calo;
88 
89  // parameters
90 
98 
102 
108 
111 };
112 
113 #endif
FWRPZView
Definition: FWRPZView.h:40
FWRPZView::voteCaloMaxVal
void voteCaloMaxVal() override
Definition: FWRPZView.cc:325
FWRPZView::eventEnd
void eventEnd() override
Definition: FWRPZView.cc:193
fireworks::Context
Definition: Context.h:41
FWGenericParameterWithRange
Definition: FWGenericParameterWithRange.h:27
FWRPZView::m_showME0
FWBoolParameter m_showME0
Definition: FWRPZView.h:97
FWRPZView::doCompression
void doCompression(bool)
Definition: FWRPZView.cc:274
FWViewType::EType
EType
Definition: FWViewType.h:31
FWBoolParameter.h
FWRPZView::doFishEyeDistortion
void doFishEyeDistortion()
Definition: FWRPZView.cc:248
ViewerParameterGUI
Definition: CmsShowViewPopup.h:49
FWRPZView::m_shiftOrigin
FWBoolParameter m_shiftOrigin
Definition: FWRPZView.h:99
FWEveView.h
FWRPZView::m_showGEM
FWBoolParameter m_showGEM
Definition: FWRPZView.h:96
FWRPZView::s_distortFInv
const static float s_distortFInv
Definition: FWRPZView.h:82
FWRPZView::m_axes
TEveProjectionAxes * m_axes
Definition: FWRPZView.h:86
FWRPZView::m_fishEyeR
FWDoubleParameter m_fishEyeR
Definition: FWRPZView.h:101
FWRPZView::m_showTrackerEndcap
FWBoolParameter m_showTrackerEndcap
Definition: FWRPZView.h:94
FWGenericParameter
Definition: FWGenericParameter.h:31
FWRPZView::m_geometryList
FWRPZViewGeometry * m_geometryList
Definition: FWRPZView.h:84
FWRPZView::setEtaRng
void setEtaRng()
Definition: FWRPZView.cc:311
FWRPZView::~FWRPZView
~FWRPZView() override
Definition: FWRPZView.cc:128
FWRPZView::m_projMgr
TEveProjectionManager * m_projMgr
Definition: FWRPZView.h:85
FWRPZView::setContext
void setContext(const fireworks::Context &) override
Definition: FWRPZView.cc:139
FWRPZView::shiftOrigin
void shiftOrigin(TEveVector &center)
Definition: FWRPZView.cc:219
FWEveView
Definition: FWEveView.h:53
FWRPZView::FWRPZView
FWRPZView(TEveWindowSlot *iParent, FWViewType::EType)
Definition: FWRPZView.cc:46
FWRPZView::resetOrigin
void resetOrigin()
Definition: FWRPZView.cc:235
FWRPZView::m_showEndcaps
FWBoolParameter * m_showEndcaps
Definition: FWRPZView.h:110
FWRPZView::getEveCalo
TEveCaloViz * getEveCalo() const override
Definition: FWRPZView.cc:137
FWRPZView::doPreScaleDistortion
void doPreScaleDistortion()
Definition: FWRPZView.cc:259
FWRPZView::populateController
void populateController(ViewerParameterGUI &) const override
Definition: FWRPZView.cc:364
FWRPZView::showProjectionAxes
void showProjectionAxes()
Definition: FWRPZView.cc:353
FWRPZViewGeometry
Definition: FWRPZViewGeometry.h:32
FWRPZView::setupEventCenter
void setupEventCenter() override
Definition: FWRPZView.cc:200
FWRPZView::importElements
void importElements(TEveElement *iProjectableChild, float layer, TEveElement *iProjectedParent=nullptr)
Definition: FWRPZView.cc:281
FWRPZView::m_showPixelEndcap
FWBoolParameter m_showPixelEndcap
Definition: FWRPZView.h:92
FWRPZView::s_distortF
const static float s_distortF
Definition: FWRPZView.h:81
FWDoubleParameter.h
FWColorManager
Definition: FWColorManager.h:45
FWRPZView::eventBegin
void eventBegin() override
Definition: FWRPZView.cc:172
FWRPZView::addTo
void addTo(FWConfiguration &) const override
Definition: FWRPZView.cc:290
FWRPZView::m_compressMuon
FWBoolParameter m_compressMuon
Definition: FWRPZView.h:107
FWRPZView::m_showTrackerBarrel
FWBoolParameter m_showTrackerBarrel
Definition: FWRPZView.h:93
FWRPZView::operator=
const FWRPZView & operator=(const FWRPZView &)=delete
FWRPZView::m_muonDistortion
FWDoubleParameter m_muonDistortion
Definition: FWRPZView.h:104
FWRPZView::m_showPixelBarrel
FWBoolParameter m_showPixelBarrel
Definition: FWRPZView.h:91
FWRPZView::doShiftOriginToBeamSpot
void doShiftOriginToBeamSpot()
Definition: FWRPZView.cc:207
FWRPZView::m_calo
TEveCalo2D * m_calo
Definition: FWRPZView.h:87
FWRPZView::m_showHF
FWBoolParameter * m_showHF
Definition: FWRPZView.h:109
FWRPZView::m_showRpcEndcap
FWBoolParameter m_showRpcEndcap
Definition: FWRPZView.h:95
FWEvePtr.h
FWConfiguration
Definition: FWConfiguration.h:31
FWRPZView::projectionAxesLabelSize
void projectionAxesLabelSize()
Definition: FWRPZView.cc:359
FWRPZView::m_projectionAxesLabelSize
FWDoubleParameter m_projectionAxesLabelSize
Definition: FWRPZView.h:106
FWRPZView::setFrom
void setFrom(const FWConfiguration &) override
Definition: FWRPZView.cc:297
FWRPZView::m_showProjectionAxes
FWBoolParameter m_showProjectionAxes
Definition: FWRPZView.h:105
FWRPZView::m_caloDistortion
FWDoubleParameter m_caloDistortion
Definition: FWRPZView.h:103
FWRPZView::m_fishEyeDistortion
FWDoubleParameter m_fishEyeDistortion
Definition: FWRPZView.h:100