Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pid_dirc/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 
33  Int_t GetPdg() const { return fPdg; }
34  Int_t GetParent() const { return fParent; }
35  TVector3 GetMomentum() const { return fMomentum; }
36  TVector3 GetPosition() const { return fPosition; }
37  Int_t GetHitSize() const { return fHitSize; }
38  Double_t GetTest1() const { return fTest1; }
39  Double_t GetTest2() const { return fTest2; }
40 
41  // Mutators
42  void SetId(Int_t val) { fId=val; }
43  void SetType(Int_t val) { fType=val; }
44  void SetTime(Double_t val) { fTime=val; }
45 
46  void SetPdg(Int_t val) { fPdg = val; }
47  void SetParent(Int_t val) { fParent = val; }
48  void SetMomentum(TVector3 val) { fMomentum = val; }
49  void SetPosition(TVector3 val) { fPosition = val; }
50  void SetTest1(Double_t val) { fTest1 = val; }
51  void SetTest2(Double_t val) { fTest2 = val; }
52 
53 private:
54  Int_t fId;
55  Int_t fType;
56  Int_t fPdg;
57  Int_t fParent;
58  Double_t fTime;
59 
60  Int_t fHitSize;
61  std::vector<DrcHit> fHitArray;
62 
63  TVector3 fMomentum;
64  TVector3 fPosition;
65  Double_t fTest1;
66  Double_t fTest2;
67 
68  ClassDef(DrcEvent, 2);
69 };
70 
71 #endif
72 
73 // #if defined(__ROOTCLING__)
74 // #pragma link C++ class DrcEvent+;
75 // #endif
void SetTime(Double_t val)
Int_t GetPdg() const
Double_t fTime
TVector3 GetPosition() const
ClassDef(DrcEvent, 3)
void SetId(Int_t val)
void SetType(Int_t val)
Double_t GetTest1() const
TVector3 fMomentum
void AddHit(DrcHit hit)
Int_t GetId() const
void SetParent(Int_t val)
TVector3 GetMomentum() const
void SetMomentum(TVector3 val)
Double_t GetTest2() const
Int_t GetType() const
std::vector< DrcHit > GetHits()
Double_t fTest2
void SetPosition(TVector3 val)
DrcHit GetHit(Int_t ind)
TVector3 fPosition
void SetTest1(Double_t val)
Double_t fTest1
Double_t GetTime() const
void SetPdg(Int_t val)
Int_t GetParent() const
Int_t GetHitSize() const
void SetTest2(Double_t val)
std::vector< DrcHit > fHitArray