forked from JeffersonLab/EVe_HallC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WireChamber.h
48 lines (37 loc) · 867 Bytes
/
WireChamber.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
#ifndef ROOT_WireChamber
#define ROOT_WireChamber
#include "TCanvas.h"
#include "TPolyLine.h"
#include "TBox.h"
#include "TArrow.h"
#include "TLatex.h"
#include "TLine.h"
#include "TEllipse.h"
#include "CStransform.h"
#include "WirePlane2D.h"
#include "GetVariables.h"
#include <map>
#include <string>
#include <cstring>
#include <vector>
#define MAX_TRACK_NUM 77
using namespace std;
class WireChamber
{
public:
WireChamber(char* chamberName, GetVariables *DB, CStransform *trans);
virtual ~WireChamber();
void ChamberHit();
void WireHit(string planeName, int wireNum);
void clear();
void Track(double x, double y, int i);
protected:
TPolyLine *box1;
TPolyLine *box2;
TLatex *title;
CStransform *cst;
double a,b;
std::map <string, WirePlane2D> wirePlanes;
TEllipse *track_circ[MAX_TRACK_NUM];
};
#endif