Logo ROOT  
Reference Guide
TCTUB.h
Go to the documentation of this file.
1// @(#)root/g3d:$Id$
2// Author: Rene Brun 26/06/97
3
4/*************************************************************************
5 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TCTUB
13#define ROOT_TCTUB
14
15
16////////////////////////////////////////////////////////////////////////////
17// //
18// TCTUB //
19// //
20// 'CTUB' is a cut tube with 11 parameters. The first 5 parameters //
21// are the same as for the TUBS. The remaining 6 parameters //
22// are the director cosines of the surfaces cutting the tube //
23// respectively at the low and high Z values. //
24// //
25////////////////////////////////////////////////////////////////////////////
26
27#include "TTUBS.h"
28
29class TCTUB : public TTUBS {
30
31protected:
32 Float_t fCosLow[3]; // dir cosinus of surface cutting tube at low z
33 Float_t fCosHigh[3]; // dir cosinus of surface cutting tube at high z
34
35 virtual void SetPoints(Double_t *points) const;
36public:
37 TCTUB();
38 TCTUB(const char *name, const char *title, const char *material, Float_t rmin,
39 Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2,
40 Float_t coslx, Float_t cosly, Float_t coslz,
41 Float_t coshx, Float_t coshy, Float_t coshz);
42 TCTUB(const char *name, const char *title, const char *material, Float_t rmin,
43 Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2,
44 Float_t *lowNormal, Float_t *highNormal);
45 virtual ~TCTUB();
46
47 ClassDef(TCTUB,2) //The Cut Tube shape
48};
49
50#endif
double Double_t
Definition: RtypesCore.h:57
float Float_t
Definition: RtypesCore.h:55
#define ClassDef(name, id)
Definition: Rtypes.h:322
char name[80]
Definition: TGX11.cxx:109
point * points
Definition: X3DBuffer.c:22
A cut tube with 11 parameters.
Definition: TCTUB.h:29
virtual void SetPoints(Double_t *points) const
Create TUBS points.
Definition: TCTUB.cxx:112
Float_t fCosHigh[3]
Definition: TCTUB.h:33
virtual ~TCTUB()
CTUB shape default destructor.
Definition: TCTUB.cxx:95
TCTUB()
CTUB shape default constructor.
Definition: TCTUB.cxx:49
Float_t fCosLow[3]
Definition: TCTUB.h:32
A segment of a tube.
Definition: TTUBS.h:29