Parent Directory | Revision Log
Stable version, lot of changes, ROOT support included, persistency not yet activated
1 | pamela | 1.1 | #ifndef PCATID_H |
2 | #define PCATID_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 pCatID :public pHitID { | ||
11 | |||
12 | public: | ||
13 | |||
14 | pCatID(const char *c=0){ SetHitID(c);} | ||
15 | |||
16 | void SetHitID(const char *c){_icat=(int) *c;} | ||
17 | |||
18 | int GetIcat(){return _icat;} | ||
19 | |||
20 | void Print(){ | ||
21 | cout << "pCatID : Icat= " << GetIcat() << endl; | ||
22 | } | ||
23 | |||
24 | private: | ||
25 | |||
26 | int _icat; | ||
27 | |||
28 | |||
29 | cafagna | 1.2 | public: |
30 | ClassDef(pCatID,1); | ||
31 | |||
32 | pamela | 1.1 | }; |
33 | |||
34 | #endif //PCATID_H | ||
35 | cafagna | 1.2 |
ViewVC Help | |
Powered by ViewVC 1.1.23 |