Parent Directory
|
Revision Log
Stable version, lot of changes, ROOT support included, persistency not yet activated
| 1 | pamela | 1.1 | #ifndef PTOFID_H |
| 2 | #define PTOFID_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 pTofID :public pHitID { | ||
| 11 | |||
| 12 | public: | ||
| 13 | |||
| 14 | pTofID(const char *c=0){ SetHitID(c); } | ||
| 15 | |||
| 16 | void SetHitID(const char *c){ | ||
| 17 | int *temp =(int *) c; | ||
| 18 | _ipltof=*temp++; | ||
| 19 | _ipaddle=*temp; | ||
| 20 | } | ||
| 21 | |||
| 22 | int GetIpltof() const {return _ipltof;} | ||
| 23 | int GetIpaddle() const {return _ipaddle;} | ||
| 24 | void SetIpltof(const int & i){_ipltof=i;} | ||
| 25 | void SetIpaddle(const int & i){_ipaddle=i;} | ||
| 26 | |||
| 27 | void Print() { | ||
| 28 | cout << "pTofID : Ipltof, Ipaddle = " | ||
| 29 | << GetIpltof() <<", " << GetIpaddle() << endl; | ||
| 30 | } | ||
| 31 | |||
| 32 | private: | ||
| 33 | |||
| 34 | int _ipltof; | ||
| 35 | int _ipaddle; | ||
| 36 | |||
| 37 | |||
| 38 | cafagna | 1.2 | public: |
| 39 | ClassDef(pTofID,1); | ||
| 40 | |||
| 41 | pamela | 1.1 | }; |
| 42 | |||
| 43 | #endif //PTOFID_H | ||
| 44 | cafagna | 1.2 |
| ViewVC Help | |
| Powered by ViewVC 1.1.23 |