ROOT logo
// @(#)root/g3d:$Id: TTRD2.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Nenad Buncic   13/09/95

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TTRD2
#define ROOT_TTRD2


//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TTRD2                                                                //
//                                                                      //
// TRD2 is a trapezoid with both x and y lengths varying with z. It     //
// has 5 parameters, half length in x at the low z surface, half length //
// in x at the high z surface, half length in y at the low z surface,   //
// half length in y at the high z surface, and half length in z         //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TBRIK
#include "TBRIK.h"
#endif

class TTRD2 : public TBRIK {
protected:
   Float_t fDx2;        // half length in x at the high z surface
   Float_t fDy2;        // half length in y at the high z surface

   virtual void    SetPoints(Double_t *points) const;

public:
   TTRD2();
   TTRD2(const char *name, const char *title, const char *material, Float_t dx1, Float_t dx2,
         Float_t dy1, Float_t dy2, Float_t dz);
   virtual ~TTRD2();

   Float_t         GetDx2() const {return fDx2;}
   Float_t         GetDy2() const {return fDy2;}

   ClassDef(TTRD2,1)  //TRD2 shape
};

#endif
 TTRD2.h:1
 TTRD2.h:2
 TTRD2.h:3
 TTRD2.h:4
 TTRD2.h:5
 TTRD2.h:6
 TTRD2.h:7
 TTRD2.h:8
 TTRD2.h:9
 TTRD2.h:10
 TTRD2.h:11
 TTRD2.h:12
 TTRD2.h:13
 TTRD2.h:14
 TTRD2.h:15
 TTRD2.h:16
 TTRD2.h:17
 TTRD2.h:18
 TTRD2.h:19
 TTRD2.h:20
 TTRD2.h:21
 TTRD2.h:22
 TTRD2.h:23
 TTRD2.h:24
 TTRD2.h:25
 TTRD2.h:26
 TTRD2.h:27
 TTRD2.h:28
 TTRD2.h:29
 TTRD2.h:30
 TTRD2.h:31
 TTRD2.h:32
 TTRD2.h:33
 TTRD2.h:34
 TTRD2.h:35
 TTRD2.h:36
 TTRD2.h:37
 TTRD2.h:38
 TTRD2.h:39
 TTRD2.h:40
 TTRD2.h:41
 TTRD2.h:42
 TTRD2.h:43
 TTRD2.h:44
 TTRD2.h:45
 TTRD2.h:46
 TTRD2.h:47
 TTRD2.h:48
 TTRD2.h:49
 TTRD2.h:50