VGM Version 5.3
Loading...
Searching...
No Matches
Cons.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_CONS_H
21#define GEANT4_GM_CONS_H
22
24
25#include <string>
26
27class G4Cons;
28class G4ReflectedSolid;
29
30namespace Geant4GM {
31
32class Cons : public BaseVGM::VCons
33{
34 public:
35 Cons(const std::string& name, double rin1, double rout1, double rin2,
36 double rout2, double hz, double sphi, double dphi);
37 Cons(G4Cons* cons, G4ReflectedSolid* reflCons = 0);
38 virtual ~Cons();
39
40 // methods
41 virtual std::string Name() const;
42 virtual double InnerRadiusMinusZ() const;
43 virtual double OuterRadiusMinusZ() const;
44 virtual double InnerRadiusPlusZ() const;
45 virtual double OuterRadiusPlusZ() const;
46 virtual double ZHalfLength() const;
47 virtual double StartPhi() const;
48 virtual double DeltaPhi() const;
49
50 protected:
51 Cons();
52 Cons(const Cons& rhs);
53
54 private:
55 bool fIsReflected;
56 G4Cons* fCons;
57};
58
59} // namespace Geant4GM
60
61#endif // GEANT4_GM_CONS_H
The ABC for cons solids.
Definition VCons.h:30
VGM implementation for Geant4 cons solid.
Definition Cons.h:33
virtual std::string Name() const
Return the name of this solid.
Definition Cons.cxx:94
virtual double DeltaPhi() const
Return the opening phi angle of the segment in deg.
Definition Cons.cxx:145
virtual double OuterRadiusPlusZ() const
Return the outer radius at -z in mm.
Definition Cons.cxx:124
virtual double StartPhi() const
Return the starting phi angle of the segment in deg.
Definition Cons.cxx:139
virtual double ZHalfLength() const
Return the half-length along the z axis in mm.
Definition Cons.cxx:133
virtual double OuterRadiusMinusZ() const
Return the outer radius at -z in mm.
Definition Cons.cxx:106
virtual double InnerRadiusMinusZ() const
Return the innner radius at -z in mm.
Definition Cons.cxx:97
virtual double InnerRadiusPlusZ() const
Return the innner radius at +z in mm.
Definition Cons.cxx:115
virtual ~Cons()
Definition Cons.cxx:88
VGM implementation for Geant4.
Definition Element.h:29