-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTigEvent.h
More file actions
57 lines (51 loc) · 1.76 KB
/
TigEvent.h
File metadata and controls
57 lines (51 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef TIGEVENT_H
#define TIGEVENT_H
#include <vector>
#include <string>
class TigEvent
{
public: //----- public ---------------------
TigEvent(void);
~TigEvent(void);
int Address(){return mAddress;}
void AddWfSample(int pSample);
int CalcWfBase(std::vector<int> pParameters);
int CalcWfEnergy(std::vector<int> pParameters);
int CalcWfMaxBin();
int CalcWfMinBin();
int CalcWfPeak(std::vector<int> pParameters);
int CFD(){return mCFD;}
int Charge(){return mCharge;}
int EventID(){return mEventID;}
int Lifetime(){return mLifetime;}
void SetAddress(int pAddress){mAddress=pAddress;}
void SetCFD(int pCFD){mCFD=pCFD;}
void SetCharge(int pCharge){mCharge=pCharge;}
void SetEventID(int pEventID){mEventID = pEventID;}
void SetLifetime(int pLifetime){mLifetime = pLifetime;}
void SetTimestamp(int pTimestamp){mTimestamp = pTimestamp;}
void SetTimestampUp(int pTimestampUp){mTimestampUp = pTimestampUp;}
void SetTriggersAccepted(int pTriggers){mTriggersAccepted = pTriggers;}
void SetTriggersRequested(int pTriggers){mTriggersRequested = pTriggers;}
int Timestamp(){return mTimestamp;}
int TimestampUp(){return mTimestampUp;}
int TriggersAccepted(){return mTriggersAccepted;}
int TriggersRequested(){return mTriggersRequested;}
int Value(int pDataType, std::vector<int> pParameters);
std::vector<short> Waveform(){return mWaveform;}
protected: //----- protected ------------------
int mAddress;
int mCharge;
int mCFD;
int mEventID;
int mLifetime;
int mTimestamp;
int mTimestampUp;
int mTriggersAccepted;
int mTriggersRequested;
std::vector<short> mWaveform;
private: //----- private --------------------
TigEvent(const TigEvent& pToCopy);
TigEvent& operator = (const TigEvent& pToCopy);
};
#endif /* TIGEVENT_H */