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 {
42 public:
43  FWRPZView(TEveWindowSlot* iParent, FWViewType::EType);
44  ~FWRPZView() override;
45 
46  // ---------- const member functions ---------------------
47 
48  void addTo(FWConfiguration&) const override;
49  void populateController(ViewerParameterGUI&) const override;
50  TEveCaloViz* getEveCalo() const override;
51 
52  // ---------- member functions ---------------------------
53  void setContext(const fireworks::Context&) override;
54  void setFrom(const FWConfiguration&) override;
55  void voteCaloMaxVal() override;
56 
57  void eventBegin() override;
58  void eventEnd() override;
59  void setupEventCenter() override;
60 
61  //returns the new element created from this import
62  void importElements(TEveElement* iProjectableChild, float layer, TEveElement* iProjectedParent=nullptr);
63 
64  void shiftOrigin(TEveVector& center);
65  void resetOrigin();
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 
76  void setEtaRng();
77 
78  void showProjectionAxes( );
80 
81  // ---------- member data --------------------------------
82  const static float s_distortF;
83  const static float s_distortFInv;
84 
86  TEveProjectionManager* m_projMgr;
87  TEveProjectionAxes* m_axes;
88  TEveCalo2D* m_calo;
89 
90 
91  // parameters
92 
100 
104 
110 
113 
114 };
115 
116 
117 #endif
void doShiftOriginToBeamSpot()
Definition: FWRPZView.cc:228
void doFishEyeDistortion()
Definition: FWRPZView.cc:277
FWBoolParameter m_shiftOrigin
Definition: FWRPZView.h:101
void setupEventCenter() override
Definition: FWRPZView.cc:219
FWBoolParameter m_showProjectionAxes
Definition: FWRPZView.h:107
FWRPZView(TEveWindowSlot *iParent, FWViewType::EType)
Definition: FWRPZView.cc:46
TEveCalo2D * m_calo
Definition: FWRPZView.h:88
FWBoolParameter m_showME0
Definition: FWRPZView.h:99
FWDoubleParameter m_projectionAxesLabelSize
Definition: FWRPZView.h:108
void voteCaloMaxVal() override
Definition: FWRPZView.cc:368
void eventEnd() override
Definition: FWRPZView.cc:210
void setFrom(const FWConfiguration &) override
Definition: FWRPZView.cc:337
void setContext(const fireworks::Context &) override
Definition: FWRPZView.cc:147
TEveProjectionAxes * m_axes
Definition: FWRPZView.h:87
FWBoolParameter * m_showHF
Definition: FWRPZView.h:111
TEveProjectionManager * m_projMgr
Definition: FWRPZView.h:86
FWDoubleParameter m_fishEyeR
Definition: FWRPZView.h:103
void resetOrigin()
Definition: FWRPZView.cc:261
FWBoolParameter m_showRpcEndcap
Definition: FWRPZView.h:97
void doCompression(bool)
Definition: FWRPZView.cc:307
const FWRPZView & operator=(const FWRPZView &)=delete
void setEtaRng()
Definition: FWRPZView.cc:353
FWBoolParameter m_showTrackerBarrel
Definition: FWRPZView.h:95
void showProjectionAxes()
Definition: FWRPZView.cc:399
~FWRPZView() override
Definition: FWRPZView.cc:130
void eventBegin() override
Definition: FWRPZView.cc:183
FWBoolParameter m_compressMuon
Definition: FWRPZView.h:109
FWRPZViewGeometry * m_geometryList
Definition: FWRPZView.h:85
void shiftOrigin(TEveVector &center)
Definition: FWRPZView.cc:243
TEveCaloViz * getEveCalo() const override
Definition: FWRPZView.cc:141
void doPreScaleDistortion()
Definition: FWRPZView.cc:290
FWBoolParameter * m_showEndcaps
Definition: FWRPZView.h:112
FWBoolParameter m_showGEM
Definition: FWRPZView.h:98
static const float s_distortFInv
Definition: FWRPZView.h:83
FWDoubleParameter m_fishEyeDistortion
Definition: FWRPZView.h:102
void importElements(TEveElement *iProjectableChild, float layer, TEveElement *iProjectedParent=nullptr)
Definition: FWRPZView.cc:316
FWBoolParameter m_showTrackerEndcap
Definition: FWRPZView.h:96
FWDoubleParameter m_muonDistortion
Definition: FWRPZView.h:106
void addTo(FWConfiguration &) const override
Definition: FWRPZView.cc:329
FWBoolParameter m_showPixelEndcap
Definition: FWRPZView.h:94
FWDoubleParameter m_caloDistortion
Definition: FWRPZView.h:105
FWBoolParameter m_showPixelBarrel
Definition: FWRPZView.h:93
void populateController(ViewerParameterGUI &) const override
Definition: FWRPZView.cc:413
static const float s_distortF
Definition: FWRPZView.h:82
void projectionAxesLabelSize()
Definition: FWRPZView.cc:406