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