CMS 3D CMS Logo

TruncTubs.cc
Go to the documentation of this file.
2 
3 #include <vector>
4 
5 #include "CLHEP/Units/GlobalSystemOfUnits.h"
6 #include "CLHEP/Units/SystemOfUnits.h"
9 
11  double rIn, double rOut,
12  double startPhi,
13  double deltaPhi,
14  double cutAtStart,
15  double cutAtDelta,
16  bool cutInside)
18 {
19  p_.emplace_back(zHalf);
20  p_.emplace_back(rIn);
21  p_.emplace_back(rOut);
22  p_.emplace_back(startPhi);
23  p_.emplace_back(deltaPhi);
24  p_.emplace_back(cutAtStart);
25  p_.emplace_back(cutAtDelta);
26  p_.emplace_back(cutInside);
27 }
28 
29 
30 void DDI::TruncTubs::stream(std::ostream & os) const
31 {
32  os << " zHalf=" << p_[0]/cm
33  << "cm rIn=" << p_[1]/cm
34  << "cm rOut=" << p_[2]/cm
35  << "cm startPhi=" << p_[3]/deg
36  << "deg deltaPhi=" << p_[4]/deg
37  << "deg cutAtStart=" << p_[5]/cm
38  << "cm cutAtDelta=" << p_[6]/cm
39  << "cm cutInside=" << p_[7];
40 }
41 
void stream(std::ostream &os) const override
Definition: TruncTubs.cc:30
TruncTubs(double zHalf, double rIn, double rOut, double startPhi, double deltaPhi, double cutAtStart, double cutAtDelta, bool cutInside)
Definition: TruncTubs.cc:10
std::vector< double > p_
Definition: Solid.h:32