VGM Version 5.3
Loading...
Searching...
No Matches
Box.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_BOX_H
21#define ROOT_GM_BOX_H
22
23#include "BaseVGM/solids/VBox.h"
24
25#include <string>
26
27class TGeoBBox;
28
29namespace RootGM {
30
31class Box : public BaseVGM::VBox
32{
33 public:
34 Box(const std::string& name, double hx, double hy, double hz);
35 Box(TGeoBBox* box, bool addInMap = true);
36 virtual ~Box();
37
38 // methods
39 virtual std::string Name() const;
40 virtual double XHalfLength() const;
41 virtual double YHalfLength() const;
42 virtual double ZHalfLength() const;
43
44 protected:
45 Box();
46 Box(const Box& rhs);
47
48 private:
49 TGeoBBox* fBox;
50};
51
52} // namespace RootGM
53
54#endif // ROOT_GM_BOX_H
The ABC for box solids.
Definition VBox.h:30
VGM implementation for Root box solid.
Definition Box.h:32
virtual double YHalfLength() const
Return the half-length along the y axis in mm.
Definition Box.cxx:83
virtual double XHalfLength() const
Return the half-length along the x axis in mm.
Definition Box.cxx:77
virtual std::string Name() const
Return the name of this solid.
Definition Box.cxx:74
virtual ~Box()
Definition Box.cxx:64
virtual double ZHalfLength() const
Return the half-length along the z axis in mm.
Definition Box.cxx:89
VGM implementation for Root.
Definition axis.h:28