VGM Version 5.3
Loading...
Searching...
No Matches
Ellipsoid.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The RootGM 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 ROOT_GM_ELLIPSOID_H
21#define ROOT_GM_ELLIPSOID_H
22
24
25#include <string>
26
27class TGeoShape;
28class TGeoScaledShape;
29
30namespace RootGM {
31
33{
34 public:
35 Ellipsoid(const std::string& name, double dx, double dy, double dz,
36 double zBottomCut, double zTopCut);
37 Ellipsoid(TGeoScaledShape* scaledShape);
38 virtual ~Ellipsoid();
39
40 // methods
41 virtual std::string Name() const;
42 virtual double XSemiAxis() const;
43 virtual double YSemiAxis() const;
44 virtual double ZSemiAxis() const;
45 virtual double ZBottomCut() const;
46 virtual double ZTopCut() const;
47
48 protected:
49 Ellipsoid();
50 Ellipsoid(const Ellipsoid& rhs);
51
52 private:
53 TGeoShape* fEllipsoid;
54 double fDx;
55 double fDy;
56 double fDz;
57 double fZBottomCut;
58 double fZTopCut;
59};
60} // namespace RootGM
61
62#endif // ROOT_GM_BOX_H
The ABC for ellipsoid solids.
Definition VEllipsoid.h:30
VGM implementation for Root ellipsoid solid.
Definition Ellipsoid.h:33
virtual double ZSemiAxis() const
Return the semi-axis of the ellipse along z in mm.
virtual double XSemiAxis() const
Return the semi-axis of the ellipse along x in mm.
virtual std::string Name() const
Return the name of this solid.
virtual ~Ellipsoid()
virtual double YSemiAxis() const
Return the semi-axis of the ellipse along y in mm.
virtual double ZTopCut() const
Return the z top cut in mm.
virtual double ZBottomCut() const
Return the z bottom cut in mm.
VGM implementation for Root.
Definition axis.h:28