HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Pmm2Mes.h
Go to the documentation of this file.
1 #ifndef PMM2MES_H
2 #define PMM2MES_H
3 //
5 // Pmm2Mes
6 //
7 // Description of the PMM2 data from one channel
8 //
9 
10 //#include "TObject.h"
11 #include "Rtypes.h"
12 
13 class Pmm2Reader;
14 
15 //class Pmm2Mes : public TObject
16 class Pmm2Mes
17 {
18  public:
19 
20  // Consrtructor
21  // Pmm2Mes();
22 
23  // virtual ~Pmm2Mes();
24 
25  void print() const;
26 
27  // getters
28  Int_t getChNum() const {
29  return _ChannelNum;
30  }
31 
32  Int_t getTimeStamp() const {
33  return _TimeStamp;
34  }
35 
36  Int_t getTsSign() const {
37  return _TimeStampSign;
38  }
39 
40  Int_t getGain() const {
41  return _Gain;
42  }
43 
44  Int_t getFTime() const {
45  return _FineTime;
46  }
47 
48  Int_t getTRamp() const {
49  return _TdcRamp;
50  }
51 
52  Int_t getCharge() const {
53  return _Charge;
54  }
55 
56  Int_t GetNU0() const {
57  return _nu0;
58  }
59 
60  Int_t getPPS() const {
61  return _PPSCounter;
62  }
63 
64  friend class Pmm2Reader;
65  friend class HarpoSimReader;
66 
67  private:
69  UInt_t _ChannelNum; // 4 bits(0 .. 3) - Channel number
70  UInt_t _TimeStamp; // 24 bits(4 .. 27) - Time Stamp (1LSB = 100ns)
71  UInt_t _TimeStampSign;
72  UInt_t _Gain;
73  UInt_t _FineTime;
74  UInt_t _TdcRamp;
75  UInt_t _Charge; // 10 bits(41 ..50) - Charge
76 
77  UInt_t _nu0;
78  UInt_t _PPSCounter; // 4 bits(52 .. 55) - PSS Counter
80 
81 };
82 
83 #endif
84 
UInt_t _PPSCounter
FPGA data.
Definition: Pmm2Mes.h:79
A class which read HARPO sim file from one SIM and creant Sim Events and Sim Headers for SIM Events o...
UInt_t _TdcRamp
10 bits(30..39) - Fine Time
Definition: Pmm2Mes.h:74
Int_t getTRamp() const
Definition: Pmm2Mes.h:48
Int_t getCharge() const
Definition: Pmm2Mes.h:52
Int_t getGain() const
Definition: Pmm2Mes.h:40
UInt_t _Charge
1 bit(40) - TDC Ramp
Definition: Pmm2Mes.h:75
Int_t getFTime() const
Definition: Pmm2Mes.h:44
Int_t getTsSign() const
Definition: Pmm2Mes.h:36
UInt_t _nu0
Definition: Pmm2Mes.h:77
UInt_t _TimeStamp
Definition: Pmm2Mes.h:70
Int_t GetNU0() const
Definition: Pmm2Mes.h:56
UInt_t _TimeStampSign
Definition: Pmm2Mes.h:71
UInt_t _FineTime
1 bit(29) - ADC Gain
Definition: Pmm2Mes.h:73
A one channel mesurements for Pmm2v2 card The class is represent one channel data of Pmm2v2 card for ...
Definition: Pmm2Mes.h:16
UInt_t _Gain
1 bit(28) - Time Stamp Counter
Definition: Pmm2Mes.h:72
Int_t getChNum() const
Definition: Pmm2Mes.h:28
A class which read HARPO raw file from PMM2 and create Raw Events objects.
Definition: Pmm2Reader.h:31
Int_t getTimeStamp() const
Definition: Pmm2Mes.h:32
Int_t getPPS() const
Definition: Pmm2Mes.h:60
void print() const
print Mesurement in csv format, same as ConvertToCsv in PMM2v2_DAQ
Definition: Pmm2Mes.cxx:22
UInt_t _ChannelNum
Event can access to class varibales.
Definition: Pmm2Mes.h:69