#include <DetectorDescription/Core/src/PseudoTrap.h>
Public Member Functions | |
PseudoTrap (double x1, double x2, double y1, double y2, double z, double radius, bool minusZ) | |
void | stream (std::ostream &os) const |
double | volume () |
~PseudoTrap () |
Definition at line 9 of file PseudoTrap.h.
DDI::PseudoTrap::PseudoTrap | ( | double | x1, | |
double | x2, | |||
double | y1, | |||
double | y2, | |||
double | z, | |||
double | radius, | |||
bool | minusZ | |||
) | [inline] |
Definition at line 12 of file PseudoTrap.h.
References DDI::Solid::p_.
00013 : Solid(ddpseudotrap) 00014 { 00015 p_.push_back(x1); 00016 p_.push_back(x2); 00017 p_.push_back(y1); 00018 p_.push_back(y2); 00019 p_.push_back(z); 00020 p_.push_back(radius); 00021 p_.push_back(minusZ); 00022 }
DDI::PseudoTrap::~PseudoTrap | ( | ) | [inline] |
void DDI::PseudoTrap::stream | ( | std::ostream & | os | ) | const [virtual] |
Reimplemented from DDI::Solid.
Definition at line 6 of file PseudoTrap.cc.
References DDI::Solid::p_.
00007 { 00008 os << " x1[cm]=" << p_[0]/cm 00009 << " x2[cm]=" << p_[1]/cm 00010 << " y1[cm]=" << p_[2]/cm 00011 << " y2[cm]=" << p_[3]/cm 00012 << " z[cm]=" << p_[4]/cm 00013 << " radius[cm]=" << p_[5]/cm; 00014 00015 if (p_[6]) 00016 os << " minusZ=[yes]"; 00017 else 00018 os << " minusZ=[no]"; 00019 }
double DDI::PseudoTrap::volume | ( | ) | [inline] |