#ifndef HGEOTRAP_H #define HGEOTRAP_H #include "hgeobasicshapes.h" // // class for Geant-shape TRAP // derived from baseclass HGeoBasicShapes // // To read the 8 xyz-points from database or file the function readPoints(...) // in the baseclass is used. // // The technical coordinate system of a TRAP, which sits in CAVE and is not // rotated, is the laboratory system. The y-axis points from the smaller side to // the larger one. That's the opposite of the Geant-definition for a TRAP. // Therefore a transformation is needed: // x-technical = - (x-Geant) // y-technical = - (y-Geant) // z-technical = z-Geant // This is described by cgRot. // class HGeoTrap : public HGeoBasicShapes { public: HGeoTrap() { nCorners=8; cgRot=0.0F; cgRot[0]=-1.F; cgRot[4]=-1.F; cgRot[8]=1.F; } ~HGeoTrap(){} // calculates the Geant-shapeparameters void calcShape(HGeoParam & ele, HGeoShapePar & shapePar); // calculates the position the Geant coordinate system in the technical // coordinate system and invokes posInMother(...) of the base class int posShape(HGeoParam & ele, HGeoParam & mo, HGeoShapePar & shapePar); }; #endif