VGM Version 5.3
Loading...
Searching...
No Matches
Ctubs.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The RootGM package of the Virtual Geometry Model
5// Copyright (C) 2007, Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
19
20#ifndef ROOT_GM_CTUBS_H
21#define ROOT_GM_CTUBS_H
22
24
25#include <string>
26
27class TGeoCtub;
28
29namespace RootGM {
30
31class Ctubs : public BaseVGM::VCtubs
32{
33 public:
34 Ctubs(const std::string& name, double rin, double rout, double hz,
35 double sphi, double dphi, double nxlow, double nylow, double nzlow,
36 double nxhigh, double nyhigh, double nzhigh);
37 Ctubs(TGeoCtub* ctubs);
38 virtual ~Ctubs();
39
40 // methods
41 virtual std::string Name() const;
42 virtual double InnerRadius() const;
43 virtual double OuterRadius() const;
44 virtual double ZHalfLength() const;
45 virtual double StartPhi() const;
46 virtual double DeltaPhi() const;
47 virtual double NxLow() const;
48 virtual double NyLow() const;
49 virtual double NzLow() const;
50 virtual double NxHigh() const;
51 virtual double NyHigh() const;
52 virtual double NzHigh() const;
53
54 protected:
55 Ctubs();
56 Ctubs(const Ctubs& rhs);
57
58 private:
59 TGeoCtub* fCtubs;
60};
61
62} // namespace RootGM
63
64#endif // ROOT_GM_CTUBS_H
The ABC for cut tubs solids.
Definition VCtubs.h:30
VGM implementation for Root cut tubs solid.
Definition Ctubs.h:32
virtual double NzHigh() const
Z-component of the normal unit vector to the cut plane in +z.
Definition Ctubs.cxx:141
virtual double NzLow() const
Z-component of the normal unit vector to the cut plane in -z.
Definition Ctubs.cxx:132
virtual double StartPhi() const
Return the starting angle of the segment in deg.
Definition Ctubs.cxx:105
virtual double ZHalfLength() const
Return the half-length along the z axis in m.
Definition Ctubs.cxx:99
virtual double InnerRadius() const
Return the inside radius in mm.
Definition Ctubs.cxx:87
virtual double NyLow() const
Y-component of the normal unit vector to the cut plane in -z.
Definition Ctubs.cxx:129
virtual double NxLow() const
X-component of the normal unit vector to the cut plane in -z.
Definition Ctubs.cxx:126
virtual ~Ctubs()
Definition Ctubs.cxx:78
virtual double NxHigh() const
X-component of the normal unit vector to the cut plane in +z.
Definition Ctubs.cxx:135
virtual double NyHigh() const
Y-component of the normal unit vector to the cut plane in +z.
Definition Ctubs.cxx:138
virtual double DeltaPhi() const
Return the opening angle of the segment in deg.
Definition Ctubs.cxx:114
virtual double OuterRadius() const
Return the outside radius in mm.
Definition Ctubs.cxx:93
virtual std::string Name() const
Return the name of this solid.
Definition Ctubs.cxx:84
VGM implementation for Root.
Definition axis.h:28