Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TTRD1.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   17/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_TTRD1
0013 #define ROOT_TTRD1
0014 
0015 
0016 ////////////////////////////////////////////////////////////////////////////
0017 //                                                                        //
0018 // TTRD1                                                                  //
0019 //                                                                        //
0020 // TRD1 is a trapezoid with only the x length varying with z. It has 4    //
0021 // parameters, the half length in x at the low z surface, that at the     //
0022 // high z surface, the half length in y, and in z.                        //
0023 //                                                                        //
0024 ////////////////////////////////////////////////////////////////////////////
0025 
0026 #include "TBRIK.h"
0027 
0028 class TTRD1 : public TBRIK {
0029 protected:
0030    Float_t fDx2;        // half length in x at the high z surface
0031 
0032    void    SetPoints(Double_t *points) const override;
0033 
0034 public:
0035    TTRD1();
0036    TTRD1(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, Float_t dy, Float_t dz);
0037    ~TTRD1() override;
0038 
0039    virtual Float_t GetDx2() const {return fDx2;}
0040 
0041    ClassDefOverride(TTRD1,1)  //TRD1 shape
0042 };
0043 
0044 #endif