library: libGraf3d #include "TCTUB.h"

# TCTUB

class description - source file - inheritance tree (.pdf)

## class TCTUB : public TTUBS

| Inheritance Chart:
`TObject`
| <- | `TNamed`
`TAttLine`
`TAttFill`
`TAtt3D`
| <- | `TShape`
| <- | `TTUBE`
| <- | `TTUBS`
| <- | `TCTUB` |

        protected:

          virtual void SetPoints(Double_t* points) const

        public:

                          TCTUB()
                          TCTUB(const char* name, const char* title, const char* material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2, Float_t coslx, Float_t cosly, Float_t coslz, Float_t coshx, Float_t coshy, Float_t coshz)
                          TCTUB(const char* name, const char* title, const char* material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2, Float_t* lowNormal, Float_t* highNormal)
                          TCTUB(const TCTUB&)
                  virtual ~TCTUB()
           static TClass* Class()
          virtual TClass* IsA() const
                   TCTUB& operator=(const TCTUB&)
             virtual void ShowMembers(TMemberInspector& insp, char* parent)
             virtual void Streamer(TBuffer& b)
                     void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

          Float_t fCosLow[3]   dir cosinus of surface cutting tube at low z
          Float_t fCosHigh[3]  dir cosinus of surface cutting tube at high z

## Class Description

     'CTUB' is a cut  tube with 11 parameters.  The  first 5 parameters
            are the same  as for the TUBS.  The  remaining 6 parameters
            are the director  cosines of the surfaces  cutting the tube
            respectively at the low and high Z values.

         - name       name of the shape
         - title      shape's title
         - material  (see TMaterial)
         - rmin       inside radius
         - rmax       outside radius
         - dz         half length in z
         - phi1       starting angle of the segment
         - phi2       ending angle of the segment
         - coslx      x dir cosinus at low z face
         - cosly      y dir cosinus at low z face
         - coslz      z dir cosinus at low z face
         - coshx      x dir cosinus at high z face
         - coshy      y dir cosinus at high z face
         - coshz      z dir cosinus at high z face

TCTUB()

     CTUB shape default constructor

TCTUB(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2, Float_t coslx, Float_t cosly, Float_t coslz, Float_t coshx, Float_t coshy, Float_t coshz) : TTUBS(name,title,material,rmin,rmax,dz,phi1,phi2)

     CTUB shape normal constructor

TCTUB(const char *name, const char *title, const char *material, Float_t rmin, Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2, Float_t *lowNormal, Float_t *highNormal) : TTUBS(name,title,material,rmin,rmax,dz,phi1,phi2)

     CTUB shape normal constructor

~TCTUB()

     CTUB shape default destructor

void SetPoints(Double_t *points) const

     Create TUBS points

void Streamer(TBuffer &R__b)

     Stream an object of class TCTUB.

### Inline Functions

                TClass* Class()
                TClass* IsA() const
                   void ShowMembers(TMemberInspector& insp, char* parent)
                   void StreamerNVirtual(TBuffer& b)
                  TCTUB TCTUB(const TCTUB&)
                 TCTUB& operator=(const TCTUB&)

Author: Rene Brun 26/06/97
Last update: root/g3d:$Name: $:$Id: TCTUB.cxx,v 1.4 2005/03/09 18:19:26 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *