Parent Directory | Revision Log
First release
1 | pamela | 1.1 | #ifndef PCATID_H |
2 | #define PCATID_H | ||
3 | #include <iostream> | ||
4 | #include "pHitID.h" | ||
5 | |||
6 | using std::cout; | ||
7 | using std::endl; | ||
8 | |||
9 | class pCatID :public pHitID { | ||
10 | |||
11 | public: | ||
12 | |||
13 | pCatID(const char *c=0){ SetHitID(c);} | ||
14 | |||
15 | void SetHitID(const char *c){_icat=(int) *c;} | ||
16 | |||
17 | int GetIcat(){return _icat;} | ||
18 | |||
19 | void Print(){ | ||
20 | cout << "pCatID : Icat= " << GetIcat() << endl; | ||
21 | } | ||
22 | |||
23 | private: | ||
24 | |||
25 | int _icat; | ||
26 | |||
27 | |||
28 | }; | ||
29 | |||
30 | #endif //PCATID_H |
ViewVC Help | |
Powered by ViewVC 1.1.23 |