-
Notifications
You must be signed in to change notification settings - Fork 12
/
Detector3D.h
66 lines (52 loc) · 1.3 KB
/
Detector3D.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
59
60
61
62
63
64
65
66
///////////////////////////////////////
/* Detector3D.h 7/17/14
Ben Davis-Purcell
Class that joins all detectors in 3D view
and handles 3D full and partial tracks
*/
///////////////////////////////////////
#ifndef ROOT_Detector3D
#define ROOT_Detector3D
#include "TCanvas.h"
#include "TGeoVolume.h"
#include "TGeoManager.h"
#include "TGeoBBox.h"
#include "TGeoTrd2.h"
#include "TGeoTube.h"
#include "ScintPlane3D.h"
#include "TWire3D.h"
#include "WirePlane3D.h"
#include "WireChamber3D.h"
#include "TGeoPhysicalNode.h"
#include "Trajectory3D.h"
#include "GetVariables.h"
#include <cstring>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <vector>
#include <string>
class Detector3D
{
public:
Detector3D();
virtual ~Detector3D();
void Track(double p0x, double p0y, double p0z,
double xf, double yf, double zf, double thetaf, double phif);
void ClearTrack();
void ClearTracks();
TGeoManager *mgr;
WireChamber3D *MWDC1;
WireChamber3D *MWDC2;
ScintPlane3D *s1xplane;
ScintPlane3D *s1yplane;
ScintPlane3D *s2xplane;
ScintPlane3D *s2yplane;
ScintPlane3D *c1prplane;
ScintPlane3D *c2taplane;
ScintPlane3D *c3taplane;
ScintPlane3D *c4taplane;
vector<Trajectory3D* > TrackList;
TGeoVolume *top;
};
#endif