| 1 |
#ifndef PTOFID_H |
| 2 |
#define PTOFID_H |
| 3 |
#include <iostream> |
| 4 |
#include "pHitID.h" |
| 5 |
|
| 6 |
using std::cout; |
| 7 |
using std::endl; |
| 8 |
|
| 9 |
class pTofID :public pHitID { |
| 10 |
|
| 11 |
public: |
| 12 |
|
| 13 |
pTofID(const char *c=0){ SetHitID(c); } |
| 14 |
|
| 15 |
void SetHitID(const char *c){ |
| 16 |
int *temp =(int *) c; |
| 17 |
_ipltof=*temp++; |
| 18 |
_ipaddle=*temp; |
| 19 |
} |
| 20 |
|
| 21 |
int GetIpltof() const {return _ipltof;} |
| 22 |
int GetIpaddle() const {return _ipaddle;} |
| 23 |
void SetIpltof(const int & i){_ipltof=i;} |
| 24 |
void SetIpaddle(const int & i){_ipaddle=i;} |
| 25 |
|
| 26 |
void Print() { |
| 27 |
cout << "pTofID : Ipltof, Ipaddle = " |
| 28 |
<< GetIpltof() <<", " << GetIpaddle() << endl; |
| 29 |
} |
| 30 |
|
| 31 |
private: |
| 32 |
|
| 33 |
int _ipltof; |
| 34 |
int _ipaddle; |
| 35 |
|
| 36 |
|
| 37 |
}; |
| 38 |
|
| 39 |
#endif //PTOFID_H |