//*CMZ :  1.00/06 17/04/99  07.50.09  by  Rene Brun
//*-- Author :    Nenad Buncic   13/09/95

//*KEEP,CopyRight,T=C.
/*************************************************************************
 * Copyright(c) 1995-1999, The ROOT System, All rights reserved.         *
 * Authors: Rene Brun, Fons Rademakers.                                  *
 * For list of contributors see $ROOTSYS/AA_CREDITS.                     *
 *                                                                       *
 * Permission to use, copy, modify and distribute this software and its  *
 * documentation for non-commercial purposes is hereby granted without   *
 * fee, provided that the above copyright notice appears in all copies   *
 * and that both the copyright notice and this permission notice appear  *
 * in the supporting documentation. The authors make no claims about the *
 * suitability of this software for any purpose. It is provided "as is"  *
 * without express or implied warranty.                                  *
 *************************************************************************/
//*KEND.

//*KEEP,TTRD2.
#include "TTRD2.h"
//*KEEP,TNode.
#include "TNode.h"
//*KEND.

ClassImp(TTRD2)

//______________________________________________________________________________
//  

// TRD2 is a trapezoid with both x and y dimensions varying along z. // It has 8 parameters: // // - name name of the shape // - title shape's title // - material (see TMaterial) // - dx1 half-length along x at the z surface positioned at -DZ // - dx2 half-length along x at the z surface positioned at +DZ // - dy1 half-length along y at the z surface positioned at -DZ // - dy2 half-length along y at the z surface positioned at +DZ // - dz half-length along the z-axis //______________________________________________________________________________ TTRD2::TTRD2() { //*-*-*-*-*-*-*-*-*-*-*-*TRD2 shape default constructor*-*-*-*-*-*-*-*-*-*-*-*-* //*-* ============================== } //______________________________________________________________________________ TTRD2::TTRD2(Text_t *name, Text_t *title, Text_t *material, Float_t dx1, Float_t dx2, Float_t dy1, Float_t dy2, Float_t dz) : TBRIK(name, title,material,dx1,dy1,dz) { //*-*-*-*-*-*-*-*-*-*-*-*-*TRD2 shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-* //*-* ============================= fDx2 = dx2; fDy2 = dy2; } //______________________________________________________________________________ TTRD2::~TTRD2() { //*-*-*-*-*-*-*-*-*-*-*-*-*TRD2 shape default destructor*-*-*-*-*-*-*-*-*-*-*-*-* //*-* ============================= } //______________________________________________________________________________ void TTRD2::SetPoints(Float_t *buff) { //*-*-*-*-*-*-*-*-*-*-*-*-*-*-*Create TRD2 points*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* //*-* ================== Float_t dx1, dx2, dy1, dy2, dz; dx1 = TBRIK::fDx; dx2 = fDx2; dy1 = TBRIK::fDy; dy2 = fDy2; dz = TBRIK::fDz; if (buff) { buff[ 0] = -dx1; buff[ 1] = -dy1; buff[ 2] = -dz; buff[ 3] = dx1; buff[ 4] = -dy1; buff[ 5] = -dz; buff[ 6] = dx1; buff[ 7] = dy1; buff[ 8] = -dz; buff[ 9] = -dx1; buff[10] = dy1; buff[11] = -dz; buff[12] = -dx2; buff[13] = -dy2; buff[14] = dz; buff[15] = dx2; buff[16] = -dy2; buff[17] = dz; buff[18] = dx2; buff[19] = dy2; buff[20] = dz; buff[21] = -dx2; buff[22] = dy2; buff[23] = dz; } }


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.