forked from JeffersonLab/EVe_HallC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScintPlane.h
55 lines (45 loc) · 1.33 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
///////////////////////////////////////
/* 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"
#include "EVe_DB.h"
class ScintPlane {
public:
ScintPlane(char *name, int n, double plength, double pheight,double PMTlength, CStransform *trans, double ang);
virtual ~ScintPlane();
void paddleHit(int num, double left, double right, double y);
void paddleLeftHit(int padn);
void paddleRightHit(int pad);
void paddleBothHit(int padnum);
void Track(double x, double y, int i);
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;
double PMTl;
ScintillatorPaddle *paddle[MAX_PADDLE_NUM];
//GetVariables myvars;
TLatex *title;
CStransform *cst;
TEllipse *track_circ[MAX_TRACK_NUM];
TLatex *track_index[MAX_TRACK_NUM];
};
#endif