-
Notifications
You must be signed in to change notification settings - Fork 12
/
ScintPlane3D.h
45 lines (36 loc) · 967 Bytes
/
ScintPlane3D.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
///////////////////////////////////////
/* ScintPlane3D.h 7/17/14
Ben Davis-Purcell
Class that creates an array of ScintillationPaddle3Ds to create a 3D plane
*/
///////////////////////////////////////
#ifndef ROOT_ScintPlane3D
#define ROOT_ScintPlane3D
#include "TCanvas.h"
#include "TPolyLine.h"
#include "TBox.h"
#include "TArrow.h"
#include "ScintillatorPaddle3D.h"
#include "GetVariables.h"
#include "TLatex.h"
#include "TGeoMatrix.h"
#include <string>
#include <cstring>
#include "TGeoManager.h"
#include <vector>
class ScintPlane3D
{
public:
ScintPlane3D(char* splaneName, GetVariables* DB, TGeoVolume* top);
virtual ~ScintPlane3D();
void LHit(int numL);
void RHit(int numR);
void BHit(int numB);
void SPHit(int NumL,int NumR, double poshit[], double neghit[]);
void clear();
TGeoVolume *ScintPlane;
protected:
int numPaddles; // number of paddles
std::vector<ScintillatorPaddle3D*> paddle;
};
#endif