VGM Version 5.3
Loading...
Searching...
No Matches
Polycone.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_POLYCONE_H
21#define ROOT_GM_POLYCONE_H
22
24
25#include <string>
26
27class TGeoPcon;
28
29namespace RootGM {
30
32{
33 public:
34 Polycone(const std::string& name, double sphi, double dphi, int nofZPlanes,
35 double* z, double* rin, double* rout);
36 Polycone(TGeoPcon* polycone);
37 virtual ~Polycone();
38
39 // methods
40 virtual std::string Name() const;
41 virtual double StartPhi() const;
42 virtual double DeltaPhi() const;
43 virtual int NofZPlanes() const;
44 virtual double* ZValues() const;
45 virtual double* InnerRadiusValues() const;
46 virtual double* OuterRadiusValues() const;
47
48 protected:
49 Polycone();
50 Polycone(const Polycone& rhs);
51
52 private:
53 void CreateBuffers();
54
55 static const int fgkMaxNofZPlanes;
56 static double* fgZBuffer;
57 static double* fgRinBuffer;
58 static double* fgRoutBuffer;
59
60 TGeoPcon* fPolycone;
61};
62
63} // namespace RootGM
64
65#endif // ROOT_GM_POLYCONE_H
The ABC for polycone solids.
Definition VPolycone.h:30
VGM implementation for Root polycone solid.
Definition Polycone.h:32
virtual double StartPhi() const
Return starting phi angle of the segment in deg.
Definition Polycone.cxx:111
virtual ~Polycone()
Definition Polycone.cxx:94
virtual int NofZPlanes() const
Return number of planes perpendicular to the z axis.
Definition Polycone.cxx:123
virtual double * ZValues() const
Return the array of z positions of the planes in mm.
Definition Polycone.cxx:126
virtual double * InnerRadiusValues() const
Return the array of inner radius of the planes in mm.
Definition Polycone.cxx:144
virtual double * OuterRadiusValues() const
Return the array of outer radius of the planes in mm.
Definition Polycone.cxx:162
virtual double DeltaPhi() const
Return opening phi angle of the segment in deg.
Definition Polycone.cxx:117
virtual std::string Name() const
Return the name of this solid.
Definition Polycone.cxx:108
VGM implementation for Root.
Definition axis.h:28