CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TruncTubs.cc
Go to the documentation of this file.
2 
3 #include "CLHEP/Units/GlobalSystemOfUnits.h"
4 
6  double rIn, double rOut,
7  double startPhi,
8  double deltaPhi,
9  double cutAtStart,
10  double cutAtDelta,
11  bool cutInside)
13 {
14  p_.push_back(zHalf);
15  p_.push_back(rIn);
16  p_.push_back(rOut);
17  p_.push_back(startPhi);
18  p_.push_back(deltaPhi);
19  p_.push_back(cutAtStart);
20  p_.push_back(cutAtDelta);
21  p_.push_back(cutInside);
22 }
23 
24 
25 void DDI::TruncTubs::stream(std::ostream & os) const
26 {
27  os << " zHalf=" << p_[0]/cm
28  << "cm rIn=" << p_[1]/cm
29  << "cm rOut=" << p_[2]/cm
30  << "cm startPhi=" << p_[3]/deg
31  << "deg deltaPhi=" << p_[4]/deg
32  << "deg cutAtStart=" << p_[5]/cm
33  << "cm cutAtDelta=" << p_[6]/cm
34  << "cm cutInside=" << p_[7];
35 }
36 
void stream(std::ostream &os) const
Definition: TruncTubs.cc:25
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition: TruncTubs.cc:5
std::vector< double > p_
Definition: Solid.h:32