CMS 3D CMS Logo

PseudoTrap.cc
Go to the documentation of this file.
3 
4 using namespace geant_units::operators;
5 
6 void DDI::PseudoTrap::stream(std::ostream& os) const {
7  os << " x1[cm]=" << convertMmToCm(p_[0]) << " x2[cm]=" << convertMmToCm(p_[1]) << " y1[cm]=" << convertMmToCm(p_[2])
8  << " y2[cm]=" << convertMmToCm(p_[3]) << " z[cm]=" << convertMmToCm(p_[4])
9  << " radius[cm]=" << convertMmToCm(p_[5]);
10 
11  if (p_[6])
12  os << " minusZ=[yes]";
13  else
14  os << " minusZ=[no]";
15 }
PseudoTrap.h
geant_units::operators
Definition: GeantUnits.h:18
DDI::PseudoTrap::stream
void stream(std::ostream &os) const override
Definition: PseudoTrap.cc:6
GeantUnits.h
geant_units::operators::convertMmToCm
constexpr NumType convertMmToCm(NumType millimeters)
Definition: GeantUnits.h:62