Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 void SetPoints(Double_t *points) const override;
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 ~TCTUB() override;
46
47 ClassDefOverride(TCTUB,2) //The Cut Tube shape
48};
49
50#endif
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
char name[80]
Definition TGX11.cxx:110
A cut tube with 11 parameters.
Definition TCTUB.h:29
void SetPoints(Double_t *points) const override
Create TUBS points.
Definition TCTUB.cxx:111
Float_t fCosHigh[3]
Definition TCTUB.h:33
~TCTUB() override
CTUB shape default destructor.
Definition TCTUB.cxx:94
TCTUB()
CTUB shape default constructor.
Definition TCTUB.cxx:48
Float_t fCosLow[3]
Definition TCTUB.h:32
A segment of a tube.
Definition TTUBS.h:29