VGM Version 5.3
Loading...
Searching...
No Matches
Torus.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The Geant4GM 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 GEANT4_GM_TORUS_H
21#define GEANT4_GM_TORUS_H
22
24
25#include <string>
26
27class G4Torus;
28class G4ReflectedSolid;
29
30namespace Geant4GM {
31
32class Torus : public BaseVGM::VTorus
33{
34 public:
35 Torus(const std::string& name, double rin, double rout, double rax,
36 double sphi, double dphi);
37 Torus(G4Torus* torus, G4ReflectedSolid* reflTorus = 0);
38 virtual ~Torus();
39
40 // methods
41 virtual std::string Name() const;
42 virtual double InnerRadius() const;
43 virtual double OuterRadius() const;
44 virtual double AxialRadius() const;
45 virtual double StartPhi() const;
46 virtual double DeltaPhi() const;
47
48 protected:
49 Torus();
50 Torus(const Torus& rhs);
51
52 private:
53 G4Torus* fTorus;
54};
55
56} // namespace Geant4GM
57
58#endif // GEANT4_GM_TORUS_H
The ABC for torus solids.
Definition VTorus.h:30
VGM implementation for Geant4 torus solid.
Definition Torus.h:33
virtual std::string Name() const
Return the name of this solid.
Definition Torus.cxx:80
virtual double StartPhi() const
Return the starting phi angle of the segment in deg (with 0 being the +x axis)
Definition Torus.cxx:101
virtual double OuterRadius() const
Return the outside radius of the torus in mm.
Definition Torus.cxx:89
virtual ~Torus()
Definition Torus.cxx:74
virtual double InnerRadius() const
Return the inside radius of the torus in mm.
Definition Torus.cxx:83
virtual double DeltaPhi() const
Return the opening phi angle of the segment in deg.
Definition Torus.cxx:107
virtual double AxialRadius() const
Return the axial (swept) radius of the torus in mm.
Definition Torus.cxx:95
VGM implementation for Geant4.
Definition Element.h:29