CMS 3D CMS Logo

List of all members | Public Member Functions
DDI::CutTubs Class Reference

#include <CutTubs.h>

Inheritance diagram for DDI::CutTubs:
DDI::Solid

Public Member Functions

 CutTubs (double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double lx, double ly, double lz, double tx, double ty, double tz)
 
void stream (std::ostream &os) const
 
double volume () const
 
- Public Member Functions inherited from DDI::Solid
const std::vector< double > & parameters () const
 
void setParameters (std::vector< double > const &p)
 
DDSolidShape shape () const
 
 Solid ()
 
 Solid (DDSolidShape shape)
 
virtual ~Solid ()
 

Additional Inherited Members

- Protected Attributes inherited from DDI::Solid
std::vector< double > p_
 
DDSolidShape shape_
 

Detailed Description

Definition at line 9 of file CutTubs.h.

Constructor & Destructor Documentation

DDI::CutTubs::CutTubs ( double  zHalf,
double  rIn,
double  rOut,
double  startPhi,
double  deltaPhi,
double  lx,
double  ly,
double  lz,
double  tx,
double  ty,
double  tz 
)

Definition at line 12 of file CutTubs.cc.

References DDI::Solid::p_.

18  : Solid(ddcuttubs)
19 {
20  p_.push_back(zhalf);
21  p_.push_back(rIn);
22  p_.push_back(rOut);
23  p_.push_back(startPhi);
24  p_.push_back(deltaPhi);
25  p_.push_back(lx);
26  p_.push_back(ly);
27  p_.push_back(lz);
28  p_.push_back(tx);
29  p_.push_back(ty);
30  p_.push_back(tz);
31 }
Solid()
Definition: Solid.h:14
std::vector< double > p_
Definition: Solid.h:32

Member Function Documentation

void DDI::CutTubs::stream ( std::ostream &  os) const
virtual

Reimplemented from DDI::Solid.

Definition at line 33 of file CutTubs.cc.

References DDI::Solid::p_.

Referenced by volume().

34 {
35  os << " zhalf=" << p_[0]/cm
36  << " rIn=" << p_[1]/cm
37  << " rOut=" << p_[2]/cm
38  << " startPhi=" << p_[3]/deg
39  << " deltaPhi=" << p_[4]/deg
40  << " Outside Normal at -z (" << p_[5] << "," << p_[6] << "," << p_[7] << ")"
41  << " Outside Normal at +z (" << p_[8] << "," << p_[9] << "," << p_[10] << ")";
42 }
std::vector< double > p_
Definition: Solid.h:32
double DDI::CutTubs::volume ( void  ) const
inlinevirtual

Reimplemented from DDI::Solid.

Definition at line 19 of file CutTubs.h.

References stream().

19 { return -1; }