Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dirc_tree/DrcEvent.h
Go to the documentation of this file.
1 // -----------------------------------------
2 // DrcEvent.h
3 //
4 // Author : R.Dzhygadlo at gsi.de
5 // -----------------------------------------
6 
7 #ifndef DrcEvent_h
8 #define DrcEvent_h 1
9 
10 #include <vector>
11 
12 #include "TObject.h"
13 #include "TVector3.h"
14 
15 #include "DrcHit.h"
16 
17 class DrcEvent: public TObject {
18 
19 public:
20 
21  DrcEvent(); //the default constructor
22  ~DrcEvent() {};
23 
24  void AddHit(DrcHit hit);
25  DrcHit GetHit(Int_t ind) { return fHitArray[ind]; }
26  std::vector<DrcHit> GetHits() { return fHitArray; }
27 
28  // Accessors
29  Int_t GetId() const { return fId; }
30  Int_t GetType() const { return fType; }
31  Double_t GetTime() const { return fTime; }
32  Double_t GetInvMass() const { return fInvMass; }
33  Double_t GetMissMass() const { return fMissMass; }
34  Double_t GetChiSq() const { return fChiSq; }
35  Double_t GetTofTrackDist() const { return fTofTrackDist; }
36 
37  Int_t GetPdg() const { return fPdg; }
38  Int_t GetParent() const { return fParent; }
39  Int_t GetDcHits() const { return fDcHits; }
40  TVector3 GetMomentum() const { return fMomentum; }
41  TVector3 GetPosition() const { return fPosition; }
42  Int_t GetHitSize() const { return fHitSize; }
43  Double_t GetTest1() const { return fTest1; }
44  Double_t GetTest2() const { return fTest2; }
45 
46  // Mutators
47  void SetId(Int_t val) { fId=val; }
48  void SetType(Int_t val) { fType=val; }
49  void SetTime(Double_t val) { fTime=val; }
50  void SetInvMass(Double_t val) { fInvMass=val; }
51  void SetMissMass(Double_t val){ fMissMass=val; }
52  void SetChiSq(Double_t val) { fChiSq=val; }
53  void SetTofTrackDist(Double_t val) { fTofTrackDist=val; }
54 
55  void SetPdg(Int_t val) { fPdg = val; }
56  void SetParent(Int_t val) { fParent = val; }
57  void SetDcHits(Int_t val) { fDcHits = val; }
58  void SetMomentum(TVector3 val){ fMomentum = val; }
59  void SetPosition(TVector3 val){ fPosition = val; }
60  void SetTest1(Double_t val) { fTest1 = val; }
61  void SetTest2(Double_t val) { fTest2 = val; }
62 
63 private:
64  Int_t fId;
65  Int_t fType;
66  Int_t fPdg;
67  Int_t fParent;
68  Int_t fDcHits;
69  Double_t fTime;
70  Double_t fInvMass;
71  Double_t fMissMass;
72  Double_t fChiSq;
73  Double_t fTofTrackDist;
74 
75  Int_t fHitSize;
76  std::vector<DrcHit> fHitArray;
77 
78  TVector3 fMomentum;
79  TVector3 fPosition;
80  Double_t fTest1;
81  Double_t fTest2;
82 
83  ClassDef(DrcEvent, 3);
84 };
85 
86 #endif
87 
88 // #if defined(__ROOTCLING__)
89 // #pragma link C++ class DrcEvent+;
90 // #endif
void SetTime(Double_t val)
Int_t GetPdg() const
Double_t GetChiSq() const
Double_t fMissMass
void SetMissMass(Double_t val)
Double_t fTime
TVector3 GetPosition() const
ClassDef(DrcEvent, 3)
Double_t GetTofTrackDist() const
void SetId(Int_t val)
void SetType(Int_t val)
Double_t GetTest1() const
Double_t fTofTrackDist
TVector3 fMomentum
void SetChiSq(Double_t val)
void AddHit(DrcHit hit)
Int_t GetId() const
void SetParent(Int_t val)
Int_t GetDcHits() const
void SetDcHits(Int_t val)
TVector3 GetMomentum() const
void SetTofTrackDist(Double_t val)
void SetMomentum(TVector3 val)
Double_t GetTest2() const
Int_t GetType() const
std::vector< DrcHit > GetHits()
Double_t fTest2
void SetInvMass(Double_t val)
void SetPosition(TVector3 val)
DrcHit GetHit(Int_t ind)
TVector3 fPosition
Double_t GetMissMass() const
void SetTest1(Double_t val)
Double_t fTest1
Double_t GetTime() const
void SetPdg(Int_t val)
Int_t GetParent() const
Double_t fInvMass
Int_t GetHitSize() const
Double_t GetInvMass() const
Double_t fChiSq
void SetTest2(Double_t val)
std::vector< DrcHit > fHitArray