StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MyPoint.h
1 #ifndef MYPOINT_H
2 #define MYPOINT_H
3 
4 #include <TObject.h>
5 #include <TVector3.h>
6 
7 class MyPoint : public TObject{
8  protected:
9  Float_t fEnergy;
10  Int_t fQuality;
11  TVector3 fPosition;
12  Float_t fDisToTrack;
13  //tow clusters
14  Int_t fTowClusId[4];
15  Float_t fTowClusEn[4];
16  //smd clusters
17  Int_t fNeta;
18  Int_t fNphi;
19  Float_t fEnEta;
20  Float_t fSigmaEta;
21  Float_t fEnPhi;
22  Float_t fSigmaPhi;
23 
24 
25  public:
26  MyPoint();
27  MyPoint(Float_t,Int_t,const TVector3&,Float_t,Int_t,Int_t);
28  MyPoint(MyPoint*);
29  ~MyPoint();
30 
31  Float_t energy() {return fEnergy;}
32  Int_t quality() {return fQuality;}
33  TVector3 position() {return fPosition;}
34  Float_t distanceToTrack() {return fDisToTrack;}
35  Int_t towerClusterId(Int_t val) {return fTowClusId[val];}
36  Float_t towerClusterEnergy(Int_t val) {return fTowClusEn[val];}
37  Int_t nHitsEta() {return fNeta;}
38  Int_t nHitsPhi() {return fNphi;}
39  Float_t widthEta() {return fSigmaEta;}
40  Float_t widthPhi() {return fSigmaPhi;}
41  Float_t energyEta() {return fEnEta;}
42  Float_t energyPhi() {return fEnPhi;}
43 
44  void setEnergy(Float_t val) {fEnergy=val;}
45  void setQuality(Int_t val) {fQuality=val;}
46  void setPosition(Float_t x,Float_t y,Float_t z){
47  fPosition.SetX(x);
48  fPosition.SetY(y);
49  fPosition.SetZ(z);
50  }
51  void setDistanceToTrack(Float_t val) {fDisToTrack=val;}
52  void setTowerClusterId(Int_t i,Int_t val) {fTowClusId[i]=val;}
53  void setTowerClusterEnergy(Int_t i,Float_t val) {fTowClusEn[i]=val;}
54  void setHitsEta(Int_t val) {fNeta=val;}
55  void setHitsPhi(Int_t val) {fNphi=val;}
56  void setWidthEta(Float_t val) {fSigmaEta=val;}
57  void setWidthPhi(Float_t val) {fSigmaPhi=val;}
58  void setEnergyEta(Float_t val) {fEnEta=val;}
59  void setEnergyPhi(Float_t val) {fEnPhi=val;}
60 
61 
62 
63  ClassDef(MyPoint,4)
64 };
65 #endif
Definition: MyPoint.h:7