-
Notifications
You must be signed in to change notification settings - Fork 2
/
MGMRisetimeInfo.hh
48 lines (40 loc) · 1.36 KB
/
MGMRisetimeInfo.hh
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
#ifndef _MGMRisetimeInfo_hh_
#define _MGMRisetimeInfo_hh_ 1
#include "TObject.h"
#include <vector>
class MGMRisetimeOneChannelInfo
{
public:
MGMRisetimeOneChannelInfo() : start(0), stop(0),
risetime(0),
maximum(0), minimum(0),
max_point(0), min_point(0) {}
MGMRisetimeOneChannelInfo(Double_t aStart, Double_t aStop,
Double_t aRT,
Double_t amax, Double_t amin,
UInt_t max_pt, UInt_t min_pt) :
start(aStart), stop(aStop),
risetime(aRT),
maximum(amax), minimum(amin),
max_point(max_pt), min_point(min_pt) {}
public:
Double_t start;
Double_t stop;
Double_t risetime;
Double_t maximum;
Double_t minimum;
UInt_t max_point;
UInt_t min_point;
ClassDef(MGMRisetimeOneChannelInfo,3)
};
class MGMRisetimeInfo: public TObject
{
public:
std::vector<MGMRisetimeOneChannelInfo> channels;
MGMRisetimeOneChannelInfo& GetChannel(size_t i) { return channels[i]; }
MGMRisetimeOneChannelInfo& operator[](size_t i) { return channels[i]; }
size_t GetNumChannels() { return channels.size(); }
size_t size() { return channels.size(); }
ClassDef(MGMRisetimeInfo,2)
};
#endif /* _MGMRisetimeInfo_hh_ */