forked from JeffersonLab/EVe_HallC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScintPlane.h
58 lines (47 loc) · 1.36 KB
/
ScintPlane.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
///////////////////////////////////////
/* ScintPlane.h 6/17/14
Ben Davis-Purcell
Class that creates an array of ScintillationPaddles to create a plane
*/
///////////////////////////////////////
#ifndef ROOT_ScintPlane
#define ROOT_ScintPlane
#include "TCanvas.h"
#include "TPolyLine.h"
#include "TBox.h"
#include "TArrow.h"
#include "ScintillatorPaddle.h"
#include "TLatex.h"
#include "CStransform.h"
#include "TEllipse.h"
#include "GetVariables.h"
#define MAX_PADDLE_NUM 100
#define MAX_TRACK_NUM 77
class ScintPlane
{
public:
ScintPlane(char* SplaneName, GetVariables* DB, CStransform *trans);
virtual ~ScintPlane();
void paddleLeftHit(int pad);
void paddleRightHit(int pad);
void paddleBothHit(int pad);
void Track(double x, double y, int i);
void SPHit(int NumL, int NumR, double poshit[], double neghit[]);
void clear();
protected:
int N; // number of paddles
//int horiz; // 1 if scint plane has horizontally stacked paddles, 0 if vertical
//int rot; // defines horiz for individual scint paddles
double angle;
double sx0, sy0,sa,sb;
double paddle_length;
double paddle_height;
char* splaneName;
ScintillatorPaddle *paddle[MAX_PADDLE_NUM];
//GetVariables myvars;
TLatex *title;
CStransform *cst;
TEllipse *track_circ[MAX_TRACK_NUM];
TLatex *track_index[MAX_TRACK_NUM];
};
#endif