/[PAMELA software]/gp2root/pHit.h
ViewVC logotype

Annotation of /gp2root/pHit.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (download) (vendor branch)
Wed Apr 19 23:35:57 2006 UTC (18 years, 7 months ago) by pamela
Branch: v1r0
CVS Tags: start
Changes since 1.1: +0 -0 lines
File MIME type: text/plain
First release

1 pamela 1.1 #ifndef PHIT_H
2     #define PHIT_H
3    
4     #include <vector>
5     #include "pHitID.h"
6    
7    
8     class pHit {
9    
10     public:
11    
12     pHit( const float & xin=0, const float &yin=0,const float &zin=0,
13     const float & erel=0,const float & p0=0, const int &ipart=0,
14     pHitID *hid=0):
15     _xin(xin), _yin(yin), _zin(zin), _erel(erel), _p0(p0), _ipart(ipart)
16     {
17     SetHitID(hid);
18     }
19    
20     void SetHitID(pHitID * hid){_hid=hid;}
21     void SetXin(const float & x){_xin=x;}
22     void SetYin(const float & x){_yin=x;}
23     void SetZin(const float & x){_zin=x;}
24     void SetErel(const float & x){_erel=x;}
25     void SetP0(const float & x){_p0=x;}
26     void SetIpart(const int & i){_ipart=i;}
27    
28     pHitID* GetHitID() const { return _hid;}
29     float GetXin() const {return _xin;}
30     float GetYin() const {return _yin;}
31     float GetZin() const {return _zin;}
32     float GetErel() const {return _erel;}
33     float GetP0() const {return _p0;}
34     int GetIpart()const {return _ipart;}
35    
36     virtual void Print() const =0;
37    
38     private:
39     float _xin,_yin,_zin;
40     float _erel;
41     float _p0;
42     int _ipart;
43     pHitID *_hid;
44    
45     };
46    
47     typedef std::vector<pHit*> pHitColl;
48    
49     #endif //PHIT_H

  ViewVC Help
Powered by ViewVC 1.1.23