VGM Version 5.3
Loading...
Searching...
No Matches
Para.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_PARA_H
21#define GEANT4_GM_PARA_H
22
24
25#include <string>
26
27class G4Para;
28class G4ReflectedSolid;
29
30namespace Geant4GM {
31
32class Para : public BaseVGM::VPara
33{
34 public:
35 Para(const std::string& name, double dx, double dy, double dz, double alpha,
36 double theta, double phi);
37 Para(G4Para* para, G4ReflectedSolid* reflPara = 0);
38 virtual ~Para();
39
40 // methods
41 virtual std::string Name() const;
42
43 virtual double XHalfLength() const;
44 virtual double YHalfLength() const;
45 virtual double ZHalfLength() const;
46 virtual double Alpha() const;
47 virtual double Theta() const;
48 virtual double Phi() const;
49
50 protected:
51 Para();
52 Para(const Para& rhs);
53
54 private:
55 bool fIsReflected;
56 G4Para* fPara;
57};
58
59} // namespace Geant4GM
60
61#endif // GEANT4_GM_PARA_H
The ABC for para solids.
Definition VPara.h:30
VGM implementation for Geant4 para solid.
Definition Para.h:33
virtual double YHalfLength() const
Return half-length along the y axis in mm.
Definition Para.cxx:108
virtual ~Para()
Definition Para.cxx:93
virtual double Phi() const
Return azimuthal angle of the line joining the centres of the faces at -hz and +hz in deg.
Definition Para.cxx:136
virtual double Theta() const
Return polar angle of the line joining the centres of the faces at -hz and +hz in deg.
Definition Para.cxx:126
virtual double XHalfLength() const
Return half-length along the x axis in mm.
Definition Para.cxx:102
virtual std::string Name() const
Return the name of this solid.
Definition Para.cxx:99
virtual double ZHalfLength() const
Return half-length along the z axis in mm.
Definition Para.cxx:114
virtual double Alpha() const
Return angle formed by the y axis and by the plane joining the centre of the faces parallel to the z-...
Definition Para.cxx:120
VGM implementation for Geant4.
Definition Element.h:29