Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TCTUB.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/g3d:$Id$
0002 // Author: Rene Brun   26/06/97
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TCTUB
0013 #define ROOT_TCTUB
0014 
0015 
0016 ////////////////////////////////////////////////////////////////////////////
0017 //                                                                        //
0018 // TCTUB                                                                  //
0019 //                                                                        //
0020 // 'CTUB' is a cut  tube with 11 parameters.  The  first 5 parameters     //
0021 //        are the same  as for the TUBS.  The  remaining 6 parameters     //
0022 //        are the director  cosines of the surfaces  cutting the tube     //
0023 //        respectively at the low and high Z values.                      //
0024 //                                                                        //
0025 ////////////////////////////////////////////////////////////////////////////
0026 
0027 #include "TTUBS.h"
0028 
0029 class TCTUB : public TTUBS {
0030 
0031 protected:
0032    Float_t fCosLow[3];        // dir cosinus of surface cutting tube at low z
0033    Float_t fCosHigh[3];       // dir cosinus of surface cutting tube at high z
0034 
0035    void    SetPoints(Double_t *points) const override;
0036 public:
0037    TCTUB();
0038    TCTUB(const char *name, const char *title, const char *material, Float_t rmin,
0039          Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2,
0040          Float_t coslx, Float_t cosly, Float_t coslz,
0041          Float_t coshx, Float_t coshy, Float_t coshz);
0042    TCTUB(const char *name, const char *title, const char *material, Float_t rmin,
0043          Float_t rmax, Float_t dz, Float_t phi1, Float_t phi2,
0044          Float_t *lowNormal, Float_t *highNormal);
0045    ~TCTUB() override;
0046 
0047    ClassDefOverride(TCTUB,2)  //The Cut Tube shape
0048 };
0049 
0050 #endif