forked from JeffersonLab/EVe_HallC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScintillatorPaddle.h
43 lines (34 loc) · 909 Bytes
/
ScintillatorPaddle.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
///////////////////////////////////////
/* ScintillatorPaddle.h 6/16/14
Ben Davis-Purcell
Class that creates a single (planar) scintillation paddle with attached PMTs
*/
///////////////////////////////////////
#ifndef ROOT_ScintillatorPaddle
#define ROOT_ScintillatorPaddle
#include "TCanvas.h"
#include "TPolyLine.h"
#include "TBox.h"
#include "TArrow.h"
#include "TLatex.h"
class ScintillatorPaddle
{
public:
ScintillatorPaddle(int index, double x, double y, double a, double b, double cx0,double cy0, int PMTn, double PMTlength, double ang);
virtual ~ScintillatorPaddle();
void HitLeft();
void HitRight();
void HitPaddle();
void clear();
protected:
double sx0, sy0, sa, sb, pl;
double paddle_length;
int n;
double angle;
TPolyLine *plineL;
TPolyLine *plineR;
TPolyLine *scint;
TArrow *yindicator;
TLatex *index_text;
};
#endif