Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TCONS.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: Nenad Buncic   18/09/95
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_TCONS
0013 #define ROOT_TCONS
0014 
0015 
0016 ////////////////////////////////////////////////////////////////////////////
0017 //                                                                        //
0018 // TCONS                                                                  //
0019 //                                                                        //
0020 // CONS is a phi segment of a conical tube. It has 7 parameters, the half //
0021 // the same 5 as a CONE plus the phi limits                               //
0022 //                                                                        //
0023 ////////////////////////////////////////////////////////////////////////////
0024 
0025 #include "TTUBS.h"
0026 
0027 class TCONS : public TTUBS {
0028 
0029 protected:
0030    Float_t fRmin2;        // inside radius at the high z limit
0031    Float_t fRmax2;        // outside radius at the high z limit
0032 
0033    void    SetPoints(Double_t *points) const override;
0034 public:
0035    TCONS();
0036    TCONS(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1,
0037          Float_t rmin2, Float_t rmax2, Float_t phi1, Float_t phi2);
0038    TCONS(const char *name, const char *title, const char *material, Float_t rmax1, Float_t dz
0039                           , Float_t phi1, Float_t phi2, Float_t rmax2 = 0);
0040    ~TCONS() override;
0041 
0042    virtual Float_t GetRmin2() const {return fRmin2;}
0043    virtual Float_t GetRmax2() const {return fRmax2;}
0044 
0045    ClassDefOverride(TCONS,1)  //CONS shape
0046 };
0047 
0048 #endif