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 "TEveGeoShape.h"
27 #include "TEveManager.h"
28 #include "TEveProjectionManager.h"
29 
35 
41 
43 
44 //
45 // constants, enums and typedefs
46 //
47 
48 //
49 // static data member definitions
50 //
51 
52 //
53 // constructors and destructor
54 //
57 
58  m_rhoPhiGeo(nullptr),
59  m_rhoZGeo(nullptr),
60 
61  m_pixelBarrelElements(nullptr),
62  m_pixelEndcapElements(nullptr),
63  m_trackerBarrelElements(nullptr),
64  m_trackerEndcapElements(nullptr),
65  m_rpcEndcapElements(nullptr),
66  m_GEMElements(nullptr),
67  m_ME0Elements(nullptr),
68  m_mtdBarrelElements(nullptr),
69  m_mtdEndcapElements(nullptr) {
70  SetElementName("RPZGeomShared");
71 }
72 
73 // FWRPZViewGeometry::FWRPZViewGeometry(const FWRPZViewGeometry& rhs)
74 // {
75 // // do actual copying here;
76 // }
77 
79  m_rhoPhiGeo->DecDenyDestroy();
80  m_rhoZGeo->DecDenyDestroy();
81 }
82 
83 //______________________________________________________________________________
84 
86  if (m_geom->isEmpty())
87  return;
88 
89  if (type == FWViewType::kRhoZ) {
90  AddElement(makeMuonGeometryRhoZ());
91  AddElement(makeCaloOutlineRhoZ());
92  } else {
93  AddElement(makeMuonGeometryRhoPhi());
94  AddElement(makeCaloOutlineRhoPhi());
95  }
96 }
97 
98 //______________________________________________________________________________
99 
101  using namespace fireworks;
102 
103  float ri = m_context.caloZ2() * tan(2 * atan(exp(-m_context.caloMaxEta())));
104 
105  TEveStraightLineSet* el = new TEveStraightLineSet("TrackerRhoZoutline");
106  el->SetPickable(kFALSE);
108 
109  el->AddLine(0, m_context.caloR1(), -m_context.caloZ1(), 0, m_context.caloR1(), m_context.caloZ1());
110  el->AddLine(0, -m_context.caloR1(), m_context.caloZ1(), 0, -m_context.caloR1(), -m_context.caloZ1());
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  el->AddLine(0, -m_context.caloR2(), -m_context.caloZ2(), 0, -ri, -m_context.caloZ2());
116  el->AddLine(0, ri, -m_context.caloZ2(), 0, m_context.caloR2(), -m_context.caloZ2());
117 
118  return el;
119 }
120 
122  TEveStraightLineSet* el = new TEveStraightLineSet("TrackerRhoPhi");
124 
126  const unsigned int nSegments = 100;
127  const double r = m_context.caloR1();
128  for (unsigned int i = 1; i <= nSegments; ++i)
129  el->AddLine(r * sin(TMath::TwoPi() / nSegments * (i - 1)),
130  r * cos(TMath::TwoPi() / nSegments * (i - 1)),
131  0,
132  r * sin(TMath::TwoPi() / nSegments * i),
133  r * cos(TMath::TwoPi() / nSegments * i),
134  0);
135 
136  TEvePointSet* ref = new TEvePointSet("reference");
137  ref->SetTitle("(0,0,0)");
138  ref->SetMarkerStyle(4);
139  ref->SetMarkerColor(kWhite);
140  ref->SetNextPoint(0., 0., 0.);
141  el->AddElement(ref);
142 
143  return el;
144 }
145 
146 //______________________________________________________________________________
147 
149  Int_t iWheel = 0;
150 
151  // rho-phi view
152  TEveCompound* container = new TEveCompound("MuonRhoPhi");
153 
154  for (Int_t iStation = 1; iStation <= 4; ++iStation) {
155  for (Int_t iSector = 1; iSector <= 14; ++iSector) {
156  if (iStation < 4 && iSector > 12)
157  continue;
158  DTChamberId id(iWheel, iStation, iSector);
159  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
160  if (shape) {
161  shape->SetMainColor(m_colorComp[kFWMuonBarrelLineColorIndex]->GetMainColor());
163  container->AddElement(shape);
164  }
165  }
166  }
167  return container;
168 }
169 namespace {
170 
171  //void addLibe
172 
173 }
174 //______________________________________________________________________________
175 
177  TEveElementList* container = new TEveElementList("MuonRhoZ");
178 
179  {
180  TEveCompound* dtContainer = new TEveCompound("DT");
181  for (Int_t iWheel = -2; iWheel <= 2; ++iWheel) {
182  for (Int_t iStation = 1; iStation <= 4; ++iStation) {
183  float min_rho(1000), max_rho(0), min_z(2000), max_z(-2000);
184 
185  // This will give us a quarter of DTs
186  // which is enough for our projection
187  for (Int_t iSector = 1; iSector <= 4; ++iSector) {
188  DTChamberId id(iWheel, iStation, iSector);
189  unsigned int rawid = id.rawId();
190  FWGeometry::IdToInfoItr det = m_geom->find(rawid);
191  if (det == m_geom->mapEnd())
192  return container;
193  estimateProjectionSizeDT(*det, min_rho, max_rho, min_z, max_z);
194  }
195  if (min_rho > max_rho || min_z > max_z)
196  continue;
197  TEveElement* se = makeShape(min_rho, max_rho, min_z, max_z);
199  dtContainer->AddElement(se);
200  se = makeShape(-max_rho, -min_rho, min_z, max_z);
202  dtContainer->AddElement(se);
203  }
204  }
205 
206  container->AddElement(dtContainer);
207  }
208  {
209  // addcsc
210  TEveCompound* cscContainer = new TEveCompound("CSC");
211  std::vector<CSCDetId> ids;
213  for (int station = 1; station <= 4; ++station) {
214  ids.push_back(CSCDetId(endcap, station, 2, 10, 0)); //outer ring up
215  ids.push_back(CSCDetId(endcap, station, 2, 11, 0)); //outer ring up
216 
217  ids.push_back(CSCDetId(endcap, station, 2, 28, 0)); //outer ring down
218  ids.push_back(CSCDetId(endcap, station, 2, 29, 0)); //outer ring down
219 
220  ids.push_back(CSCDetId(endcap, station, 1, 5, 0)); //inner ring up
221  ids.push_back(CSCDetId(endcap, station, 1, 6, 0)); //inner ring up
222 
223  int off = (station == 1) ? 10 : 0;
224  ids.push_back(CSCDetId(endcap, station, 1, 15 + off, 0)); //inner ring down
225  ids.push_back(CSCDetId(endcap, station, 1, 16 + off, 0)); //inner ring down
226  }
227  ids.push_back(CSCDetId(endcap, 1, 3, 10, 0)); // ring 3 down
228  ids.push_back(CSCDetId(endcap, 1, 3, 28, 0)); // ring 3 down
229  }
230  for (std::vector<CSCDetId>::iterator i = ids.begin(); i != ids.end(); ++i) {
231  unsigned int rawid = i->rawId();
232  TEveGeoShape* shape = m_geom->getEveShape(rawid);
233  if (!shape)
234  return cscContainer;
236  shape->SetName(Form(" e:%d r:%d s:%d chamber %d", i->endcap(), i->ring(), i->station(), i->chamber()));
237  cscContainer->AddElement(shape);
238  }
239  container->AddElement(cscContainer);
240  }
241 
242  return container;
243 }
244 
245 //______________________________________________________________________________
246 
247 TEveGeoShape* FWRPZViewGeometry::makeShape(double min_rho, double max_rho, double min_z, double max_z) {
248  TEveTrans t;
249  t(1, 1) = 1;
250  t(1, 2) = 0;
251  t(1, 3) = 0;
252  t(2, 1) = 0;
253  t(2, 2) = 1;
254  t(2, 3) = 0;
255  t(3, 1) = 0;
256  t(3, 2) = 0;
257  t(3, 3) = 1;
258  t(1, 4) = 0;
259  t(2, 4) = (min_rho + max_rho) / 2;
260  t(3, 4) = (min_z + max_z) / 2;
261 
262  TEveGeoShape* shape = new TEveGeoShape;
263  shape->SetTransMatrix(t.Array());
264 
265  shape->SetRnrSelf(kTRUE);
266  shape->SetRnrChildren(kTRUE);
267  TGeoBBox* box = new TGeoBBox(0, (max_rho - min_rho) / 2, (max_z - min_z) / 2);
268  shape->SetShape(box);
269 
270  return shape;
271 }
272 
273 //______________________________________________________________________________
274 
276  const FWGeometry::GeomDetInfo& info, float& min_rho, float& max_rho, float& min_z, float& max_z) {
277  // we will test 5 points on both sides ( +/- z)
278  float local[3], global[3];
279 
280  float dX = info.shape[1];
281  float dY = info.shape[2];
282  float dZ = info.shape[3];
283 
284  local[0] = 0;
285  local[1] = 0;
286  local[2] = dZ;
287  m_geom->localToGlobal(info, local, global);
288  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
289 
290  local[0] = dX;
291  local[1] = dY;
292  local[2] = dZ;
293  m_geom->localToGlobal(info, local, global);
294  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
295 
296  local[0] = -dX;
297  local[1] = dY;
298  local[2] = dZ;
299  m_geom->localToGlobal(info, local, global);
300  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
301 
302  local[0] = dX;
303  local[1] = -dY;
304  local[2] = dZ;
305  m_geom->localToGlobal(info, local, global);
306  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
307 
308  local[0] = -dX;
309  local[1] = -dY;
310  local[2] = dZ;
311  m_geom->localToGlobal(info, local, global);
312  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
313 
314  local[0] = 0;
315  local[1] = 0;
316  local[2] = -dZ;
317  m_geom->localToGlobal(info, local, global);
318  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
319 
320  local[0] = dX;
321  local[1] = dY;
322  local[2] = -dZ;
323  m_geom->localToGlobal(info, local, global);
324  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
325 
326  local[0] = -dX;
327  local[1] = dY;
328  local[2] = -dZ;
329  m_geom->localToGlobal(info, local, global);
330  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
331 
332  local[0] = dX;
333  local[1] = -dY;
334  local[2] = -dZ;
335  m_geom->localToGlobal(info, local, global);
336  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
337 
338  local[0] = -dX;
339  local[1] = -dY;
340  local[2] = -dZ;
341  m_geom->localToGlobal(info, local, global);
342  estimateProjectionSize(global, min_rho, max_rho, min_z, max_z);
343 }
344 
346  const float* global, float& min_rho, float& max_rho, float& min_z, float& max_z) {
347  double rho = sqrt(global[0] * global[0] + global[1] * global[1]);
348  if (min_rho > rho)
349  min_rho = rho;
350  if (max_rho < rho)
351  max_rho = rho;
352  if (min_z > global[2])
353  min_z = global[2];
354  if (max_z < global[2])
355  max_z = global[2];
356 }
357 
358 // ATODO:: check white vertex -> shouldn't be relative to background
359 // when detruction ?
360 
361 // ATODO why color is not set in 3D original, why cast to polygonsetprojected after projected ????
362 // is geom color dynamic --- independent of projection manager
363 
364 // NOTE geomtry MuonRhoZAdanced renamed to MuonRhoZ
365 
366 //==============================================================================
367 //==============================================================================
368 
370  if (!m_pixelBarrelElements && show) {
371  m_pixelBarrelElements = new TEveElementList("PixelBarrel");
372  AddElement(m_pixelBarrelElements);
373  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::PixelBarrel);
374  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
375  TEveGeoShape* shape = m_geom->getEveShape(*id);
376  if (!shape)
377  return;
378  shape->SetTitle(Form("PixelBarrel %d", *id));
380  m_pixelBarrelElements->AddElement(shape);
381  }
383  }
384 
385  if (m_pixelBarrelElements) {
386  m_pixelBarrelElements->SetRnrState(show);
387  gEve->Redraw3D();
388  }
389 }
390 
392  if (!m_pixelEndcapElements && show) {
393  m_pixelEndcapElements = new TEveElementList("PixelEndcap");
394 
395  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::PixelEndcap);
396  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
397  TEveGeoShape* shape = m_geom->getEveShape(*id);
398  if (!shape)
399  return;
400  shape->SetTitle(Form("PixelEndCap %d", *id));
402  m_pixelEndcapElements->AddElement(shape);
403  }
404 
405  AddElement(m_pixelEndcapElements);
407  }
408 
409  if (m_pixelEndcapElements) {
410  m_pixelEndcapElements->SetRnrState(show);
411  gEve->Redraw3D();
412  }
413 }
414 
416  if (!m_trackerBarrelElements && show) {
417  m_trackerBarrelElements = new TEveElementList("TrackerBarrel");
418 
419  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::TIB);
420  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
421  TEveGeoShape* shape = m_geom->getEveShape(*id);
422  if (!shape)
423  return;
425  m_trackerBarrelElements->AddElement(shape);
426  }
428  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
429  TEveGeoShape* shape = m_geom->getEveShape(*id);
430  if (!shape)
431  return;
432  shape->SetTitle(Form("TrackerBarrel %d", *id));
434  m_trackerBarrelElements->AddElement(shape);
435  }
436 
437  AddElement(m_trackerBarrelElements);
439  }
440 
442  m_trackerBarrelElements->SetRnrState(show);
443  gEve->Redraw3D();
444  }
445 }
446 
448  if (!m_trackerEndcapElements && show) {
449  m_trackerEndcapElements = new TEveElementList("TrackerEndcap");
450 
451  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Tracker, FWGeometry::TID);
452  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
453  TEveGeoShape* shape = m_geom->getEveShape(*id);
455 
456  if (!shape)
457  return;
458  m_trackerEndcapElements->AddElement(shape);
459  }
461  for (std::vector<unsigned int>::const_iterator id = ids.begin(); id != ids.end(); ++id) {
462  TEveGeoShape* shape = m_geom->getEveShape(*id);
463  shape->SetTitle(Form("TrackerEndcap %d", *id));
464  if (!shape)
465  return;
467  m_trackerEndcapElements->AddElement(shape);
468  }
469 
470  AddElement(m_trackerEndcapElements);
472  }
473 
475  m_trackerEndcapElements->SetRnrState(show);
476  gEve->Redraw3D();
477  }
478 }
479 
480 //---------------------------------------------------------
482  if (!m_rpcEndcapElements && show) {
483  m_rpcEndcapElements = new TEveElementList("RpcEndcap");
484 
485  std::vector<RPCDetId> ids;
486  int mxSt = m_geom->versionInfo().haveExtraDet("RE4") ? 4 : 3;
487  for (int region = -1; region <= 1; ++region) {
488  if (region == 0)
489  continue;
490  for (int ring = 2; ring <= 3; ++ring) {
491  for (int station = 1; station <= mxSt; ++station) {
492  int sector = 1;
493  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 1));
494  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 2));
495  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 3));
496  if (ring == 2 && station == 1) { // 2 layers in ring 2 station 1 up
497  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 1));
498  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 2));
499  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 3));
500  }
501  sector = 5;
502  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 1));
503  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 2));
504  ids.push_back(RPCDetId(region, ring, station, sector, 1, 1, 3));
505 
506  if (ring == 2 && station == 1) { // 2 layers in ring 2 station 1 down
507  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 1));
508  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 2));
509  ids.push_back(RPCDetId(region, ring, station, sector, 1, 2, 3));
510  }
511  }
512  }
513  }
514 
515  for (std::vector<RPCDetId>::iterator i = ids.begin(); i != ids.end(); ++i) {
516  TEveGeoShape* shape = m_geom->getEveShape(i->rawId());
517  if (!shape)
518  return;
520  m_rpcEndcapElements->AddElement(shape);
521  gEve->AddToListTree(shape, true);
522  }
523 
524  AddElement(m_rpcEndcapElements);
526  }
527 
528  if (m_rpcEndcapElements) {
529  m_rpcEndcapElements->SetRnrState(show);
530  gEve->Redraw3D();
531  }
532 }
533 
534 //______________________________________________________________________________
535 
536 void FWRPZViewGeometry::showGEM(bool show) {
537  // hardcoded gem and me0; need to find better way for different gem geometries
538  if (!m_GEMElements && show) {
539  m_GEMElements = new TEveElementList("GEM");
540 
541  for (Int_t iRegion = GEMDetId::minRegionId; iRegion <= GEMDetId::maxRegionId; iRegion = iRegion + 2) {
542  int iStation = 1;
543  int iRing = 1;
544  int iLayer = 1;
545 
546  int carr[4] = {10, 11, 29, 30};
547  for (int i = 0; i < 4; ++i) {
548  int iChamber = carr[i];
549  int iRoll = 0;
550  try {
551  GEMDetId id(iRegion, iRing, iStation, iLayer, iChamber, iRoll);
552  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
553  if (shape) {
555  m_GEMElements->AddElement(shape);
556  gEve->AddToListTree(shape, true);
557  }
558  } catch (cms::Exception& e) {
559  fwLog(fwlog::kError) << "FWRPZViewGeomtery " << e << std::endl;
560  }
561  }
562  }
563 
564  AddElement(m_GEMElements);
566  }
567 
568  if (m_GEMElements) {
569  m_GEMElements->SetRnrState(show);
570  gEve->Redraw3D();
571  }
572 }
573 
574 void FWRPZViewGeometry::showME0(bool show) {
575  if (!m_ME0Elements && show) {
576  m_ME0Elements = new TEveElementList("ME0");
577 
578  for (Int_t iRegion = ME0DetId::minRegionId; iRegion <= ME0DetId::maxRegionId; iRegion = iRegion + 2) {
579  for (Int_t iLayer = 1; iLayer <= 6; ++iLayer) {
580  for (Int_t iChamber = 1; iChamber <= 18; ++iChamber) {
581  Int_t iRoll = 1;
582  ME0DetId id(iRegion, iLayer, iChamber, iRoll);
583  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
584  if (shape) {
586  m_ME0Elements->AddElement(shape);
587  gEve->AddToListTree(shape, true);
588  }
589  }
590  }
591  }
592 
593  AddElement(m_ME0Elements);
595  }
596  if (m_ME0Elements) {
597  m_ME0Elements->SetRnrState(show);
598  gEve->Redraw3D();
599  }
600 }
601 
602 //______________________________________________________________________________
603 
605  if (!m_mtdBarrelElements && show) {
606  m_mtdBarrelElements = new TEveElementList("MtdBarrel");
607 
608  std::vector<unsigned int> ids = m_geom->getMatchedIds(FWGeometry::Forward, FWGeometry::PixelBarrel);
609  for (std::vector<unsigned int>::const_iterator mtdId = ids.begin(); mtdId != ids.end(); ++mtdId) {
610  MTDDetId id(*mtdId);
611  if (id.mtdSubDetector() != MTDDetId::MTDType::BTL)
612  continue;
613 
614  TEveGeoShape* shape = m_geom->getEveShape(id.rawId());
615  shape->SetTitle(Form("MTD barrel %d", id.rawId()));
616 
618  m_mtdBarrelElements->AddElement(shape);
619  }
620 
621  AddElement(m_mtdBarrelElements);
623  }
624 
625  if (m_mtdBarrelElements) {
626  m_mtdBarrelElements->SetRnrState(show);
627  gEve->Redraw3D();
628  }
629 }
630 
632  if (!m_mtdEndcapElements && show) {
633  m_mtdEndcapElements = new TEveElementList("MtdEndcap");
634 
635  TEveElement* disk1ZposUp =
638  m_mtdEndcapElements->AddElement(disk1ZposUp);
639  TEveElement* disk1ZposDw =
642  m_mtdEndcapElements->AddElement(disk1ZposDw);
643 
644  TEveElement* disk2ZposUp =
647  m_mtdEndcapElements->AddElement(disk2ZposUp);
648  TEveElement* disk2ZposDw =
651  m_mtdEndcapElements->AddElement(disk2ZposDw);
652 
653  TEveElement* disk1ZnegUp =
656  m_mtdEndcapElements->AddElement(disk1ZnegUp);
657  TEveElement* disk1ZnegDw =
660  m_mtdEndcapElements->AddElement(disk1ZnegDw);
661 
662  TEveElement* disk2ZnegUp =
665  m_mtdEndcapElements->AddElement(disk2ZnegUp);
666  TEveElement* disk2ZnegDw =
669  m_mtdEndcapElements->AddElement(disk2ZnegDw);
670 
671  AddElement(m_mtdEndcapElements);
673  }
674 
675  if (m_mtdEndcapElements) {
676  m_mtdEndcapElements->SetRnrState(show);
677  gEve->Redraw3D();
678  }
679 }
680 
681 //-------------------------------------
682 
683 void FWRPZViewGeometry::importNew(TEveElementList* x) {
684  TEveProjected* proj = *BeginProjecteds();
685  proj->GetManager()->SubImportElements(x, proj->GetProjectedAsElement());
686 }
const double TwoPi
~FWRPZViewGeometry() override
TEveElementList * m_pixelBarrelElements
static const TGPicture * info(bool iBackgroundIsBlack)
static float mtdEtlZ1(const unsigned int &disk_number=1)
Definition: Context.cc:202
FWRPZViewGeometry(const fireworks::Context &context)
TEveCompound * m_colorComp[kFWGeomColorSize]
std::vector< unsigned int > getMatchedIds(Detector det, SubDetector subdet) const
Definition: FWGeometry.cc:254
static int minEndcapId()
Definition: CSCDetId.h:234
void estimateProjectionSizeDT(const FWGeometry::GeomDetInfo &info, float &, float &, float &, float &)
static constexpr int minRegionId
Definition: ME0DetId.h:63
static float mtdEtlZ2(const unsigned int &disk_number=1)
Definition: Context.cc:205
TEveElementList * m_GEMElements
TEveElementList * m_rhoPhiGeo
TEveElement * makeCaloOutlineRhoPhi()
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
static float caloZ2(bool offset=true)
Definition: Context.cc:192
static constexpr int32_t maxRegionId
Definition: GEMDetId.h:21
bool haveExtraDet(const char *) const
Definition: FWGeometry.cc:507
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
IdToInfoItr find(unsigned int) const
Definition: FWGeometry.cc:492
const VersionInfo & versionInfo() const
Definition: FWGeometry.h:151
TEveElementList * m_rpcEndcapElements
Color_t geomColor(FWGeomColorIndex) const
TEveGeoShape * makeShape(double, double, double, double)
void initStdGeoElements(const FWViewType::EType id)
static float caloR2(bool offset=true)
Definition: Context.cc:189
TEveElement * makeMuonGeometryRhoPhi()
void importNew(TEveElementList *x)
TEveElementList * m_trackerBarrelElements
void estimateProjectionSize(const float *, float &, float &, float &, float &)
TEveElementList * m_pixelEndcapElements
T sqrt(T t)
Definition: SSEVec.h:19
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
static int maxEndcapId()
Definition: CSCDetId.h:235
static float caloR1(bool offset=true)
Definition: Context.cc:187
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
const FWGeometry * m_geom
TEveElementList * m_mtdBarrelElements
TEveElementList * m_rhoZGeo
TEveElementList * m_ME0Elements
float dX(const MatchPair &match)
TEveGeoShape * getEveShape(unsigned int id) const
Definition: FWGeometry.cc:317
static float mtdEtlR2()
Definition: Context.cc:201
bool isEmpty() const
Definition: FWGeometry.cc:31
#define fwLog(_level_)
Definition: fwLog.h:45
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
Definition: FWGeometry.cc:472
TEveElement * makeCaloOutlineRhoZ()
void showTrackerBarrel(bool)
TEveElementList * m_trackerEndcapElements
void addToCompound(TEveElement *el, FWGeomColorIndex idx, bool applyTransp=true) const
TEveElement * makeMuonGeometryRhoZ()
static double caloMaxEta()
Definition: Context.cc:198
IdToInfoItr mapEnd() const
Definition: FWGeometry.h:142
static float caloZ1(bool offset=true)
Definition: Context.cc:190
static constexpr int maxRegionId
Definition: ME0DetId.h:64
void showTrackerEndcap(bool)
TEveElementList * m_mtdEndcapElements
static float mtdEtlR1()
Definition: Context.cc:200
const fireworks::Context & m_context
std::vector< FWGeometry::GeomDetInfo >::const_iterator IdToInfoItr
Definition: FWGeometry.h:138
FWColorManager * colorManager() const
Definition: Context.h:58
static constexpr int32_t minRegionId
Definition: GEMDetId.h:20
float dY(const MatchPair &match)