#include "TCONS.h"
#include "TNode.h"
ClassImp(TCONS)
TCONS::TCONS()
{
}
TCONS::TCONS(const char *name, const char *title, const char *material, Float_t dz, Float_t rmin1, Float_t rmax1, Float_t rmin2, Float_t rmax2,
Float_t phi1, Float_t phi2)
: TTUBS(name,title,material,rmin1,rmax1,dz,phi1,phi2)
{
fRmin2 = rmin2;
fRmax2 = rmax2;
}
TCONS::TCONS(const char *name, const char *title, const char *material, Float_t rmax1, Float_t dz
, Float_t phi1, Float_t phi2, Float_t rmax2)
: TTUBS(name,title,material,rmax1,dz,phi1,phi2)
{
fRmin2 = 0;
fRmax2 = rmax2;
}
TCONS::~TCONS()
{
}
void TCONS::SetPoints(Double_t *points) const
{
Int_t j, n;
Float_t rmin1, rmax1, dz;
n = GetNumberOfDivisions()+1;
rmin1 = TTUBE::fRmin;
rmax1 = TTUBE::fRmax;
dz = TTUBE::fDz;
Int_t indx = 0;
if (!fCoTab) MakeTableOfCoSin();
if (points) {
for (j = 0; j < n; j++) {
points[indx++] = rmin1 * fCoTab[j];
points[indx++] = rmin1 * fSiTab[j];
points[indx++] = -dz;
}
for (j = 0; j < n; j++) {
points[indx++] = rmax1 * fCoTab[j];
points[indx++] = rmax1 * fSiTab[j];
points[indx++] = -dz;
}
for (j = 0; j < n; j++) {
points[indx++] = fRmin2 * fCoTab[j];
points[indx++] = fRmin2 * fSiTab[j];
points[indx++] = dz;
}
for (j = 0; j < n; j++) {
points[indx++] = fRmax2 * fCoTab[j];
points[indx++] = fRmax2 * fSiTab[j];
points[indx++] = dz;
}
}
}
Last change: Wed Jun 25 08:35:26 2008
Last generated: 2008-06-25 08:35
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.