//----------------------------------------------------------------------- // File and Version Information: // $Id: $ // // Description: // EmcXtal Class - // // Software developed for the BaBar Detector at the SLAC B-Factory. // Adapted for the PANDA experiment at GSI // // Author List: // Gautier Hamel de Monchenault - CEN Saclay & Lawrence Berkeley Lab // Stephen J. Gowdy University of Edinburgh // Dima Melnichuk - adaption for PANDA // // Copyright Information: // Copyright (C) 1996 Lawrence Berkeley Laboratory // Copyright (C) 1996 CEA - Centre d'Etude de Saclay //------------------------------------------------------------------------ #ifndef EMCXTAL_HH #define EMCXTAL_HH #include #include "TVector3.h" #include "TGeoArb8.h" class TVector3; class TGeoTrap; class TRotation; class TwoCoordIndex; // --------------------- // -- Class Interface -- // --------------------- class EmcXtal:public TObject { public: // Constructors EmcXtal( const TwoCoordIndex *id, const TGeoTrap &trap, const TVector3 &pos, const TRotation &rot, const TVector3 &reflect); // Destructor virtual ~EmcXtal(); // Operators virtual bool operator==( const EmcXtal& compare ) const; // Accessors (const) const TwoCoordIndex* myIndex() const; const TVector3& centre() const; const TVector3& frontCentre() const; const TVector3& normalToFrontFace() const ; double npAngle() const; private: const TwoCoordIndex* fTCIIndex;//! double fLength; // length of the crystal const TGeoTrap fTrap; TVector3 fCentre; TVector3 fFrontCentre; TVector3 fNormalToFrontFace; ClassDef(EmcXtal,1) }; #endif // EMCXTAL_HH