1 |
pamela |
1.1 |
#ifndef PCALID_H |
2 |
|
|
#define PCALID_H |
3 |
|
|
#include <iostream> |
4 |
|
|
#include "pHitID.h" |
5 |
|
|
|
6 |
|
|
using std::cout; |
7 |
|
|
using std::endl; |
8 |
|
|
|
9 |
|
|
class pCalID :public pHitID { |
10 |
|
|
|
11 |
|
|
public: |
12 |
|
|
|
13 |
|
|
pCalID(const char *c=0){SetHitID(c);} |
14 |
|
|
|
15 |
|
|
void SetHitID(const char *c){ |
16 |
|
|
int *temp =(int *) c; |
17 |
|
|
_icapl=*temp++; |
18 |
|
|
_icasi=*temp++; |
19 |
|
|
_icast=*temp; |
20 |
|
|
} |
21 |
|
|
|
22 |
|
|
int GetIcapl(){return _icapl;} |
23 |
|
|
int GetIcasi(){return _icasi;} |
24 |
|
|
int GetIcast(){return _icast;} |
25 |
|
|
void SetIcapl(const int & i){_icapl=i;} |
26 |
|
|
void SetIcasi(const int & i){_icasi=i;} |
27 |
|
|
void SetIcast(const int & i){_icast=i;} |
28 |
|
|
|
29 |
|
|
void Print(){ |
30 |
|
|
cout << "pCalID : Icapl, Icasi, Icast= " |
31 |
|
|
<< GetIcapl()<<", "<< GetIcasi() <<", " << GetIcast() << endl; |
32 |
|
|
} |
33 |
|
|
|
34 |
|
|
private: |
35 |
|
|
|
36 |
|
|
int _icapl; |
37 |
|
|
int _icasi; |
38 |
|
|
int _icast; |
39 |
|
|
|
40 |
|
|
}; |
41 |
|
|
|
42 |
|
|
#endif //PCALID_H |