PandaRoot
PndMvdApvHit.h
Go to the documentation of this file.
1 // --------------------------------------------------------
2 // ---- PndMvdApvHit header file ---
3 // ---- Created 07.01.09 HGZ by Lars Ackermann ---
4 // ---- on the basic of the ana tool of dts ---
5 // --------------------------------------------------------
6 
11 #ifndef PNDMVDAPV_H
12 #define PNDMVDAPV_H
13 #include "TObject.h"
14 #include <iostream>
15 
17 
18 class PndMvdApvHit : public TObject {
19  public:
20  PndMvdApvHit() : fEventID(-1), fModuleID(-1), fFeID(-1), fTriggerID(-1.), fChannel(-1), fTimestamp(-1.), fFrameID(-1), fADC(-1.), fLength(0) {}
33  PndMvdApvHit(long int eventID, Int_t moduleID, Int_t fe, Double_t triggerID, Double_t timestamp, Int_t frame, Int_t channel, Double_t adc, Int_t length)
34  : fEventID(eventID), fModuleID(moduleID), fFeID(fe), fTriggerID(triggerID), fChannel(channel), fTimestamp(timestamp), fFrameID(frame), fADC(adc), fLength(length)
35  {
36  }
38 
44  Int_t GetChannel() const { return fChannel; }
45 
51  Double_t GetTimestamp() const { return fTimestamp; }
52 
57  Int_t GetFrameID() const { return fFrameID; }
58 
63  Double_t GetADC() const { return fADC; }
64 
69  Int_t GetLength() const { return fLength; }
70 
75  Int_t GetFeID() const { return fFeID; }
76 
82  void SetFeID(Int_t new_FE)
83  {
84  fFeID = new_FE;
85  return;
86  }
87 
92  long int GetEventID() const { return fEventID; }
93 
98  Int_t GetModuleID() const { return fModuleID; }
99 
104  Double_t GetTriggerID() const { return fTriggerID; }
105 
106  private:
107  long int fEventID;
108  Int_t fModuleID;
109  Int_t fFeID;
110  Double_t fTriggerID;
111  Int_t fChannel;
112  Double_t fTimestamp;
113  Int_t fFrameID;
114  Double_t fADC;
115  Int_t fLength;
116 
117  ClassDef(PndMvdApvHit, 1);
118 };
120 #endif
Int_t GetFrameID() const
Definition: PndMvdApvHit.h:57
Int_t GetModuleID() const
Definition: PndMvdApvHit.h:98
long int GetEventID() const
Definition: PndMvdApvHit.h:92
Double_t GetTriggerID() const
Definition: PndMvdApvHit.h:104
ClassImp(PndMvdApvHit)
Int_t GetLength() const
Definition: PndMvdApvHit.h:69
Double_t GetTimestamp() const
Definition: PndMvdApvHit.h:51
Double_t GetADC() const
Definition: PndMvdApvHit.h:63
Int_t GetChannel() const
Definition: PndMvdApvHit.h:44
Class to store data of Apv-Sensors.
Definition: PndMvdApvHit.h:18
void SetFeID(Int_t new_FE)
Definition: PndMvdApvHit.h:82
PndMvdApvHit(long int eventID, Int_t moduleID, Int_t fe, Double_t triggerID, Double_t timestamp, Int_t frame, Int_t channel, Double_t adc, Int_t length)
Definition: PndMvdApvHit.h:33
Int_t GetFeID() const
Definition: PndMvdApvHit.h:75