CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DetectorDescription/Core/src/Parallelepiped.cc

Go to the documentation of this file.
00001 #include "DetectorDescription/Core/src/Parallelepiped.h"
00002 #include "CLHEP/Units/GlobalSystemOfUnits.h"
00003 
00004 #include <ostream>
00005 #include <cmath>
00006 
00007 void DDI::Parallelepiped::stream(std::ostream & os) const
00008 {
00009    os << " xhalf[cm]=" << p_[0]/cm
00010       << " yhalf[cm]=" << p_[1]/cm
00011       << " zhalf[cm]=" << p_[2]/cm
00012       << " alpha[deg]=" << p_[3]/deg
00013       << " theta[deg]=" << p_[4]/deg
00014       << " phi[deg]=" << p_[5]/deg;
00015 
00016 }
00017 
00018 double DDI::Parallelepiped::volume() const { 
00019   double volume = p_[0]*p_[1]*p_[2]*8.0;
00020   return volume; 
00021 }