CMS 3D CMS Logo

FWRPZViewGeometry.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Core
4 // Class : FWRPZViewGeometry
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Alja Mrak-Tadel
10 // Created: Thu Mar 25 20:33:06 CET 2010
11 //
12 
13 // system include files
14 #include <iostream>
15 #include <cassert>
16 
17 // user include files
18 #include "TGeoBBox.h"
19 
20 #include "TEveElement.h"
21 #include "TEveCompound.h"
22 #include "TEveScene.h"
23 #include "TEvePointSet.h"
24 #include "TEveStraightLineSet.h"
25 #include "TEveGeoNode.h"
26 #include "TEveManager.h"
27 #include "TEveProjectionManager.h"
28 
34 
40 
41 //
42 //
43 //
44 // constants, enums and typedefs
45 //
46 
47 //
48 // static data member definitions
49 //
50 
51 //
52 // constructors and destructor
53 //
55  : FWViewGeometryList(context),
56 
57  m_rhoPhiGeo(nullptr),
58  m_rhoZGeo(nullptr),
59 
60  m_pixelBarrelElements(nullptr),
61  m_pixelEndcapElements(nullptr),
62  m_trackerBarrelElements(nullptr),
63  m_trackerEndcapElements(nullptr),
64  m_rpcEndcapElements(nullptr),
65  m_GEMElements(nullptr),
66  m_ME0Elements(nullptr) {
67  SetElementName("RPZGeomShared");
68 }
69 
70 // FWRPZViewGeometry::FWRPZViewGeometry(const FWRPZViewGeometry& rhs)
71 // {
72 // // do actual copying here;
73 // }
74 
76  m_rhoPhiGeo->DecDenyDestroy();
77  m_rhoZGeo->DecDenyDestroy();
78 }
79 
80 //______________________________________________________________________________
81 
83  if (m_geom->isEmpty())
84  return;
85 
86  if (type == FWViewType::kRhoZ) {
87  AddElement(makeMuonGeometryRhoZ());
88  AddElement(makeCaloOutlineRhoZ());
89  } else {
90  AddElement(makeMuonGeometryRhoPhi());
91  AddElement(makeCaloOutlineRhoPhi());
92  }
93 }
94 
95 //______________________________________________________________________________
96 
98  using namespace fireworks;
99 
100  float ri = m_context.caloZ2() * tan(2 * atan(exp(-m_context.caloMaxEta())));
101 
102  TEveStraightLineSet* el = new TEveStraightLineSet("TrackerRhoZoutline");
103  el->SetPickable(kFALSE);
105 
106  el->AddLine(0, m_context.caloR1(), -m_context.caloZ1(), 0, m_context.caloR1(), m_context.caloZ1());
107  el->AddLine(0, -m_context.caloR1(), m_context.caloZ1(), 0, -m_context.caloR1(), -m_context.caloZ1());
108 
109  el->AddLine(0, -m_context.caloR2(), m_context.caloZ2(), 0, -ri, m_context.caloZ2());
110  el->AddLine(0, ri, m_context.caloZ2(), 0, m_context.caloR2(), m_context.caloZ2());
111 
112  el->AddLine(0, -m_context.caloR2(), -m_context.caloZ2(), 0, -ri, -m_context.caloZ2());
113  el->AddLine(0, ri, -m_context.caloZ2(), 0, m_context.caloR2(), -m_context.caloZ2());
114 
115  return el;
116 }
117 
119  TEveStraightLineSet* el = new TEveStraightLineSet("TrackerRhoPhi");
121 
123  const unsigned int nSegments = 100;
124  const double r = m_context.caloR1();
125  for (unsigned int i = 1; i <= nSegments; ++i)
126  el->AddLine(r * sin(TMath::TwoPi() / nSegments * (i - 1)),
127  r * cos(TMath::TwoPi() / nSegments * (i - 1)),
128  0,
129  r * sin(TMath::TwoPi() / nSegments * i),
130  r * cos(TMath::TwoPi() / nSegments * i),
131  0);
132 
133  TEvePointSet* ref = new TEvePointSet("reference");
134  ref->SetTitle("(0,0,0)");
135  ref->SetMarkerStyle(4);
136  ref->SetMarkerColor(kWhite);
137  ref->SetNextPoint(0., 0., 0.);
138  el->AddElement(ref);
139 
140  return el;
141 }
142 
143 //______________________________________________________________________________
144 
146  Int_t iWheel = 0;
147 
148  // rho-phi view
149  TEveCompound* container = new TEveCompound("MuonRhoPhi");
150 
151  for (Int_t iStation = 1; iStation <= 4; ++iStation) {
152  for (Int_t iSector = 1; iSector <= 14; ++iSector) {
153  if (iStation < 4 && iSector > 12)
154  continue;
155  DTChamberId id(iWheel, iStation, iSector);
156  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
157  if (shape) {
158  shape->SetMainColor(m_colorComp[kFWMuonBarrelLineColorIndex]->GetMainColor());
160  container->AddElement(shape);
161  }
162  }
163  }
164  return container;
165 }
166 namespace {
167 
168  //void addLibe
169 
170 }
171 //______________________________________________________________________________
172 
174  TEveElementList* container = new TEveElementList("MuonRhoZ");
175 
176  {
177  TEveCompound* dtContainer = new TEveCompound("DT");
178  for (Int_t iWheel = -2; iWheel <= 2; ++iWheel) {
179  for (Int_t iStation = 1; iStation <= 4; ++iStation) {
180  float min_rho(1000), max_rho(0), min_z(2000), max_z(-2000);
181 
182  // This will give us a quarter of DTs
183  // which is enough for our projection
184  for (Int_t iSector = 1; iSector <= 4; ++iSector) {
185  DTChamberId id(iWheel, iStation, iSector);
186  unsigned int rawid = id.rawId();
187  FWGeometry::IdToInfoItr det = m_geom->find(rawid);
188  if (det == m_geom->mapEnd())
189  return container;
190  estimateProjectionSizeDT(*det, min_rho, max_rho, min_z, max_z);
191  }
192  if (min_rho > max_rho || min_z > max_z)
193  continue;
194  TEveElement* se = makeShape(min_rho, max_rho, min_z, max_z);
196  dtContainer->AddElement(se);
197  se = makeShape(-max_rho, -min_rho, min_z, max_z);
199  dtContainer->AddElement(se);
200  }
201  }
202 
203  container->AddElement(dtContainer);
204  }
205  {
206  // addcsc
207  TEveCompound* cscContainer = new TEveCompound("CSC");
208  std::vector<CSCDetId> ids;
210  for (int station = 1; station <= 4; ++station) {
211  ids.push_back(CSCDetId(endcap, station, 2, 10, 0)); //outer ring up
212  ids.push_back(CSCDetId(endcap, station, 2, 11, 0)); //outer ring up
213 
214  ids.push_back(CSCDetId(endcap, station, 2, 28, 0)); //outer ring down
215  ids.push_back(CSCDetId(endcap, station, 2, 29, 0)); //outer ring down
216 
217  ids.push_back(CSCDetId(endcap, station, 1, 5, 0)); //inner ring up
218  ids.push_back(CSCDetId(endcap, station, 1, 6, 0)); //inner ring up
219 
220  int off = (station == 1) ? 10 : 0;
221  ids.push_back(CSCDetId(endcap, station, 1, 15 + off, 0)); //inner ring down
222  ids.push_back(CSCDetId(endcap, station, 1, 16 + off, 0)); //inner ring down
223  }
224  ids.push_back(CSCDetId(endcap, 1, 3, 10, 0)); // ring 3 down
225  ids.push_back(CSCDetId(endcap, 1, 3, 28, 0)); // ring 3 down
226  }
227  for (std::vector<CSCDetId>::iterator i = ids.begin(); i != ids.end(); ++i) {
228  unsigned int rawid = i->rawId();
229  TEveGeoShape* shape = m_geom->getEveShape(rawid);
230  if (!shape)
231  return cscContainer;
233  shape->SetName(Form(" e:%d r:%d s:%d chamber %d", i->endcap(), i->ring(), i->station(), i->chamber()));
234  cscContainer->AddElement(shape);
235  }
236  container->AddElement(cscContainer);
237  }
238 
239  return container;
240 }
241 
242 //______________________________________________________________________________
243 
244 TEveGeoShape* FWRPZViewGeometry::makeShape(double min_rho, double max_rho, double min_z, double max_z) {
245  TEveTrans t;
246  t(1, 1) = 1;
247  t(1, 2) = 0;
248  t(1, 3) = 0;
249  t(2, 1) = 0;
250  t(2, 2) = 1;
251  t(2, 3) = 0;
252  t(3, 1) = 0;
253  t(3, 2) = 0;
254  t(3, 3) = 1;
255  t(1, 4) = 0;
256  t(2, 4) = (min_rho + max_rho) / 2;
257  t(3, 4) = (min_z + max_z) / 2;
258 
259  TEveGeoShape* shape = new TEveGeoShape;
260  shape->SetTransMatrix(t.Array());
261 
262  shape->SetRnrSelf(kTRUE);
263  shape->SetRnrChildren(kTRUE);
264  TGeoBBox* box = new TGeoBBox(0, (max_rho - min_rho) / 2, (max_z - min_z) / 2);
265  shape->SetShape(box);
266 
267  return shape;
268 }
269 
270 //______________________________________________________________________________
271 
273  const FWGeometry::GeomDetInfo& info, float& min_rho, float& max_rho, float& min_z, float& max_z) {
274  // we will test 5 points on both sides ( +/- z)
275  float local[3], global[3];
276 
277  float dX = info.shape[1];
278  float dY = info.shape[2];
279  float dZ = info.shape[3];
280 
281  local[0] = 0;
282  local[1] = 0;
283  local[2] = dZ;
284  m_geom->localToGlobal(info, local, global);
285  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
286 
287  local[0] = dX;
288  local[1] = dY;
289  local[2] = dZ;
290  m_geom->localToGlobal(info, local, global);
291  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
292 
293  local[0] = -dX;
294  local[1] = dY;
295  local[2] = dZ;
296  m_geom->localToGlobal(info, local, global);
297  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
298 
299  local[0] = dX;
300  local[1] = -dY;
301  local[2] = dZ;
302  m_geom->localToGlobal(info, local, global);
303  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
304 
305  local[0] = -dX;
306  local[1] = -dY;
307  local[2] = dZ;
308  m_geom->localToGlobal(info, local, global);
309  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
310 
311  local[0] = 0;
312  local[1] = 0;
313  local[2] = -dZ;
314  m_geom->localToGlobal(info, local, global);
315  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
316 
317  local[0] = dX;
318  local[1] = dY;
319  local[2] = -dZ;
320  m_geom->localToGlobal(info, local, global);
321  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
322 
323  local[0] = -dX;
324  local[1] = dY;
325  local[2] = -dZ;
326  m_geom->localToGlobal(info, local, global);
327  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
328 
329  local[0] = dX;
330  local[1] = -dY;
331  local[2] = -dZ;
332  m_geom->localToGlobal(info, local, global);
333  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
334 
335  local[0] = -dX;
336  local[1] = -dY;
337  local[2] = -dZ;
338  m_geom->localToGlobal(info, local, global);
339  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
340 }
341 
343  const float* global, float& min_rho, float& max_rho, float& min_z, float& max_z) {
344  double rho = sqrt(global[0] * global[0] + global[1] * global[1]);
345  if (min_rho > rho)
346  min_rho = rho;
347  if (max_rho < rho)
348  max_rho = rho;
349  if (min_z > global[2])
350  min_z = global[2];
351  if (max_z < global[2])
352  max_z = global[2];
353 }
354 
355 // ATODO:: check white vertex -> shouldn't be relative to background
356 // when detruction ?
357 
358 // ATODO why color is not set in 3D original, why cast to polygonsetprojected after projected ????
359 // is geom color dynamic --- independent of projection manager
360 
361 // NOTE geomtry MuonRhoZAdanced renamed to MuonRhoZ
362 
363 //==============================================================================
364 //==============================================================================
365 
367  if (!m_pixelBarrelElements && show) {
368  m_pixelBarrelElements = new TEveElementList("PixelBarrel");
369  AddElement(m_pixelBarrelElements);
370  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::PixelBarrel);
371  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
372  TEveGeoShape* shape = m_geom->getEveShape(*id);
373  if (!shape)
374  return;
375  shape->SetTitle(Form("PixelBarrel %d", *id));
377  m_pixelBarrelElements->AddElement(shape);
378  }
380  }
381 
382  if (m_pixelBarrelElements) {
383  m_pixelBarrelElements->SetRnrState(show);
384  gEve->Redraw3D();
385  }
386 }
387 
389  if (!m_pixelEndcapElements && show) {
390  m_pixelEndcapElements = new TEveElementList("PixelEndcap");
391 
392  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::PixelEndcap);
393  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
394  TEveGeoShape* shape = m_geom->getEveShape(*id);
395  if (!shape)
396  return;
397  shape->SetTitle(Form("PixelEndCap %d", *id));
399  m_pixelEndcapElements->AddElement(shape);
400  }
401 
402  AddElement(m_pixelEndcapElements);
404  }
405 
406  if (m_pixelEndcapElements) {
407  m_pixelEndcapElements->SetRnrState(show);
408  gEve->Redraw3D();
409  }
410 }
411 
413  if (!m_trackerBarrelElements && show) {
414  m_trackerBarrelElements = new TEveElementList("TrackerBarrel");
415 
416  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::TIB);
417  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
418  TEveGeoShape* shape = m_geom->getEveShape(*id);
419  if (!shape)
420  return;
422  m_trackerBarrelElements->AddElement(shape);
423  }
425  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
426  TEveGeoShape* shape = m_geom->getEveShape(*id);
427  if (!shape)
428  return;
429  shape->SetTitle(Form("TrackerBarrel %d", *id));
431  m_trackerBarrelElements->AddElement(shape);
432  }
433 
434  AddElement(m_trackerBarrelElements);
436  }
437 
439  m_trackerBarrelElements->SetRnrState(show);
440  gEve->Redraw3D();
441  }
442 }
443 
445  if (!m_trackerEndcapElements && show) {
446  m_trackerEndcapElements = new TEveElementList("TrackerEndcap");
447 
448  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::TID);
449  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
450  TEveGeoShape* shape = m_geom->getEveShape(*id);
452 
453  if (!shape)
454  return;
455  m_trackerEndcapElements->AddElement(shape);
456  }
458  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
459  TEveGeoShape* shape = m_geom->getEveShape(*id);
460  shape->SetTitle(Form("TrackerEndcap %d", *id));
461  if (!shape)
462  return;
464  m_trackerEndcapElements->AddElement(shape);
465  }
466 
467  AddElement(m_trackerEndcapElements);
469  }
470 
472  m_trackerEndcapElements->SetRnrState(show);
473  gEve->Redraw3D();
474  }
475 }
476 
477 //---------------------------------------------------------
479  if (!m_rpcEndcapElements && show) {
480  m_rpcEndcapElements = new TEveElementList("RpcEndcap");
481 
482  std::vector<RPCDetId> ids;
483  int mxSt = m_geom->versionInfo().haveExtraDet("RE4") ? 4 : 3;
484  for (int region = -1; region <= 1; ++region) {
485  if (region == 0)
486  continue;
487  for (int ring = 2; ring <= 3; ++ring) {
488  for (int station = 1; station <= mxSt; ++station) {
489  int sector = 1;
490  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 1));
491  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 2));
492  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 3));
493  if (ring == 2 && station == 1) { // 2 layers in ring 2 station 1 up
494  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 1));
495  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 2));
496  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 3));
497  }
498  sector = 5;
499  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 1));
500  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 2));
501  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 3));
502 
503  if (ring == 2 && station == 1) { // 2 layers in ring 2 station 1 down
504  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 1));
505  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 2));
506  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 3));
507  }
508  }
509  }
510  }
511 
512  for (std::vector<RPCDetId>::iterator i = ids.begin(); i != ids.end(); ++i) {
513  TEveGeoShape* shape = m_geom->getEveShape(i->rawId());
514  if (!shape)
515  return;
517  m_rpcEndcapElements->AddElement(shape);
518  gEve->AddToListTree(shape, true);
519  }
520 
521  AddElement(m_rpcEndcapElements);
523  }
524 
525  if (m_rpcEndcapElements) {
526  m_rpcEndcapElements->SetRnrState(show);
527  gEve->Redraw3D();
528  }
529 }
530 
531 //______________________________________________________________________________
532 
533 void FWRPZViewGeometry::showGEM(bool show) {
534  // hardcoded gem and me0; need to find better way for different gem geometries
535  if (!m_GEMElements && show) {
536  m_GEMElements = new TEveElementList("GEM");
537 
538  for (Int_t iRegion = GEMDetId::minRegionId; iRegion <= GEMDetId::maxRegionId; iRegion = iRegion + 2) {
539  int mxSt = m_geom->versionInfo().haveExtraDet("GE2") ? 3 : 1;
540 
541  for (Int_t iStation = GEMDetId::minStationId; iStation <= mxSt; ++iStation) {
542  Int_t iRing = 1;
543  for (Int_t iLayer = GEMDetId::minLayerId; iLayer <= GEMDetId::maxLayerId; ++iLayer) {
544  int maxChamber = 36;
545  if (iStation >= 2)
546  maxChamber = 18;
547 
548  for (Int_t iChamber = 1; iChamber <= maxChamber; ++iChamber) {
549  int maxRoll = iChamber % 2 ? 9 : 10;
550  if (iStation == 2)
551  maxRoll = 8;
552  if (iStation == 3)
553  maxRoll = 12;
554 
555  for (Int_t iRoll = GEMDetId::minRollId; iRoll <= maxRoll; ++iRoll) {
556  GEMDetId id(iRegion, iRing, iStation, iLayer, iChamber, iRoll);
557  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
558  if (shape) {
560  m_GEMElements->AddElement(shape);
561  gEve->AddToListTree(shape, true);
562  }
563  }
564  }
565  }
566  }
567  }
568 
569  AddElement(m_GEMElements);
571  }
572  if (m_GEMElements) {
573  m_GEMElements->SetRnrState(show);
574  gEve->Redraw3D();
575  }
576 }
577 
578 void FWRPZViewGeometry::showME0(bool show) {
579  if (!m_ME0Elements && show) {
580  m_ME0Elements = new TEveElementList("ME0");
581 
582  for (Int_t iRegion = ME0DetId::minRegionId; iRegion <= ME0DetId::maxRegionId; iRegion = iRegion + 2) {
583  for (Int_t iLayer = 1; iLayer <= 6; ++iLayer) {
584  for (Int_t iChamber = 1; iChamber <= 18; ++iChamber) {
585  Int_t iRoll = 1;
586  ME0DetId id(iRegion, iLayer, iChamber, iRoll);
587  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
588  if (shape) {
590  m_ME0Elements->AddElement(shape);
591  gEve->AddToListTree(shape, true);
592  }
593  }
594  }
595  }
596 
597  AddElement(m_ME0Elements);
599  }
600  if (m_ME0Elements) {
601  m_ME0Elements->SetRnrState(show);
602  gEve->Redraw3D();
603  }
604 }
605 
606 //-------------------------------------
607 
608 void FWRPZViewGeometry::importNew(TEveElementList* x) {
609  TEveProjected* proj = *BeginProjecteds();
610  proj->GetManager()->SubImportElements(x, proj->GetProjectedAsElement());
611 }
ME0DetId::minRegionId
static const int minRegionId
Definition: ME0DetId.h:63
FWRPZViewGeometry::showGEM
void showGEM(bool)
Definition: FWRPZViewGeometry.cc:533
FWRPZViewGeometry::m_rhoPhiGeo
TEveElementList * m_rhoPhiGeo
Definition: FWRPZViewGeometry.h:70
FWRPZViewGeometry::showTrackerEndcap
void showTrackerEndcap(bool)
Definition: FWRPZViewGeometry.cc:444
FWViewGeometryList::m_geom
const FWGeometry * m_geom
Definition: FWViewGeometryList.h:44
FWGeometry::GeomDetInfo
Definition: FWGeometry.h:119
mps_fire.i
i
Definition: mps_fire.py:355
fireworks::Context
Definition: Context.h:41
TwoPi
const double TwoPi
Definition: CosmicMuonParameters.h:19
FWViewType::EType
EType
Definition: FWViewType.h:31
FWGeometry::versionInfo
const VersionInfo & versionInfo() const
Definition: FWGeometry.h:150
FWGeometry::TID
Definition: FWGeometry.h:47
fireworks::Context::colorManager
FWColorManager * colorManager() const
Definition: Context.h:58
FWViewGeometryList::m_context
const fireworks::Context & m_context
Definition: FWViewGeometryList.h:43
kFWMuonBarrelLineColorIndex
Definition: FWColorManager.h:37
relativeConstraints.station
station
Definition: relativeConstraints.py:67
ME0DetId.h
RPCDetId
Definition: RPCDetId.h:16
FWViewType::kRhoZ
Definition: FWViewType.h:33
FWGeometry::localToGlobal
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
Definition: FWGeometry.cc:497
FWRPZViewGeometry::~FWRPZViewGeometry
~FWRPZViewGeometry() override
Definition: FWRPZViewGeometry.cc:75
FWRPZViewGeometry::estimateProjectionSizeDT
void estimateProjectionSizeDT(const FWGeometry::GeomDetInfo &info, float &, float &, float &, float &)
Definition: FWRPZViewGeometry.cc:272
FWGeometry::IdToInfoItr
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
Definition: FWGeometry.h:137
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
FWRPZViewGeometry::makeCaloOutlineRhoPhi
TEveElement * makeCaloOutlineRhoPhi()
Definition: FWRPZViewGeometry.cc:118
FWColorManager::geomColor
Color_t geomColor(FWGeomColorIndex) const
Definition: FWColorManager.cc:271
DDAxes::x
GEMDetId::minLayerId
static constexpr int32_t minLayerId
Definition: GEMDetId.h:29
makeMuonMisalignmentScenario.endcap
endcap
Definition: makeMuonMisalignmentScenario.py:320
FWRPZViewGeometry::FWRPZViewGeometry
FWRPZViewGeometry(const fireworks::Context &context)
Definition: FWRPZViewGeometry.cc:54
FWRPZViewGeometry::m_trackerBarrelElements
TEveElementList * m_trackerBarrelElements
Definition: FWRPZViewGeometry.h:75
FWRPZViewGeometry::estimateProjectionSize
void estimateProjectionSize(const float *, float &, float &, float &, float &)
Definition: FWRPZViewGeometry.cc:342
CSCDetId.h
FWRPZViewGeometry::m_pixelEndcapElements
TEveElementList * m_pixelEndcapElements
Definition: FWRPZViewGeometry.h:74
FWRPZViewGeometry::m_GEMElements
TEveElementList * m_GEMElements
Definition: FWRPZViewGeometry.h:78
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
FWRPZViewGeometry::showME0
void showME0(bool)
Definition: FWRPZViewGeometry.cc:578
FWRPZViewGeometry::makeShape
TEveGeoShape * makeShape(double, double, double, double)
Definition: FWRPZViewGeometry.cc:244
FWRPZViewGeometry::initStdGeoElements
void initStdGeoElements(const FWViewType::EType id)
Definition: FWRPZViewGeometry.cc:82
FWRPZViewGeometry::makeMuonGeometryRhoPhi
TEveElement * makeMuonGeometryRhoPhi()
Definition: FWRPZViewGeometry.cc:145
fireworks::Context::caloZ2
static float caloZ2(bool offset=true)
Definition: Context.cc:185
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
FWColorManager.h
CSCDetId::minEndcapId
static int minEndcapId()
Definition: CSCDetId.h:219
FWGeometry::Tracker
Definition: FWGeometry.h:33
kFWPixelBarrelColorIndex
Definition: FWColorManager.h:33
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
FWRPZViewGeometry::showPixelEndcap
void showPixelEndcap(bool)
Definition: FWRPZViewGeometry.cc:388
FWGeometry::VersionInfo::haveExtraDet
bool haveExtraDet(const char *) const
Definition: FWGeometry.cc:532
FWRPZViewGeometry::m_rpcEndcapElements
TEveElementList * m_rpcEndcapElements
Definition: FWRPZViewGeometry.h:77
fireworks::Context::caloMaxEta
static double caloMaxEta()
Definition: Context.cc:191
FWGeometry::mapEnd
IdToInfoItr mapEnd() const
Definition: FWGeometry.h:141
OrderedSet.t
t
Definition: OrderedSet.py:90
DTChamberId.h
FWRPZViewGeometry.h
DDAxes::rho
RPCDetId.h
amptDefault_cfi.proj
proj
Definition: amptDefault_cfi.py:13
FWGeometry::isEmpty
bool isEmpty() const
Definition: FWGeometry.cc:28
FWGeometry.h
kFWMuonEndcapLineColorIndex
Definition: FWColorManager.h:38
FWGeometry::TOB
Definition: FWGeometry.h:48
kFWTrackerEndcapColorIndex
Definition: FWColorManager.h:36
fireworks::Context::caloR2
static float caloR2(bool offset=true)
Definition: Context.cc:182
FWRPZViewGeometry::m_ME0Elements
TEveElementList * m_ME0Elements
Definition: FWRPZViewGeometry.h:79
FWRPZViewGeometry::showRpcEndcap
void showRpcEndcap(bool)
Definition: FWRPZViewGeometry.cc:478
FWRPZViewGeometry::importNew
void importNew(TEveElementList *x)
Definition: FWRPZViewGeometry.cc:608
GEMDetId
Definition: GEMDetId.h:17
CSCDetId
Definition: CSCDetId.h:26
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
FWRPZViewGeometry::m_rhoZGeo
TEveElementList * m_rhoZGeo
Definition: FWRPZViewGeometry.h:71
GEMDetId::minRegionId
static constexpr int32_t minRegionId
Definition: GEMDetId.h:19
ME0DetId
Definition: ME0DetId.h:16
CSCDetId::maxEndcapId
static int maxEndcapId()
Definition: CSCDetId.h:220
fwLog.h
FWGeometry::TIB
Definition: FWGeometry.h:46
FWRPZViewGeometry::makeCaloOutlineRhoZ
TEveElement * makeCaloOutlineRhoZ()
Definition: FWRPZViewGeometry.cc:97
kFWPixelEndcapColorIndex
Definition: FWColorManager.h:34
ME0DetId::maxRegionId
static const int maxRegionId
Definition: ME0DetId.h:64
GEMDetId::maxRegionId
static constexpr int32_t maxRegionId
Definition: GEMDetId.h:20
FWGeometry::TEC
Definition: FWGeometry.h:49
FWGeometry::PixelBarrel
Definition: FWGeometry.h:44
alignCSCRings.r
r
Definition: alignCSCRings.py:93
FWRPZViewGeometry::showPixelBarrel
void showPixelBarrel(bool)
Definition: FWRPZViewGeometry.cc:366
GEMDetId.h
type
type
Definition: HCALResponse.h:21
FWRPZViewGeometry::makeMuonGeometryRhoZ
TEveElement * makeMuonGeometryRhoZ()
Definition: FWRPZViewGeometry.cc:173
fireworks::Context::caloZ1
static float caloZ1(bool offset=true)
Definition: Context.cc:183
FWGeometry::getMatchedIds
std::vector< unsigned int > getMatchedIds(Detector det, SubDetector subdet) const
Definition: FWGeometry.cc:251
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
GEMDetId::maxLayerId
static constexpr int32_t maxLayerId
Definition: GEMDetId.h:31
FWRPZViewGeometry::m_trackerEndcapElements
TEveElementList * m_trackerEndcapElements
Definition: FWRPZViewGeometry.h:76
relativeConstraints.ring
ring
Definition: relativeConstraints.py:68
HLT_2018_cff.region
region
Definition: HLT_2018_cff.py:81479
GEMDetId::minRollId
static constexpr int32_t minRollId
Definition: GEMDetId.h:32
kFWTrackerBarrelColorIndex
Definition: FWColorManager.h:35
FWViewGeometryList
Definition: FWViewGeometryList.h:34
GEMDetId::minStationId
static constexpr int32_t minStationId
Definition: GEMDetId.h:24
FWRPZViewGeometry::m_pixelBarrelElements
TEveElementList * m_pixelBarrelElements
Definition: FWRPZViewGeometry.h:73
DTRecHitClients_cfi.local
local
Definition: DTRecHitClients_cfi.py:10
DTChamberId
Definition: DTChamberId.h:14
FWRPZViewGeometry::showTrackerBarrel
void showTrackerBarrel(bool)
Definition: FWRPZViewGeometry.cc:412
fireworks
Definition: FWTauProxyBuilderBase.h:35
FWGeometry::PixelEndcap
Definition: FWGeometry.h:45
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6
FWGeometry::getEveShape
TEveGeoShape * getEveShape(unsigned int id) const
Definition: FWGeometry.cc:321
fireworks::Context::caloR1
static float caloR1(bool offset=true)
Definition: Context.cc:180
FWViewGeometryList::m_colorComp
TEveCompound * m_colorComp[kFWGeomColorSize]
Definition: FWViewGeometryList.h:46
Context.h
FWViewGeometryList::addToCompound
void addToCompound(TEveElement *el, FWGeomColorIndex idx, bool applyTransp=true) const
Definition: FWViewGeometryList.cc:48
FWGeometry::find
IdToInfoItr find(unsigned int) const
Definition: FWGeometry.cc:517