VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
Geant4GM
include
Geant4GM
solids
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
23
#include "
BaseVGM/solids/VTorus.h
"
24
25
#include <string>
26
27
class
G4Torus;
28
class
G4ReflectedSolid;
29
30
namespace
Geant4GM
{
31
32
class
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
VTorus.h
BaseVGM::VTorus
The ABC for torus solids.
Definition
VTorus.h:30
Geant4GM::Torus::Torus
Torus()
Definition
Torus.cxx:61
Geant4GM::Torus::Name
virtual std::string Name() const
Return the name of this solid.
Definition
Torus.cxx:80
Geant4GM::Torus::StartPhi
virtual double StartPhi() const
Return the starting phi angle of the segment in deg (with 0 being the +x axis).
Definition
Torus.cxx:101
Geant4GM::Torus::Torus
Torus(const std::string &name, double rin, double rout, double rax, double sphi, double dphi)
Definition
Torus.cxx:28
Geant4GM::Torus::OuterRadius
virtual double OuterRadius() const
Return the outside radius of the torus in mm.
Definition
Torus.cxx:89
Geant4GM::Torus::~Torus
virtual ~Torus()
Definition
Torus.cxx:74
Geant4GM::Torus::InnerRadius
virtual double InnerRadius() const
Return the inside radius of the torus in mm.
Definition
Torus.cxx:83
Geant4GM::Torus::DeltaPhi
virtual double DeltaPhi() const
Return the opening phi angle of the segment in deg.
Definition
Torus.cxx:107
Geant4GM::Torus::AxialRadius
virtual double AxialRadius() const
Return the axial (swept) radius of the torus in mm.
Definition
Torus.cxx:95
Geant4GM
VGM implementation for Geant4.
Definition
Element.h:29
Generated on
for VGM by
1.17.0