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