-
Notifications
You must be signed in to change notification settings - Fork 2
/
MGMBeGeChannelInfo.hh
33 lines (27 loc) · 967 Bytes
/
MGMBeGeChannelInfo.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
#ifndef _MGMBeGeChannelInfo_hh_
#define _MGMBeGeChannelInfo_hh_ 1
#include "TObject.h"
#include <vector>
class MGMBeGeOneChannelInfo
{
public:
MGMBeGeOneChannelInfo() : baseline(0), maximum(0), minimum(0), averagepeak(0) {}
MGMBeGeOneChannelInfo(Double_t aBase, Double_t aMax, Double_t aMin, Double_t aPeak) :
baseline(aBase), maximum(aMax), minimum(aMin), averagepeak(aPeak) {}
Double_t baseline;
Double_t maximum;
Double_t minimum;
Double_t averagepeak;
ClassDef(MGMBeGeOneChannelInfo,2)
};
class MGMBeGeChannelInfo: public TObject
{
public:
std::vector<MGMBeGeOneChannelInfo> channels;
MGMBeGeOneChannelInfo& GetChannel(size_t i) { return channels[i]; }
MGMBeGeOneChannelInfo& operator[](size_t i) { return channels[i]; }
size_t GetNumChannels() { return channels.size(); }
size_t size() { return channels.size(); }
ClassDef(MGMBeGeChannelInfo,2)
};
#endif /* _MGMBeGeChannelInfo_hh_ */