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) {}
dd4hep::Solid solid_

Member Function Documentation

◆ parameters()

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

Definition at line 39 of file DDFilteredView.cc.

References DDLogicalPart::solid().

39 { return solid().dimensions(); }
dd4hep::Solid solid() const

◆ solid()

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

Definition at line 35 of file DDFilteredView.h.

References solid_.

35 { return solid_; }
dd4hep::Solid solid_

◆ solidA()

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

Definition at line 17 of file DDFilteredView.cc.

References or.

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

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 }
dd4hep::Solid solidA() const
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
dd4hep::Solid solid_

◆ solidB()

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

Definition at line 28 of file DDFilteredView.cc.

References or.

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 }
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
dd4hep::Solid solidB() const
dd4hep::Solid solid_

Member Data Documentation

◆ solid_

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

Definition at line 41 of file DDFilteredView.h.

Referenced by solid().