-
Notifications
You must be signed in to change notification settings - Fork 1
/
HistXT4.h
68 lines (52 loc) · 1.42 KB
/
HistXT4.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
68
// Look at events with an accepted downstream track.
// They guaranteed to have a real track hit in DC23.
// In XT4 we use events with wire multiplicity greater
// than what is kinenatically allowed for the track to
// identify potential cross talk hits.
//
// Andrei Gaponenko, 2017
#ifndef HistXT4_h
#define HistXT4_h
#include <string>
#include <vector>
#include "TDCHitWP.h"
#include "WireCluster.h"
class TH1;
class TH2;
class TProfile2D;
class HistogramFactory;
class ConfigFile;
class EventClass;
//================================================================
// a helper class
class HistXT4WireGap {
public:
void init(const std::string& hdir, unsigned cutWireGap, const std::string& suffix, HistogramFactory &hf, const ConfigFile &conf);
void fill(const TDCHitWPPtrCollection& planeHits);
private :
unsigned cutWireGap_;
TH1 *outwide_dt_all_;
TH2 *outwide_ww_all_;
TH2 *outwide_wt_all_;
TH1 *outwide_dt_xt_;
TH2 *outwide_ww_xt_;
TH2 *outwide_wt_xt_;
TH1 *outwide_dt_nxt_;
TH2 *outwide_ww_nxt_;
TH2 *outwide_wt_nxt_;
};
//================================================================
class HistXT4 {
public:
void init(const std::string& hdir,
HistogramFactory &hf,
const ConfigFile &conf);
void fill(const EventClass& evt, int iTrack);
HistXT4() {}
private :
TH1 *trackCosth_;
TH1 *trackAngle_;
HistXT4WireGap wg1_;
HistXT4WireGap wg2_;
};
#endif/*HistXT4_h*/