#ifndef HGEOTRD1_H #define HGEOTRD1_H #include "hgeobasicshapes.h" // // class for Geant-shape TRD1 // 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 TRD1, 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 same definitition as for a TRAP and different from // the Geant-definition for a TRD1. // Therefore a transformation is needed: // x-technical = - (x-Geant) // y-technical = z-Geant // z-technical = y-Geant // This is described by cgRot. // class HGeoTrd1 : public HGeoBasicShapes { public: HGeoTrd1() { nCorners=8; cgRot=0.0F; cgRot[0]=-1.F; cgRot[5]=1.F; cgRot[7]=1.F; } ~HGeoTrd1(){} // 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