#ifndef PCASHIT_H #define PCASHIT_H #include #include "pHit.h" #include "pCasID.h" using std::cout; using std::endl; class pCasHit: public pHit { public: pCasHit(){}; pCasHit(const char *c){ int *temp = (int*) c; SetIpart( *temp++ ); SetHitID( new pCasID((char*)temp )); temp++; SetXin( *((float*)temp) ); temp++; SetYin( *((float*)temp) ); temp++; SetZin( *((float*)temp) ); temp++; SetXout( *((float*)temp) ); temp++; SetYout( *((float*)temp) ); temp++; SetZout( *((float*)temp) ); temp++; SetErel( *((float*)temp) ); temp++; SetTime( *((float*)temp) ); temp++; SetPath( *((float*)temp) ); temp++; SetP0( *((float*)temp) ); } void SetXout(const float & x){_xout=x;} void SetYout(const float & x){_yout=x;} void SetZout(const float & x){_zout=x;} void SetTime(const float & x){_time=x;} void SetPath(const float & x){_path=x;} float GetXout() const {return _xout;} float GetYout() const {return _yout;} float GetZout() const {return _zout;} float GetTime() const {return _time;} float GetPath() const {return _path;} void Print() const { cout << "pCasHit : " << endl; GetHitID()->Print() ; cout << " Ipart = " << GetIpart() << endl; cout << " xin,yin,zin = " << GetXin() <<", " << GetYin() <<", " << GetZin() << endl; cout << " xout,yout,zout = " << GetXout() <<", " << GetYout() <<", " << GetZout() << endl; cout << " erel, time, path, p0= " << GetErel() << ", " << GetTime() << ", " << GetPath() << ", " << GetP0() << endl; } private: float _xout,_yout,_zout; float _time,_path; }; #endif //PCASHIT_H