00001 #include "DetectorDescription/Core/src/TruncTubs.h" 00002 00003 #include "CLHEP/Units/SystemOfUnits.h" 00004 00005 DDI::TruncTubs::TruncTubs(double zHalf, 00006 double rIn, double rOut, 00007 double startPhi, 00008 double deltaPhi, 00009 double cutAtStart, 00010 double cutAtDelta, 00011 bool cutInside) 00012 : Solid(ddtrunctubs) 00013 { 00014 p_.push_back(zHalf); 00015 p_.push_back(rIn); 00016 p_.push_back(rOut); 00017 p_.push_back(startPhi); 00018 p_.push_back(deltaPhi); 00019 p_.push_back(cutAtStart); 00020 p_.push_back(cutAtDelta); 00021 p_.push_back(cutInside); 00022 } 00023 00024 00025 void DDI::TruncTubs::stream(std::ostream & os) const 00026 { 00027 os << " zHalf=" << p_[0]/cm 00028 << "cm rIn=" << p_[1]/cm 00029 << "cm rOut=" << p_[2]/cm 00030 << "cm startPhi=" << p_[3]/deg 00031 << "deg deltaPhi=" << p_[4]/deg 00032 << "deg cutAtStart=" << p_[5]/cm 00033 << "cm cutAtDelta=" << p_[6]/cm 00034 << "cm cutInside=" << p_[7]; 00035 } 00036