#ifndef HGEOTUBE_H #define HGEOTUBE_H #include "hgeobasicshapes.h" // // class for Geant-shape TUBE // derived from baseclass HGeoBasicShapes // // The functions readPoints(...) read from database or from file and store the // input in the float-vector vol of class HGeoParam. // ( point 0: origin of starting circle of the cone; // point 1: inner radius of starting circle, // outer radius of starting circle; // point 2: origin of ending circle of the cone; // // To position a volume in its mother different functions are called in the // routine posShape(...) depending on the shape of the mother. Uptil now it's // only possible to position a TUBE in a mother with shape PGON or TUBE. // In these functions posIn...(...) the position of the Geant-origin in the // intrisic coordinate-system of the detector is calculated and stored in the // vector geaPos of class HGeoParam. This information is needed to calculate the // position of daughtervolumes. The Geant-position of the volume inside its // mother is calculated and stored in the vector pos of class HGeoShapePar. // class HGeoTube : public HGeoBasicShapes { public: HGeoTube(){} ~HGeoTube(){} // reads input from database int readPoints(HGeoInfo & geoInfo, HString & volName, HGeoParam & ele); // reads input from file int readPoints(HGeoInfo & geoInfo, HGeoParam & ele); // calculates the Geant-shapeparameters void calcShape(HGeoParam & ele, HGeoShapePar & shapePar); // calls different functions to position the volume depending on the // shape of its mother (uptil now only PGON or CONE is implemeted) int posShape(HGeoParam & ele, HGeoParam & mo, HGeoShapePar & shapePar); // positions a TUBE in a PGON or a TUBE (without rotation) void posInPgon(HGeoParam & ele, HGeoParam & mo, HGeoShapePar & shapePar); }; #endif