CMS 3D CMS Logo

FW3DViewBase.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FW3DViewBase
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Original Author: Chris Jones
10 // Created: Thu Feb 21 11:22:41 EST 2008
11 //
12 #include <boost/bind.hpp>
13 #include <string>
14 #include <algorithm>
15 
16 // user include files
17 
18 #include "TGButton.h"
19 #include "TGLScenePad.h"
20 #include "TGLViewer.h"
21 #include "TGLClip.h"
22 #include "TGLPerspectiveCamera.h"
23 #include "TEveManager.h"
24 #include "TEveElement.h"
25 #include "TEveLine.h"
26 #include "TEveBoxSet.h"
27 #include "TEveScene.h"
28 #include "TGLLogicalShape.h"
29 #include "TEveCalo.h"
30 #include "TEveCaloData.h"
31 #include "TEveStraightLineSet.h"
32 
41 
42 namespace {
43  class TGLClipsiLogical : public TGLLogicalShape {
44  protected:
45  void DirectDraw(TGLRnrCtx& rnrCtx) const override {}
46 
47  public:
48  TGLClipsiLogical() : TGLLogicalShape() {}
49  ~TGLClipsiLogical() override {}
50  void Resize(Double_t ext) {}
51  };
52 
53  const float fgColor[4] = {1.0, 0.6, 0.2, 0.5};
54 
55  class Clipsi : public TGLClip {
56  private:
57  TGLRnrCtx* m_rnrCtx;
58  Clipsi(const Clipsi&) = delete; // Not implemented
59  Clipsi& operator=(const Clipsi&) = delete; // Not implemented
60 
61  TGLVertex3 vtx[4];
62  TGLVertex3 appexOffset;
63 
64  public:
65  Clipsi(TGLRnrCtx* ctx) : TGLClip(*new TGLClipsiLogical, TGLMatrix(), fgColor), m_rnrCtx(ctx) {}
66  ~Clipsi() override {}
67  using TGLClip::Setup;
68  void Setup(const TGLBoundingBox& bbox) override {}
69 
70  void SetPlaneInfo(TEveVector* vec) {
71  for (int i = 0; i < 4; ++i) {
72  // vec[i].Dump();
73  vtx[i].Set(vec[i].fX + appexOffset.X(), vec[i].fY + appexOffset.Y(), vec[i].fZ + appexOffset.Z());
74  }
75  }
76 
77  void SetAppexOffset(TEveVector& vec) { appexOffset.Set(vec.fX, vec.fY, vec.fZ); }
78 
79  using TGLClip::PlaneSet;
80  void PlaneSet(TGLPlaneSet_t& planeSet) const override {
81  TGLVertex3 o = appexOffset;
82 
83  planeSet.push_back(TGLPlane(o, vtx[0], vtx[1]));
84  planeSet.push_back(TGLPlane(o, vtx[1], vtx[2]));
85  planeSet.push_back(TGLPlane(o, vtx[2], vtx[3]));
86  planeSet.push_back(TGLPlane(o, vtx[3], vtx[0]));
87  }
88  };
89 } // namespace
90 
92 //
93 //
94 // FW3DViewBase
95 //
96 //
97 //
99 FW3DViewBase::FW3DViewBase(TEveWindowSlot* iParent, FWViewType::EType typeId, unsigned int version)
100  : FWEveView(iParent, typeId, version),
101  m_geometry(nullptr),
102  m_glClip(nullptr),
103  m_showMuonBarrel(this, "Show Muon Barrel", 0l, 0l, 2l),
104  m_showMuonEndcap(this, "Show Muon Endcap", false),
105  m_showPixelBarrel(this, "Show Pixel Barrel", false),
106  m_showPixelEndcap(this, "Show Pixel Endcap", false),
107  m_showTrackerBarrel(this, "Show Tracker Barrel", false),
108  m_showTrackerEndcap(this, "Show Tracker Endcap", false),
109  m_showHGCalEE(this, "Show HGCalEE", false),
110  m_showHGCalHSi(this, "Show HGCalHSi", false),
111  m_showHGCalHSc(this, "Show HGCalHSc", false),
112  m_ecalBarrel(nullptr),
113  m_showEcalBarrel(this, "Show Ecal Barrel", false),
114  m_rnrStyle(this, "Render Style", 0l, 0l, 2l),
115  m_selectable(this, "Enable Tooltips", false),
116  m_cameraType(this, "Camera Type", 0l, 0l, 5l),
117  m_clipEnable(this, "Enable Clip", false),
118  m_clipTheta(this, "Clip Theta", 0.0, -5.0, 5.0),
119  m_clipPhi(this, "Clip Phi", 0.0, -2.0, 2.0),
120  m_clipDelta1(this, "Clip Delta1", 0.2, 0.01, 2),
121  m_clipDelta2(this, "Clip Delta2", 0.2, 0.01, 2),
122  m_clipAppexOffset(this, "Appex Offset", 10l, 0l, 50l),
123  m_clipHGCalLayerBegin(this, "HGCal Lower Bound", 1l, 1l, 52l),
124  m_clipHGCalLayerEnd(this, "HGCal Upper Bound", 52l, 1l, 52l),
125  m_DMT(nullptr),
126  m_DMTline(nullptr) {
127  viewerGL()->SetCurrentCamera(TGLViewer::kCameraPerspXOZ);
129 
130  m_showMuonBarrel.addEntry(0, "Hide");
131  m_showMuonBarrel.addEntry(1, "Simplified");
132  m_showMuonBarrel.addEntry(2, "Full");
133  m_showMuonBarrel.changed_.connect(boost::bind(&FW3DViewBase::showMuonBarrel, this, _1));
134 
135  m_rnrStyle.addEntry(TGLRnrCtx::kFill, "Fill");
136  m_rnrStyle.addEntry(TGLRnrCtx::kOutline, "Outline");
137  m_rnrStyle.addEntry(TGLRnrCtx::kWireFrame, "WireFrame");
138  m_rnrStyle.changed_.connect(boost::bind(&FW3DViewBase::rnrStyle, this, _1));
139 
140  m_selectable.changed_.connect(boost::bind(&FW3DViewBase::selectable, this, _1));
141 
142  m_cameraType.addEntry(TGLViewer::kCameraPerspXOZ, "PerspXOZ");
143  m_cameraType.addEntry(TGLViewer::kCameraOrthoXOY, "OrthoXOY");
144  m_cameraType.addEntry(TGLViewer::kCameraOrthoXOZ, "OrthoXOZ");
145  m_cameraType.addEntry(TGLViewer::kCameraOrthoZOY, "OrthoZOY");
146  m_cameraType.addEntry(TGLViewer::kCameraOrthoXnOY, "OrthoXnOY");
147  m_cameraType.addEntry(TGLViewer::kCameraOrthoXnOZ, "OrthoXnOZ");
148  m_cameraType.addEntry(TGLViewer::kCameraOrthoZnOY, "OrthoZnOY");
149  m_cameraType.changed_.connect(boost::bind(&FW3DViewBase::setCameraType, this, _1));
150 
151  m_clipEnable.changed_.connect(boost::bind(&FW3DViewBase::enableSceneClip, this, _1));
152  m_clipTheta.changed_.connect(boost::bind(&FW3DViewBase::updateClipPlanes, this, false));
153  m_clipPhi.changed_.connect(boost::bind(&FW3DViewBase::updateClipPlanes, this, false));
154  m_clipDelta1.changed_.connect(boost::bind(&FW3DViewBase::updateClipPlanes, this, false));
155  m_clipDelta2.changed_.connect(boost::bind(&FW3DViewBase::updateClipPlanes, this, false));
156  m_clipAppexOffset.changed_.connect(boost::bind(&FW3DViewBase::updateClipPlanes, this, false));
157  m_clipHGCalLayerBegin.changed_.connect(boost::bind(&FW3DViewBase::updateHGCalVisibility, this, false));
158  m_clipHGCalLayerEnd.changed_.connect(boost::bind(&FW3DViewBase::updateHGCalVisibility, this, false));
159 
160  m_ecalBarrel = new TEveBoxSet("ecalBarrel");
161  m_ecalBarrel->UseSingleColor();
162  m_ecalBarrel->SetMainColor(kAzure + 10);
163  m_ecalBarrel->SetMainTransparency(98);
164  geoScene()->AddElement(m_ecalBarrel);
165 }
166 
168 
171 
173  geoScene()->AddElement(m_geometry);
174 
183  m_showEcalBarrel.changed_.connect(boost::bind(&FW3DViewBase::showEcalBarrel, this, _1));
184 
185  // don't clip event scene -- ideally, would have TGLClipNoClip in root
186  TGLClipPlane* c = new TGLClipPlane();
187  c->Setup(TGLVector3(1e10, 0, 0), TGLVector3(-1, 0, 0));
188  eventScene()->GetGLScene()->SetClip(c);
189 
190  m_DMTline = new TEveLine();
191  m_DMTline->SetLineColor(1016);
192  m_DMTline->SetLineStyle(5);
193 
194  m_DMTline->SetPoint(0, 0, 0, 0);
195  m_DMTline->SetPoint(1, 0, 0, 0);
196  eventScene()->AddElement(m_DMTline);
198 }
199 
201  if (m_geometry) {
202  m_geometry->showMuonBarrel(x == 1);
204  }
205 }
206 
208  viewerGL()->RefCamera(TGLViewer::ECameraType(x)).IncTimeStamp();
209  viewerGL()->SetCurrentCamera(TGLViewer::ECameraType(x));
210 
211  //if (viewerGL()->CurrentCamera().IsOrthographic())
212  // ((TGLOrthoCamera*)(&viewerGL()->CurrentCamera()))->SetEnableRotate(1);
213 }
214 
216  geoScene()->GetGLScene()->SetStyle(x);
217  viewerGL()->Changed();
218  gEve->Redraw3D();
219 }
220 
221 void FW3DViewBase::selectable(bool x) { geoScene()->GetGLScene()->SetSelectable(x); }
223  if (m_glClip == nullptr) {
224  m_glClip = new Clipsi(viewerGL()->GetRnrCtx());
225 
226  m_glClip->SetMode(TGLClip::kOutside);
227  }
228 
229  geoScene()->GetGLScene()->SetClip(x ? m_glClip : nullptr);
230  for (TEveElement::List_i it = gEve->GetScenes()->BeginChildren(); it != gEve->GetScenes()->EndChildren(); ++it) {
231  if (strncmp((*it)->GetElementName(), "TopGeoNodeScene", 15) == 0)
232  ((TEveScene*)(*it))->GetGLScene()->SetClip(x ? m_glClip : nullptr);
233  }
234  eventScene()->GetGLScene()->SetClip(x ? m_glClip : nullptr);
235  updateClipPlanes(true);
236  updateHGCalVisibility(false);
237  viewerGL()->RequestDraw();
238 }
239 
240 void FW3DViewBase::setClip(float theta, float phi) {
241  // called from popup menu via FWGUIManager
242 
243  // limit to 2 decimals, else TGNumber entry in the view controller shows only last 5 irrelevant digits
244  double base = 100.0;
245  int thetaInt = theta * base;
246  int phiInt = phi * base;
247  m_clipTheta.set(thetaInt / base);
248  m_clipPhi.set(phiInt / base);
249  m_clipEnable.set(true);
250 }
251 
252 namespace {
253  float getBBoxLineLength(TEveScene* scene, TEveVector in) {
254  if (!scene->NumChildren())
255  return 0;
256 
257  scene->Repaint();
258  scene->GetGLScene()->CalcBoundingBox();
259  const TGLBoundingBox& bb = scene->GetGLScene()->BoundingBox();
260  if (bb.IsEmpty())
261  return 0;
262 
263  TGLPlaneSet_t ps;
264  bb.PlaneSet(ps);
265  TEveVector inn = in;
266  inn.Normalize();
267  inn *= 10000;
268  TGLLine3 line(TGLVertex3(), TGLVertex3(inn.fX, inn.fY, inn.fZ));
269  std::vector<float> res;
270  for (TGLPlaneSet_i i = ps.begin(); i != ps.end(); ++i) {
271  std::pair<Bool_t, TGLVertex3> r = Intersection(*i, line, false);
272  if (r.first) {
273  TGLVector3 vr(r.second.X(), r.second.Y(), r.second.Z());
274  res.push_back(vr.Mag());
275  }
276  }
277  std::sort(res.begin(), res.end());
278  return res.front();
279  }
280 
281  void setBBoxClipped(TGLBoundingBox& bbox, TEveVector dir, TEveVector b0, TEveVector b1, float fac) {
282  dir *= fac;
283  b0 *= fac;
284  b1 *= fac;
285 
286  TEveVectorD bb[8];
287  bb[0] += b0;
288  bb[0] += b1;
289  bb[1] -= b0;
290  bb[1] += b1;
291  bb[2] -= b0;
292  bb[2] -= b1;
293  bb[3] += b0;
294  bb[3] -= b1;
295 
296  for (int i = 4; i < 8; ++i)
297  bb[i] = dir;
298 
299  bb[0 + 4] += b0;
300  bb[0 + 4] += b1;
301  bb[1 + 4] -= b0;
302  bb[1 + 4] += b1;
303  bb[2 + 4] -= b0;
304  bb[2 + 4] -= b1;
305  bb[3 + 4] += b0;
306  bb[3 + 4] -= b1;
307 
308  TGLVertex3 bbv[8];
309  for (int i = 0; i < 8; ++i) {
310  bbv[i].Set(bb[i].fX, bb[i].fY, bb[i].fZ);
311  }
312  bbox.Set(bbv);
313  }
314 } // namespace
315 
316 void FW3DViewBase::updateClipPlanes(bool resetCamera) {
317  // TEveScene* gs = (TEveScene*)gEve->GetScenes()->FindChild(TString("TopGeoNodeScene"));
318  //printf("node scene %p\n", gs);
319  if (m_clipEnable.value()) {
320  float theta = m_clipTheta.value();
321  float phi = m_clipPhi.value();
322  using namespace TMath;
323  TEveVector in(Sin(theta) * Cos(phi), Sin(theta) * Sin(phi), Cos(theta));
324 
325  // one side of cross section plane is paralel to XY plane
326  TEveVector normXY(0., 1., 0);
327  TEveVector b0 = in.Cross(normXY);
328  TEveVector b1 = in.Cross(b0);
329 
330  float delta1 = m_clipDelta1.value();
331  float delta2 = m_clipDelta2.value();
332  b0.Normalize();
333  b0 *= Sin(delta1);
334  b1.Normalize();
335  b1 *= Sin(delta2);
336 
337  TEveVector c[4];
338  c[0] += b0;
339  c[0] += b1;
340  c[1] -= b0;
341  c[1] += b1;
342  c[2] -= b0;
343  c[2] -= b1;
344  c[3] += b0;
345  c[3] -= b1;
346  for (int i = 0; i < 4; ++i)
347  c[i] += in;
348 
349  TEveVector aOff = in;
350  aOff.NegateXYZ();
351  aOff.Normalize();
352  aOff *= m_clipAppexOffset.value();
353  ((Clipsi*)m_glClip)->SetAppexOffset(aOff);
354 
355  ((Clipsi*)m_glClip)->SetPlaneInfo(&c[0]);
356 
357  if (resetCamera) {
358  TGLBoundingBox bbox;
359  float es = getBBoxLineLength(eventScene(), in);
360  float gs = getBBoxLineLength(geoScene(), in);
361  setBBoxClipped(bbox, in, b0, b1, TMath::Max(es, gs));
362 
363  /*
364  TEvePointSet* bmarker = new TEvePointSet(8);
365  bmarker->Reset(4);
366  bmarker->SetName("bbox");
367  bmarker->SetMarkerColor(kOrange);
368  bmarker->SetMarkerStyle(3);
369  bmarker->SetMarkerSize(0.2);
370  for (int i = 0; i < 8; ++i)
371  bmarker->SetPoint(i, bbox[i].X(), bbox[i].Y(), bbox[i].Z());
372  eventScene()->AddElement(bmarker);
373  */
374 
375  TGLCamera& cam = viewerGL()->CurrentCamera();
376  cam.SetExternalCenter(true);
377  cam.SetCenterVec(bbox.Center().X(), bbox.Center().Y(), bbox.Center().Z());
378  cam.Setup(bbox, true);
379  } else {
380  eventScene()->Repaint();
381  }
382  }
383 
384  gEve->Redraw3D();
385 }
386 
388  if (!m_clipEnable.value())
389  return;
390 
391  long lmin = m_clipHGCalLayerBegin.value();
392  long lmax = m_clipHGCalLayerEnd.value();
393 
394  // real min, max
395  long r_lmin = std::min(lmin, lmax);
396  long r_lmax = std::max(lmin, lmax);
397 
398  TEveElementList const* const HGCalEE = m_geometry->getHGCalEE();
399  if (HGCalEE) {
400  for (const auto& it : HGCalEE->RefChildren()) {
401  std::string title(it->GetElementTitle());
402  int layer = stoi(title.substr(title.length() - 2));
403  it->SetRnrState(layer >= r_lmin && layer <= r_lmax);
404  }
405  }
406 
407  TEveElementList const* const HGCalHSi = m_geometry->getHGCalHSi();
408  if (HGCalHSi) {
409  for (const auto& it : HGCalHSi->RefChildren()) {
410  std::string title(it->GetElementTitle());
411  int layer = stoi(title.substr(title.length() - 2)) + 28;
412  it->SetRnrState(layer >= r_lmin && layer <= r_lmax);
413  }
414  }
415 
416  TEveElementList const* const HGCalHSc = m_geometry->getHGCalHSc();
417  if (HGCalHSc) {
418  for (const auto& it : HGCalHSc->RefChildren()) {
419  std::string title(it->GetElementTitle());
420  int layer = stoi(title.substr(title.length() - 2)) + 28;
421  it->SetRnrState(layer >= r_lmin && layer <= r_lmax);
422  }
423  }
424 
425  gEve->Redraw3D();
426 }
427 
428 //______________________________________________________________________________
430  // take care of parameters
431  FWEveView::addTo(iTo);
432  TGLPerspectiveCamera* camera = dynamic_cast<TGLPerspectiveCamera*>(&(viewerGL()->CurrentCamera()));
433  if (camera)
434  addToPerspectiveCamera(camera, "Plain3D", iTo);
435 }
436 
437 //______________________________________________________________________________
439  // take care of parameters
440  FWEveView::setFrom(iFrom);
441 
442  TGLPerspectiveCamera* camera = dynamic_cast<TGLPerspectiveCamera*>(&(viewerGL()->CurrentCamera()));
443  if (camera)
444  setFromPerspectiveCamera(camera, "Plain3D", iFrom);
445 
446  if (iFrom.version() < 5) {
447  // transparency moved to common preferences in FWEveView version 5
448  std::string tName("Detector Transparency");
449  std::istringstream s(iFrom.valueForKey(tName)->value());
450  int transp;
451  s >> transp;
452  context().colorManager()->setGeomTransparency(transp, false);
453  }
454 }
455 
457 
458 void FW3DViewBase::setCurrentDMTVertex(double x, double y, double z) {
460  printf("ERROR!!!! FW3DViewBase::setCurrentDMTVertex \n");
461 
462  m_DMTline->SetPoint(m_DMT->m_action, x, y, z);
463  m_DMTline->ElementChanged();
464  viewerGL()->RequestDraw();
465 
466  m_DMT->refCurrentVertex().Set(x, y, z);
467  m_DMT->resetAction();
468 }
469 
472 
473  gui.requestTab("Detector")
486 
487  gui.requestTab("Clipping")
496 
497  gui.requestTab("Style").separator();
498  gui.getTabContainer()->AddFrame(
499  new TGTextButton(gui.getTabContainer(),
500  "Root controls",
501  Form("TEveGedEditor::SpawnNewEditor((TGLViewer*)0x%lx)", (unsigned long)viewerGL())));
502 
503  gui.requestTab("Tools").addParam(&m_cameraType).separator();
504  gui.getTabContainer()->AddFrame(m_DMT->buildGUI(gui.getTabContainer()),
505  new TGLayoutHints(kLHintsExpandX, 2, 2, 2, 2));
506 }
507 
509  if (x && m_ecalBarrel->GetPlex()->Size() == 0) {
510  const FWGeometry* geom = context().getGeom();
511  std::vector<unsigned int> ids =
512  geom->getMatchedIds(FWGeometry::Detector::Ecal, FWGeometry::SubDetector::PixelBarrel);
513  m_ecalBarrel->Reset(TEveBoxSet::kBT_FreeBox, true, ids.size());
514  for (std::vector<unsigned int>::iterator it = ids.begin(); it != ids.end(); ++it) {
515  const float* cor = context().getGeom()->getCorners(*it);
516  m_ecalBarrel->AddBox(cor);
517  }
518  m_ecalBarrel->RefitPlex();
519  }
520 
521  if (m_ecalBarrel->GetRnrSelf() != x) {
522  m_ecalBarrel->SetRnrSelf(x);
523  gEve->Redraw3D();
524  }
525 
526  // disable enable grid in 3DView
527  if (typeId() == FWViewType::k3D) {
528  TEveElement* calo = eventScene()->FindChild("calo barrel");
529  if (calo) {
530  TEveCalo3D* c3d = dynamic_cast<TEveCalo3D*>(calo);
531  c3d->SetRnrFrame(!x, !x);
532  c3d->ElementChanged();
533  }
534  }
535 }
FW3DViewBase::m_showPixelEndcap
FWBoolParameter m_showPixelEndcap
Definition: FW3DViewBase.h:82
FW3DViewBase::FW3DViewBase
FW3DViewBase(TEveWindowSlot *, FWViewType::EType, unsigned int version=8)
Definition: FW3DViewBase.cc:99
ext
Definition: memstream.h:15
FW3DViewBase::m_DMTline
TEveLine * m_DMTline
Definition: FW3DViewBase.h:107
DDAxes::y
FW3DViewDistanceMeasureTool::m_action
EPickAction m_action
Definition: FW3DViewDistanceMeasureTool.h:32
mps_fire.i
i
Definition: mps_fire.py:355
fireworks::Context
Definition: Context.h:41
FWGeometry
Definition: FWGeometry.h:27
FW3DViewBase::setFrom
void setFrom(const FWConfiguration &) override
Definition: FW3DViewBase.cc:438
funct::false
false
Definition: Factorize.h:34
L1TowerCalibrationProducer_cfi.calo
calo
Definition: L1TowerCalibrationProducer_cfi.py:59
FWGeometry::getCorners
const float * getCorners(unsigned int id) const
Definition: FWGeometry.cc:464
FW3DViewGeometry::showHGCalHSi
void showHGCalHSi(bool)
Definition: FW3DViewGeometry.cc:406
FW3DViewGeometry::showHGCalEE
void showHGCalEE(bool)
Definition: FW3DViewGeometry.cc:377
FW3DViewDistanceMeasureTool::buildGUI
TGCompositeFrame * buildGUI(TGCompositeFrame *p)
Definition: FW3DViewDistanceMeasureTool.cc:70
FW3DViewBase::setContext
void setContext(const fireworks::Context &) override
Definition: FW3DViewBase.cc:169
FWViewType::EType
EType
Definition: FWViewType.h:31
fireworks::Context::colorManager
FWColorManager * colorManager() const
Definition: Context.h:58
ViewerParameterGUI
Definition: CmsShowViewPopup.h:49
FW3DViewDistanceMeasureTool::refCurrentVertex
TGLVector3 & refCurrentVertex()
Definition: FW3DViewDistanceMeasureTool.cc:58
min
T min(T a, T b)
Definition: MathUtil.h:58
FW3DViewGeometry::showMuonBarrelFull
void showMuonBarrelFull(bool)
Definition: FW3DViewGeometry.cc:111
FW3DViewGeometry::showMuonBarrel
void showMuonBarrel(bool)
Definition: FW3DViewGeometry.cc:79
simpleEdmComparison.tName
tName
Definition: simpleEdmComparison.py:125
FWEveView::populateController
void populateController(ViewerParameterGUI &) const override
Definition: FWEveView.cc:466
FWEveView::setFrom
void setFrom(const FWConfiguration &) override
Definition: FWEveView.cc:307
FWEnumParameter::addEntry
bool addEntry(Long_t id, const std::string &txt)
Definition: FWEnumParameter.h:53
bmtfDigis_cfi.Setup
Setup
Definition: bmtfDigis_cfi.py:5
FW3DViewBase::m_showEcalBarrel
FWBoolParameter m_showEcalBarrel
Definition: FW3DViewBase.h:90
FW3DViewBase::m_rnrStyle
FWEnumParameter m_rnrStyle
Definition: FW3DViewBase.h:92
FWGenericParameter::set
void set(T iValue)
Definition: FWGenericParameter.h:70
DDAxes::x
FW3DViewBase::showEcalBarrel
void showEcalBarrel(bool)
Definition: FW3DViewBase.cc:508
FW3DViewBase::m_showHGCalHSc
FWBoolParameter m_showHGCalHSc
Definition: FW3DViewBase.h:87
FW3DViewBase::showMuonBarrel
void showMuonBarrel(long)
Definition: FW3DViewBase.cc:200
gs
Definition: AbsArchive.cc:45
EcalTangentSkim_cfg.o
o
Definition: EcalTangentSkim_cfg.py:36
FW3DViewDistanceMeasureTool::kNone
Definition: FW3DViewDistanceMeasureTool.h:14
FWEveView::eventScene
TEveScene * eventScene()
Definition: FWEveView.h:79
b1
static constexpr float b1
Definition: L1EGammaCrystalsEmulatorProducer.cc:83
FWViewBase::typeId
FWViewType::EType typeId() const
Definition: FWViewBase.h:42
GeomDetEnumerators::PixelBarrel
Definition: GeomDetEnumerators.h:11
FWViewContext.h
alignCSCRings.s
s
Definition: alignCSCRings.py:92
FW3DViewBase::addTo
void addTo(FWConfiguration &) const override
Definition: FW3DViewBase.cc:429
FW3DViewBase::m_geometry
FW3DViewGeometry * m_geometry
Definition: FW3DViewBase.h:75
FWGenericParameter::changed_
sigc::signal< void, T > changed_
Definition: FWGenericParameter.h:75
ViewerParameterGUI::separator
ViewerParameterGUI & separator()
Definition: CmsShowViewPopup.cc:232
FWEveView
Definition: FWEveView.h:53
FWEveView::context
const fireworks::Context & context()
Definition: FWEveView.h:64
FWEveView::setFromPerspectiveCamera
void setFromPerspectiveCamera(TGLPerspectiveCamera *, const std::string &, const FWConfiguration &)
Definition: FWEveView.cc:420
FW3DViewGeometry::getHGCalHSi
TEveElementList const *const getHGCalHSi()
Definition: FW3DViewGeometry.h:50
vertices_cff.x
x
Definition: vertices_cff.py:29
FW3DViewBase::m_ecalBarrel
TEveBoxSet * m_ecalBarrel
Definition: FW3DViewBase.h:89
FW3DViewBase::m_clipHGCalLayerBegin
FWLongParameter m_clipHGCalLayerBegin
Definition: FW3DViewBase.h:103
DDAxes::z
FW3DViewBase::m_clipHGCalLayerEnd
FWLongParameter m_clipHGCalLayerEnd
Definition: FW3DViewBase.h:104
FW3DViewGeometry::getHGCalHSc
TEveElementList const *const getHGCalHSc()
Definition: FW3DViewGeometry.h:52
FW3DViewBase::m_clipAppexOffset
FWLongParameter m_clipAppexOffset
Definition: FW3DViewBase.h:102
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
FW3DViewBase::populateController
void populateController(ViewerParameterGUI &) const override
Definition: FW3DViewBase.cc:470
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
FWConfiguration::valueForKey
const FWConfiguration * valueForKey(const std::string &iKey) const
Definition: FWConfiguration.cc:121
FW3DViewBase::setCurrentDMTVertex
void setCurrentDMTVertex(double x, double y, double z)
Definition: FW3DViewBase.cc:458
FW3DViewDistanceMeasureTool.h
badGlobalMuonTaggersAOD_cff.vtx
vtx
Definition: badGlobalMuonTaggersAOD_cff.py:5
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
FW3DViewBase::selectable
void selectable(bool)
Definition: FW3DViewBase.cc:221
FWConfiguration::value
const std::string & value(unsigned int iIndex=0) const
Definition: FWConfiguration.cc:114
FW3DViewGeometry::showMuonEndcap
void showMuonEndcap(bool)
Definition: FW3DViewGeometry.cc:141
FWGeometry.h
FW3DViewBase::m_showTrackerEndcap
FWBoolParameter m_showTrackerEndcap
Definition: FW3DViewBase.h:84
FW3DViewGeometry.h
FW3DViewBase::setCameraType
void setCameraType(long)
Definition: FW3DViewBase.cc:207
FW3DViewBase::m_glClip
TGLClip * m_glClip
Definition: FW3DViewBase.h:76
ViewerParameterGUI::getTabContainer
TGCompositeFrame * getTabContainer()
Definition: CmsShowViewPopup.cc:240
FW3DViewBase::m_showMuonEndcap
FWBoolParameter m_showMuonEndcap
Definition: FW3DViewBase.h:80
PVValHelper::phi
Definition: PVValidationHelpers.h:68
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
recoMuon::in
Definition: RecoMuonEnumerators.h:6
fireworks::Context::getGeom
FWGeometry * getGeom() const
Definition: Context.h:72
FW3DViewBase::m_clipEnable
FWBoolParameter m_clipEnable
Definition: FW3DViewBase.h:97
FW3DViewBase::updateHGCalVisibility
void updateHGCalVisibility(bool)
Definition: FW3DViewBase.cc:387
FWColorManager::setGeomTransparency
void setGeomTransparency(Color_t idx, bool projectedType)
Definition: FWColorManager.cc:238
FW3DViewGeometry::showPixelEndcap
void showPixelEndcap(bool)
Definition: FW3DViewGeometry.cc:300
FW3DViewDistanceMeasureTool::resetAction
void resetAction()
Definition: FW3DViewDistanceMeasureTool.cc:22
b0
static constexpr float b0
Definition: L1EGammaCrystalsEmulatorProducer.cc:83
Max
T Max(T a, T b)
Definition: MathUtil.h:44
FW3DViewBase::m_showMuonBarrel
FWEnumParameter m_showMuonBarrel
Definition: FW3DViewBase.h:79
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
FWConfiguration::version
unsigned int version() const
Definition: FWConfiguration.h:49
FW3DViewBase::rnrStyle
void rnrStyle(long)
Definition: FW3DViewBase.cc:215
res
Definition: Electron.h:6
FW3DViewBase::m_selectable
FWBoolParameter m_selectable
Definition: FW3DViewBase.h:93
cmsLHEtoEOSManager.l
l
Definition: cmsLHEtoEOSManager.py:193
alignCSCRings.r
r
Definition: alignCSCRings.py:93
overlapproblemtsosanalyzer_cfi.title
title
Definition: overlapproblemtsosanalyzer_cfi.py:7
FW3DViewGeometry::showHGCalHSc
void showHGCalHSc(bool)
Definition: FW3DViewGeometry.cc:435
FW3DViewBase::setClip
void setClip(float eta, float phi)
Definition: FW3DViewBase.cc:240
FWGenericParameter::value
T value() const
Definition: FWGenericParameter.h:50
DDAxes::phi
FW3DViewGeometry::showPixelBarrel
void showPixelBarrel(bool)
Definition: FW3DViewGeometry.cc:274
FW3DViewBase::m_cameraType
FWEnumParameter m_cameraType
Definition: FW3DViewBase.h:95
FWEveView::addToPerspectiveCamera
void addToPerspectiveCamera(TGLPerspectiveCamera *, const std::string &, FWConfiguration &) const
Definition: FWEveView.cc:397
FW3DViewBase::m_clipDelta2
FWDoubleParameter m_clipDelta2
Definition: FW3DViewBase.h:101
FW3DViewBase::m_clipPhi
FWDoubleParameter m_clipPhi
Definition: FW3DViewBase.h:99
FWEveView::addTo
void addTo(FWConfiguration &) const override
Definition: FWEveView.cc:291
FW3DViewBase::m_showPixelBarrel
FWBoolParameter m_showPixelBarrel
Definition: FW3DViewBase.h:81
FW3DViewBase::m_showTrackerBarrel
FWBoolParameter m_showTrackerBarrel
Definition: FW3DViewBase.h:83
CmsShowViewPopup.h
FW3DViewGeometry
Definition: FW3DViewGeometry.h:29
FW3DViewBase::m_DMT
FW3DViewDistanceMeasureTool * m_DMT
Definition: FW3DViewBase.h:106
FWEveView::resetCamera
virtual void resetCamera()
Definition: FWEveView.cc:224
FW3DViewBase::requestGLHandlerPick
bool requestGLHandlerPick() const override
Definition: FW3DViewBase.cc:456
FWViewType::k3D
Definition: FWViewType.h:34
FWEveView::viewerGL
TGLViewer * viewerGL() const
Definition: FWEveView.cc:177
FW3DViewBase::~FW3DViewBase
~FW3DViewBase() override
Definition: FW3DViewBase.cc:167
FW3DViewBase::m_showHGCalHSi
FWBoolParameter m_showHGCalHSi
Definition: FW3DViewBase.h:86
FW3DViewBase::m_clipTheta
FWDoubleParameter m_clipTheta
Definition: FW3DViewBase.h:98
FWViewEnergyScale.h
FW3DViewBase::enableSceneClip
void enableSceneClip(bool)
Definition: FW3DViewBase.cc:222
FWConfiguration
Definition: FWConfiguration.h:31
FWEveView::setContext
virtual void setContext(const fireworks::Context &x)
Definition: FWEveView.cc:227
FW3DViewGeometry::showTrackerBarrel
void showTrackerBarrel(bool)
Definition: FW3DViewGeometry.cc:323
FWEveView::geoScene
TEveScene * geoScene()
Definition: FWEveView.h:80
mps_splice.line
line
Definition: mps_splice.py:76
newFWLiteAna.base
base
Definition: newFWLiteAna.py:92
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45
FW3DViewBase::updateClipPlanes
void updateClipPlanes(bool resetCamera)
Definition: FW3DViewBase.cc:316
FW3DViewGeometry::getHGCalEE
TEveElementList const *const getHGCalEE()
Definition: FW3DViewGeometry.h:48
FW3DViewDistanceMeasureTool
Definition: FW3DViewDistanceMeasureTool.h:10
ViewerParameterGUI::addParam
ViewerParameterGUI & addParam(const FWParameterBase *)
Definition: CmsShowViewPopup.cc:212
FW3DViewBase::m_showHGCalEE
FWBoolParameter m_showHGCalEE
Definition: FW3DViewBase.h:85
FW3DViewGeometry::showTrackerEndcap
void showTrackerEndcap(bool)
Definition: FW3DViewGeometry.cc:350
Context.h
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
ViewerParameterGUI::requestTab
ViewerParameterGUI & requestTab(const char *)
Definition: CmsShowViewPopup.cc:197
FW3DViewBase::m_clipDelta1
FWDoubleParameter m_clipDelta1
Definition: FW3DViewBase.h:100
FW3DViewBase.h