CMS 3D CMS Logo

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

#include <TruncTubs.h>

Inheritance diagram for DDI::TruncTubs:
DDI::Solid

Public Member Functions

void stream (std::ostream &os) const
 
 TruncTubs (double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
 
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 TruncTubs.h.

Constructor & Destructor Documentation

DDI::TruncTubs::TruncTubs ( double  zHalf,
double  rIn,
double  rOut,
double  startPhi,
double  deltaPhi,
double  cutAtStart,
double  cutAtDelta,
bool  cutInside 
)

Definition at line 10 of file TruncTubs.cc.

References DDI::Solid::p_.

18 {
19  p_.push_back(zHalf);
20  p_.push_back(rIn);
21  p_.push_back(rOut);
22  p_.push_back(startPhi);
23  p_.push_back(deltaPhi);
24  p_.push_back(cutAtStart);
25  p_.push_back(cutAtDelta);
26  p_.push_back(cutInside);
27 }
Solid()
Definition: Solid.h:14
std::vector< double > p_
Definition: Solid.h:32

Member Function Documentation

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

Reimplemented from DDI::Solid.

Definition at line 30 of file TruncTubs.cc.

References DDI::Solid::p_.

Referenced by volume().

31 {
32  os << " zHalf=" << p_[0]/cm
33  << "cm rIn=" << p_[1]/cm
34  << "cm rOut=" << p_[2]/cm
35  << "cm startPhi=" << p_[3]/deg
36  << "deg deltaPhi=" << p_[4]/deg
37  << "deg cutAtStart=" << p_[5]/cm
38  << "cm cutAtDelta=" << p_[6]/cm
39  << "cm cutInside=" << p_[7];
40 }
std::vector< double > p_
Definition: Solid.h:32
double DDI::TruncTubs::volume ( void  ) const
inlinevirtual

Reimplemented from DDI::Solid.

Definition at line 20 of file TruncTubs.h.

References stream().

20 { return -1; }