CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
cms::DDSolid Struct Reference

#include <DDFilteredView.h>

Public Member Functions

 DDSolid (dd4hep::Solid s)
 
const std::vector< double > parameters () const
 
dd4hep::Solid solid () const
 
dd4hep::Solid solidA () const
 
dd4hep::Solid solidB () const
 

Private Attributes

dd4hep::Solid solid_
 

Detailed Description

Definition at line 33 of file DDFilteredView.h.

Constructor & Destructor Documentation

◆ DDSolid()

cms::DDSolid::DDSolid ( dd4hep::Solid  s)
inlineexplicit

Definition at line 34 of file DDFilteredView.h.

34 : solid_(s) {}

Member Function Documentation

◆ parameters()

const std::vector< double > DDSolid::parameters ( void  ) const

Definition at line 39 of file DDFilteredView.cc.

39 { return solid().dimensions(); }

References DDLogicalPart::solid().

◆ solid()

dd4hep::Solid cms::DDSolid::solid ( void  ) const
inline

Definition at line 35 of file DDFilteredView.h.

35 { return solid_; }

References solid_.

◆ solidA()

dd4hep::Solid DDSolid::solidA ( void  ) const

Definition at line 17 of file DDFilteredView.cc.

17  {
18  if (dd4hep::isA<dd4hep::SubtractionSolid>(solid_) or dd4hep::isA<dd4hep::UnionSolid>(solid_) or
19  dd4hep::isA<dd4hep::IntersectionSolid>(solid_)) {
20  const TGeoCompositeShape* sh = (const TGeoCompositeShape*)solid_.ptr();
21  const TGeoBoolNode* boolean = sh->GetBoolNode();
22  TGeoShape* solidA = boolean->GetLeftShape();
23  return dd4hep::Solid(solidA);
24  }
25  return solid_;
26 }

References or.

Referenced by CSCGeometryParsFromDD::build(), GEMGeometryBuilder::buildChamber(), and GEMGeometryBuilder::buildSuperChamber().

◆ solidB()

dd4hep::Solid DDSolid::solidB ( void  ) const

Definition at line 28 of file DDFilteredView.cc.

28  {
29  if (dd4hep::isA<dd4hep::SubtractionSolid>(solid_) or dd4hep::isA<dd4hep::UnionSolid>(solid_) or
30  dd4hep::isA<dd4hep::IntersectionSolid>(solid_)) {
31  const TGeoCompositeShape* sh = static_cast<const TGeoCompositeShape*>(solid_.ptr());
32  const TGeoBoolNode* boolean = sh->GetBoolNode();
33  TGeoShape* solidB = boolean->GetRightShape();
34  return dd4hep::Solid(solidB);
35  }
36  return solid_;
37 }

References or.

Member Data Documentation

◆ solid_

dd4hep::Solid cms::DDSolid::solid_
private

Definition at line 41 of file DDFilteredView.h.

Referenced by solid().

cms::DDSolid::solidA
dd4hep::Solid solidA() const
Definition: DDFilteredView.cc:17
alignCSCRings.s
s
Definition: alignCSCRings.py:92
cms::DDSolid::solidB
dd4hep::Solid solidB() const
Definition: DDFilteredView.cc:28
or
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
Definition: Activities.doc:12
cms::DDSolid::solid_
dd4hep::Solid solid_
Definition: DDFilteredView.h:41
cms::DDSolid::solid
dd4hep::Solid solid() const
Definition: DDFilteredView.h:35