er  dev
ERmuSiVertex.h
1 // -------------------------------------------------------------------------
2 // ----- ERmuSiVertex header file -----
3 // ----- Created 04/16 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERMUSIVERTEX_H
7 #define ERMUSIVERTEX_H
8 
9 #include "TObject.h"
10 
11 class ERmuSiVertex : public TObject{
12 private:
13  Int_t fTracksID[3];
14  Int_t fTracksNb;
15  Float_t fX, fY, fZ;
16 public:
17  ERmuSiVertex();
18  ERmuSiVertex(Float_t x, Float_t y, Float_t z);
19 
20  void AddTrack(Int_t id);
21 
22  Int_t TrackNb() const {return fTracksNb;}
23  Int_t Track(Int_t id) const;
24  Float_t X() const {return fX;}
25  Float_t Y() const {return fY;}
26  Float_t Z() const {return fZ;}
27 
28  void SetX(Float_t x){fX = x;}
29  void SetY(Float_t y){fY = y;}
30  void SetZ(Float_t z){fZ = z;}
31 
32  ClassDef(ERmuSiVertex, 1)
33 };
34 
35 #endif
36