VGM Version 5.3
Loading...
Searching...
No Matches
Trd.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_TRD_H
21#define GEANT4_GM_TRD_H
22
23#include "BaseVGM/solids/VTrd.h"
24
25#include <string>
26
27class G4Trd;
28class G4ReflectedSolid;
29
30namespace Geant4GM {
31
32class Trd : public BaseVGM::VTrd
33{
34 public:
35 Trd(const std::string& name, double hx1, double hx2, double hy1, double hy2,
36 double hz);
37 Trd(G4Trd* trd, G4ReflectedSolid* reflTrd = 0);
38 virtual ~Trd();
39
40 // methods
41 virtual std::string Name() const;
42 virtual double XHalfLengthMinusZ() const;
43 virtual double XHalfLengthPlusZ() const;
44 virtual double YHalfLengthMinusZ() const;
45 virtual double YHalfLengthPlusZ() const;
46 virtual double ZHalfLength() const;
47
48 protected:
49 Trd();
50 Trd(const Trd& rhs);
51
52 private:
53 bool fIsReflected;
54 G4Trd* fTrd;
55};
56
57} // namespace Geant4GM
58
59#endif // GEANT4_GM_TRD_H
The ABC for trd solids.
Definition VTrd.h:30
VGM implementation for Geant4 trd solid.
Definition Trd.h:33
virtual std::string Name() const
Return the name of this solid.
Definition Trd.cxx:90
virtual double XHalfLengthMinusZ() const
Return the half-length along x at the surface positioned at -hz in mm.
Definition Trd.cxx:93
virtual double XHalfLengthPlusZ() const
Return the half-length along x at the surface positioned at +hz in mm.
Definition Trd.cxx:102
virtual double YHalfLengthMinusZ() const
Return the half-length along y at the surface positioned at -hz in mm.
Definition Trd.cxx:111
virtual double YHalfLengthPlusZ() const
Return thehalf-length along y at the surface positioned at +hz in mm.
Definition Trd.cxx:120
virtual ~Trd()
Definition Trd.cxx:84
virtual double ZHalfLength() const
Return the half-length along the z axis in mm.
Definition Trd.cxx:129
VGM implementation for Geant4.
Definition Element.h:29