-
Notifications
You must be signed in to change notification settings - Fork 1
/
HistProtonPID.h
67 lines (51 loc) · 1.34 KB
/
HistProtonPID.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Andrei Gaponenko, 2014
#ifndef HistProtonPID_h
#define HistProtonPID_h
#include <string>
#include "WireCluster.h"
#include "HistTDCSinglePlanePID.h"
#include "HistRangePID.h"
class TH1;
class TH2;
class TProfile2D;
class HistogramFactory;
class ConfigFile;
class EventClass;
//================================================================
class HistProtonPID {
public:
void init(const std::string& hdir,
HistogramFactory& hf,
const ConfigFile& conf);
// Returns a PID variable
double fill(const EventClass& evt, int itrack, const ClustersByPlane& protonGlobalClusters);
HistProtonPID()
: hNumClusters78_()
, hSingleClusterSize78_()
, hsum78cos_vs_p_11_()
, hsum78cos_vs_p_12_()
, hsum78cos_vs_p_21_()
, hsum78cos_vs_p_22_()
{}
private :
HistTDCSinglePlanePID pidPC7_;
HistTDCSinglePlanePID pidPC8_;
HistTDCSinglePlanePID pidDC23_;
HistTDCSinglePlanePID pidDC24_;
HistRangePID pidRange_;
//----------------
TH2 *hNumClusters78_;
TH2 *hSingleClusterSize78_;
TH2 *hsum78cos_vs_p_11_;
TH2 *hsum78cos_vs_p_12_;
TH2 *hsum78cos_vs_p_21_;
TH2 *hsum78cos_vs_p_22_;
// DC vars
TH2 *hNumClusters2324_;
TH2 *hSingleClusterSize2324_;
TH2 *hsum2324cos_vs_p_11_;
TH2 *hsum2324cos_vs_p_12_;
TH2 *hsum2324cos_vs_p_21_;
TH2 *hsum2324cos_vs_p_22_;
};
#endif/*HistProtonPID_h*/