Parent Directory | Revision Log
First release
1 | #ifndef PCALHIT_H |
2 | #define PCALHIT_H |
3 | #include <iostream> |
4 | #include "pHit.h" |
5 | #include "pCalID.h" |
6 | |
7 | using std::cout; |
8 | using std::endl; |
9 | |
10 | class pCalHit: public pHit { |
11 | |
12 | public: |
13 | |
14 | pCalHit(){}; |
15 | pCalHit(const char *c){ |
16 | int *temp = (int*) c; |
17 | SetHitID( new pCalID(c)); |
18 | temp++; |
19 | temp++; |
20 | temp++; |
21 | SetXin(*((float*)temp) ); |
22 | temp++; |
23 | SetYin(*((float*)temp) ); |
24 | temp++; |
25 | SetZin(*((float*)temp) ); |
26 | temp++; |
27 | SetErel( *((float*)temp) ); |
28 | } |
29 | |
30 | |
31 | void Print() const { |
32 | cout << "pCalHit : " << endl; |
33 | GetHitID()->Print() ; |
34 | cout << " xin,yin,zin = " |
35 | << GetXin() <<", " |
36 | << GetYin() <<", " |
37 | << GetZin() << endl; |
38 | cout << " erel= " |
39 | << GetErel() <<endl; |
40 | |
41 | } |
42 | |
43 | private: |
44 | |
45 | }; |
46 | |
47 | #endif //PCALHIT_H |
ViewVC Help | |
Powered by ViewVC 1.1.23 |