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

Diff of /gp2root/pHit.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pamela, Wed Apr 19 23:35:57 2006 UTC revision 1.2 by cafagna, Sun Oct 22 08:26:57 2006 UTC
# Line 3  Line 3 
3    
4  #include <vector>  #include <vector>
5  #include "pHitID.h"  #include "pHitID.h"
6    #include "TObject.h"
7    
8    class pHit :public TObject {
 class pHit {  
9    
10  public:  public:
11    
12    pHit(  const float & xin=0, const float &yin=0,const float &zin=0,    pHit() {
13           const float & erel=0,const float & p0=0, const int &ipart=0,       _xin=_yin=_zin=_erel=_p0=0.;
14           pHitID *hid=0):       _ipart=0;
15         SetHitID(0);
16    
17      };
18    
19      pHit(  const float & xin, const float &yin,const float &zin,
20             const float & erel,const float & p0, const int &ipart,
21             pHitID *hid):
22      _xin(xin), _yin(yin), _zin(zin), _erel(erel), _p0(p0), _ipart(ipart)      _xin(xin), _yin(yin), _zin(zin), _erel(erel), _p0(p0), _ipart(ipart)
23    {    {
24      SetHitID(hid);      SetHitID(hid);
25    }    }
26    
27      virtual ~pHit(){};
28    void SetHitID(pHitID * hid){_hid=hid;}    void SetHitID(pHitID * hid){_hid=hid;}
29    void SetXin(const float & x){_xin=x;}    void SetXin(const float & x){_xin=x;}
30    void SetYin(const float & x){_yin=x;}    void SetYin(const float & x){_yin=x;}
# Line 35  public: Line 43  public:
43    
44    virtual void Print() const =0;    virtual void Print() const =0;
45    
46    
47  private:  private:
48    float _xin,_yin,_zin;    float _xin,_yin,_zin;
49    float _erel;    float _erel;
50    float _p0;    float _p0;
51    int _ipart;    int _ipart;
52    pHitID *_hid;    pHitID *_hid;
53      
54    public:
55      //#ifndef __GNUC__
56      ClassDef(pHit,1);
57      //#endif
58  };  };
59    
60  typedef std::vector<pHit*> pHitColl;  typedef std::vector<pHit*> pHitColl;
61    
62  #endif //PHIT_H  #endif //PHIT_H
63    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.23