VGM Version 5.3
Loading...
Searching...
No Matches
Sphere.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_SPHERE_H
21#define GEANT4_GM_SPHERE_H
22
24
25#include <string>
26
27class G4Sphere;
28class G4ReflectedSolid;
29
30namespace Geant4GM {
31
33{
34 public:
35 Sphere(const std::string& name, double rin, double rout, double sphi,
36 double dphi, double stheta, double dtheta);
37 Sphere(G4Sphere* sphere, G4ReflectedSolid* reflSphere = 0);
38 virtual ~Sphere();
39
40 // methods
41 virtual std::string Name() const;
42 virtual double InnerRadius() const;
43 virtual double OuterRadius() const;
44 virtual double StartPhi() const;
45 virtual double DeltaPhi() const;
46 virtual double StartTheta() const;
47 virtual double DeltaTheta() const;
48
49 protected:
50 Sphere();
51 Sphere(const Sphere& rhs);
52
53 private:
54 bool fIsReflected;
55 G4Sphere* fSphere;
56};
57
58} // namespace Geant4GM
59
60#endif // GEANT4_GM_SPHERE_H
The ABC for sphere solids.
Definition VSphere.h:30
VGM implementation for Geant4 sphere solid.
Definition Sphere.h:33
virtual double StartPhi() const
Return the starting azimuthal angle of the segment in deg.
Definition Sphere.cxx:110
virtual double StartTheta() const
Return the starting polar angle of the segment in deg.
Definition Sphere.cxx:122
virtual double InnerRadius() const
Return the inside radius of the shell in mm.
Definition Sphere.cxx:98
virtual double DeltaPhi() const
Return the opening azimuthal angle of the segment in deg.
Definition Sphere.cxx:116
virtual ~Sphere()
Definition Sphere.cxx:89
virtual double OuterRadius() const
Return the outside radius of the shell in mm.
Definition Sphere.cxx:104
virtual std::string Name() const
Return the name of this solid.
Definition Sphere.cxx:95
virtual double DeltaTheta() const
Return the opening polar angle of the segment in deg.
Definition Sphere.cxx:131
VGM implementation for Geant4.
Definition Element.h:29