/
HistTDCWidth.h
49 lines (36 loc) · 978 Bytes
/
HistTDCWidth.h
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
// Andrei Gaponenko, 2013
#ifndef HistTDCWidth_h
#define HistTDCWidth_h
#include <vector>
#include "TDCHitWP.h"
class TH1;
class TH2;
class HistogramFactory;
class ConfigFile;
//================================================================
class HistTDCWidth {
public:
void init(const std::string& hdir,
const std::string& namePrefix,
unsigned maxPlaneNumber,
HistogramFactory &hf,
const ConfigFile &conf);
void fill(const TDCHitWPCollection& hits);
void fill(const TDCHitWPPtrCollection& hits);
HistTDCWidth() : hWidth_() {}
private :
TH1 *hWidth_;
std::vector<TH1*> byPlane_;
TH1 *hminWidth_;
TH1 *hmaxWidth_;
TH1 *hmeanWidth_;
TH1 *hmedianWidth_;
TH1 *hhitsPerSet_;
std::vector<TH1*> minWidth_;
std::vector<TH1*> maxWidth_;
std::vector<TH1*> meanWidth_;
std::vector<TH1*> medianWidth_;
std::vector<TH1*> hitsPerSet_;
void fill(const TDCHitWP& hit);
};
#endif/*HistTDCWidth_h*/