//*CMZ : 1.00/06 17/04/99 07.50.09 by Rene Brun //*-- Author : Nenad Buncic 29/09/95 //*KEEP,CopyRight,T=C. /************************************************************************* * Copyright(c) 1995-1999, The ROOT System, All rights reserved. * * Authors: Rene Brun and Fons Rademakers. * * * * For the licensing terms see $ROOTSYS/AA_LICENSE. * * For the list of contributors see $ROOTSYS/AA_CREDITS. * *************************************************************************/ //*KEND. //*KEEP,TPGON. #include "TPGON.h" //*KEND. ClassImp(TPGON) //______________________________________________________________________________ //// PGON is a polygon. It has the following parameters: // // - name name of the shape // - title shape's title // - material (see TMaterial) // - phi1 the azimuthal angle &phi at which the volume begins (angles // are counted counterclockwise) // - dphi1 opening angle of the volume, which extends from phi1 to // phi1+dphi // - npdv number of sides of the cross section between the given // phi limits // - nz number of planes perpendicular to the z axis where // the dimension of the section is given -- this number // should be at least 2 // - rmin array of dimension nz with minimum radius at a given plane // - rmax array of dimension nz with maximum radius at a given plane // - z array of dimension nz with z position of given plane //______________________________________________________________________________ TPGON::TPGON () { //*-*-*-*-*-*-*-*-*-*-*-*-*PGON shape default constructor*-*-*-*-*-*-*-*-*-*-*-* //*-* ============================== } //______________________________________________________________________________ TPGON::TPGON (Text_t *name, Text_t *title, Text_t *material, Float_t phi1, Float_t dphi1, Int_t npdv, Int_t nz) : TPCON (name, title,material, phi1, dphi1, nz) { //*-*-*-*-*-*-*-*-*-*-*-*-*PGON shape normal constructor*-*-*-*-*-*-*-*-*-*-*-*-* //*-* ============================= //*-* Parameters of the nz positions must be entered via TPCON::DefineSection. SetNumberOfDivisions (npdv); } //______________________________________________________________________________ TPGON::~TPGON () { //*-*-*-*-*-*-*-*-*-*-*-*-*PGON shape default destructor*-*-*-*-*-*-*-*-*-*-*-*-* //*-* ============================= }