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
 

Private Attributes

dd4hep::Solid solid_
 

Detailed Description

Definition at line 31 of file DDFilteredView.h.

Constructor & Destructor Documentation

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

Definition at line 32 of file DDFilteredView.h.

32 : solid_(s) {}
dd4hep::Solid solid_

Member Function Documentation

const std::vector< double > DDSolid::parameters ( void  ) const
dd4hep::Solid cms::DDSolid::solid ( void  ) const
inline

Definition at line 33 of file DDFilteredView.h.

References parameters(), solid_, and solidA().

Referenced by cms::DDFilteredView::isA().

33 { return solid_; }
dd4hep::Solid solid_
dd4hep::Solid DDSolid::solidA ( void  ) const

Definition at line 16 of file DDFilteredView.cc.

Referenced by solid().

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

Member Data Documentation

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

Definition at line 38 of file DDFilteredView.h.

Referenced by solid().