-
Notifications
You must be signed in to change notification settings - Fork 1
/
HistTDCSinglePlanePID.h
50 lines (39 loc) · 1.09 KB
/
HistTDCSinglePlanePID.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
// Andrei Gaponenko, 2014
#ifndef HistTDCSinglePlanePID_h
#define HistTDCSinglePlanePID_h
#include "WireCluster.h"
class TH1;
class TH2;
class HistogramFactory;
class ConfigFile;
class EventClass;
struct TDCPlanePIDResult {
bool analyzed;
int nwires;
double raw;
double calibrated;
TDCPlanePIDResult();
};
//================================================================
class HistTDCSinglePlanePID {
public:
void init(const std::string& hdir,
int globalPlaneNumber, // to use for PID
HistogramFactory &hf,
const ConfigFile &conf);
TDCPlanePIDResult fill(const EventClass& evt,
int itrack,
const ClustersByPlane& protonGlobalClusters);
HistTDCSinglePlanePID()
: globalPlaneNumber_() , hNumClusters_(), hSingleClusterSize_()
, hsumwcos_vs_p_1_(), hsumwcos_vs_p_2_(), hsumwcos_vs_p_3_()
{}
private :
int globalPlaneNumber_;
TH1 *hNumClusters_;
TH1 *hSingleClusterSize_;
TH2 *hsumwcos_vs_p_1_;
TH2 *hsumwcos_vs_p_2_;
TH2 *hsumwcos_vs_p_3_;
};
#endif/*HistTDCSinglePlanePID_h*/