00001 // @(#)root/g3d:$Id: TTRD1.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Nenad Buncic 17/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_TTRD1 00013 #define ROOT_TTRD1 00014 00015 00016 //////////////////////////////////////////////////////////////////////////// 00017 // // 00018 // TTRD1 // 00019 // // 00020 // TRD1 is a trapezoid with only the x length varying with z. It has 4 // 00021 // parameters, the half length in x at the low z surface, that at the // 00022 // high z surface, the half length in y, and in z. // 00023 // // 00024 //////////////////////////////////////////////////////////////////////////// 00025 00026 #ifndef ROOT_TBRIK 00027 #include "TBRIK.h" 00028 #endif 00029 00030 class TTRD1 : public TBRIK { 00031 protected: 00032 Float_t fDx2; // half length in x at the high z surface 00033 00034 virtual void SetPoints(Double_t *points) const; 00035 00036 public: 00037 TTRD1(); 00038 TTRD1(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2, Float_t dy, Float_t dz); 00039 virtual ~TTRD1(); 00040 00041 virtual Float_t GetDx2() const {return fDx2;} 00042 00043 ClassDef(TTRD1,1) //TRD1 shape 00044 }; 00045 00046 #endif