CMS 3D CMS Logo

Public Member Functions

DDI::TruncTubs Class Reference

#include <TruncTubs.h>

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

List of all members.

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 ()

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 5 of file TruncTubs.cc.

References DDI::Solid::p_.

  : Solid(ddtrunctubs)
{
  p_.push_back(zHalf);
  p_.push_back(rIn);
  p_.push_back(rOut);
  p_.push_back(startPhi);
  p_.push_back(deltaPhi);  
  p_.push_back(cutAtStart);
  p_.push_back(cutAtDelta);
  p_.push_back(cutInside);
}

Member Function Documentation

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

Reimplemented from DDI::Solid.

Definition at line 25 of file TruncTubs.cc.

{
  os << " zHalf=" << p_[0]/cm 
     << "cm rIn=" << p_[1]/cm
     << "cm rOut=" << p_[2]/cm
     << "cm startPhi=" << p_[3]/deg
     << "deg deltaPhi=" << p_[4]/deg
     << "deg cutAtStart=" << p_[5]/cm
     << "cm cutAtDelta=" << p_[6]/cm
     << "cm cutInside=" << p_[7];
}
double DDI::TruncTubs::volume ( ) [inline]

Definition at line 20 of file TruncTubs.h.

{ return -1; }