#ifndef PACEMCDIGI_HH #define PACEMCDIGI_HH #include #include "AbsEnv/TwoCoordIndex.hh" class HepPoint; class PacEmcDigi { public: PacEmcDigi(); PacEmcDigi(const PacEmcDigi& other); PacEmcDigi(double energy, const TwoCoordIndex *tci); virtual ~PacEmcDigi(); virtual PacEmcDigi *clone() const; virtual bool operator==(const PacEmcDigi & otherDigi) const; virtual bool operator!=(const PacEmcDigi & otherDigi) const; virtual const TwoCoordIndex* tci() const; virtual int theta() const {return _tci->itsXCoord();} virtual int phi() const {return _tci->itsYCoord();} virtual double thetaReal() const {return _thetaReal;} virtual double phiReal() const {return _phiReal;} virtual const HepPoint & where() const; virtual float energy() const {return _energy;} private: // Data members double _energy; const TwoCoordIndex* _tci; double _thetaReal; double _phiReal; HepPoint *_where; void init(); }; #endif