VGM Version 5.3
Loading...
Searching...
No Matches
Cons.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_CONS_H
21#define ROOT_GM_CONS_H
22
24
25#include <string>
26
27class TGeoCone;
28
29namespace RootGM {
30
31class Cons : public BaseVGM::VCons
32{
33 public:
34 Cons(const std::string& name, double rin1, double rout1, double rin2,
35 double rout2, double hz, double sphi, double dphi);
36 Cons(TGeoCone* cons);
37 virtual ~Cons();
38
39 // methods
40 virtual std::string Name() const;
41 virtual double InnerRadiusMinusZ() const;
42 virtual double OuterRadiusMinusZ() const;
43 virtual double InnerRadiusPlusZ() const;
44 virtual double OuterRadiusPlusZ() const;
45 virtual double ZHalfLength() const;
46 virtual double StartPhi() const;
47 virtual double DeltaPhi() const;
48
49 protected:
50 Cons();
51 Cons(const Cons& rhs);
52
53 private:
54 TGeoCone* fCons;
55};
56
57} // namespace RootGM
58
59#endif // ROOT_GM_CONS_H
The ABC for cons solids.
Definition VCons.h:30
VGM implementation for Root cons solid.
Definition Cons.h:32
virtual double InnerRadiusMinusZ() const
Return the innner radius at -z in mm.
Definition Cons.cxx:81
virtual double ZHalfLength() const
Return the half-length along the z axis in mm.
Definition Cons.cxx:105
virtual double InnerRadiusPlusZ() const
Return the innner radius at +z in mm.
Definition Cons.cxx:93
virtual double OuterRadiusPlusZ() const
Return the outer radius at -z in mm.
Definition Cons.cxx:99
virtual std::string Name() const
Return the name of this solid.
Definition Cons.cxx:78
virtual ~Cons()
Definition Cons.cxx:72
virtual double OuterRadiusMinusZ() const
Return the outer radius at -z in mm.
Definition Cons.cxx:87
virtual double StartPhi() const
Return the starting phi angle of the segment in deg.
Definition Cons.cxx:111
virtual double DeltaPhi() const
Return the opening phi angle of the segment in deg.
Definition Cons.cxx:120
VGM implementation for Root.
Definition axis.h:28