PandaRoot
PndSdsApvHit.h
Go to the documentation of this file.
1 // --------------------------------------------------------
2 // ---- PndSdsApvHit 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 PNDSDSAPV_H
12 #define PNDSDSAPV_H
13 #include "TObject.h"
14 #include <iostream>
15 
17 
18 class PndSdsApvHit : public TObject {
19  public:
33  PndSdsApvHit(long int eventID, Int_t moduleID, Int_t fe, Int_t triggerID, Int_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  Int_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  Int_t GetTriggerID() const { return fTriggerID; }
105 
106  private:
107  long int fEventID;
108  Int_t fModuleID;
109  Int_t fFeID;
110  Int_t fTriggerID;
111  Int_t fChannel;
112  Int_t fTimestamp;
113  Int_t fFrameID;
114  Double_t fADC;
115  Int_t fLength;
116 
117  ClassDef(PndSdsApvHit, 1);
118 };
120 #endif
void SetFeID(Int_t new_FE)
Definition: PndSdsApvHit.h:82
Int_t GetFrameID() const
Definition: PndSdsApvHit.h:57
Int_t GetTimestamp() const
Definition: PndSdsApvHit.h:51
Double_t GetADC() const
Definition: PndSdsApvHit.h:63
Int_t GetChannel() const
Definition: PndSdsApvHit.h:44
Class to store data of Apv-Sensors.
Definition: PndSdsApvHit.h:18
Int_t GetTriggerID() const
Definition: PndSdsApvHit.h:104
ClassImp(PndSdsApvHit)
Int_t GetModuleID() const
Definition: PndSdsApvHit.h:98
long int GetEventID() const
Definition: PndSdsApvHit.h:92
Int_t GetFeID() const
Definition: PndSdsApvHit.h:75
Int_t GetLength() const
Definition: PndSdsApvHit.h:69
PndSdsApvHit(long int eventID, Int_t moduleID, Int_t fe, Int_t triggerID, Int_t timestamp, Int_t frame, Int_t channel, Double_t adc, Int_t length)
Definition: PndSdsApvHit.h:33