00001 // @(#)root/g3d:$Id: TTRD2.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Nenad Buncic 13/09/95 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TTRD2 00013 #define ROOT_TTRD2 00014 00015 00016 ////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TTRD2 // 00019 // // 00020 // TRD2 is a trapezoid with both x and y lengths varying with z. It // 00021 // has 5 parameters, half length in x at the low z surface, half length // 00022 // in x at the high z surface, half length in y at the low z surface, // 00023 // half length in y at the high z surface, and half length in z // 00024 // // 00025 ////////////////////////////////////////////////////////////////////////// 00026 00027 #ifndef ROOT_TBRIK 00028 #include "TBRIK.h" 00029 #endif 00030 00031 class TTRD2 : public TBRIK { 00032 protected: 00033 Float_t fDx2; // half length in x at the high z surface 00034 Float_t fDy2; // half length in y at the high z surface 00035 00036 virtual void SetPoints(Double_t *points) const; 00037 00038 public: 00039 TTRD2(); 00040 TTRD2(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, 00041 Float_t dy1, Float_t dy2, Float_t dz); 00042 virtual ~TTRD2(); 00043 00044 Float_t GetDx2() const {return fDx2;} 00045 Float_t GetDy2() const {return fDy2;} 00046 00047 ClassDef(TTRD2,1) //TRD2 shape 00048 }; 00049 00050 #endif