ACTARSim
ACTAR TPC Simulation Reference Guide
MTrack.h
Go to the documentation of this file.
1 //#ifndef MTRACK_H
2 //#define MTRACK_H
3 
4 #include <stdio.h>
5 #include <iostream>
6 #include <TLine.h>
7 //#include <Parameters.h>
8 
9 using namespace std;
10 
11 class MTrack
12 {
13  public:
14  MTrack();
15  //MTrack(char*);
16  ~MTrack();
17  //void ResetLines();
18 
19  Int_t zx_s;
20  Int_t zx_e;
21  Int_t zy_s;
22  Int_t zy_e;
23 
24  Double_t Xm;
25  Double_t Ym;
26  Double_t Zm;
27  Double_t Xh;
28  Double_t Yh;
29  Double_t Zh;
30 
31  TLine* L2DXY;
32  TLine* L2DXZ;
33  TLine* L2DYZ;
34  TLine* L3D;
35 
36  //Double_t ElossTable[NPADX][2];
37 };
38 
39 
40 
42 {
43  L2DXY=new TLine();
44  L2DXZ=new TLine();
45  L2DYZ=new TLine();
46  L3D=new TLine();
47 }
48 /*
49 MTrack::MTrack(char* path)
50 {
51  L2DXY=new TLine();
52  L2DXZ=new TLine();
53  L2DYZ=new TLine();
54  L3D=new TLine();
55 
56  FILE* f=fopen(path,"r");
57  if(f!=NULL)
58  {
59  int i=0;
60  while(fscanf(f,"%d %d",&ElossTable[i][0],&ElossTable[i][1])!=EOF)
61  {
62  i++;
63  if(i>63) break;
64  }
65  fclose(f);
66  }
67  else cout << "Eloss File " << path << " doesn't exist... Skipping Eloss Table." << endl;
68 }
69 */
70 
72 {
73  delete L2DXY;
74  delete L2DXZ;
75  delete L2DYZ;
76  delete L3D;
77  //for(int i=0;i<NPADX;i++)
78  // delete ElossTable[i];
79  //delete [] ElossTable;
80 }
81 
82 
83 
84 
85 void MTrack::ResetLines()
86 {
87  L2DXY->SetX1(-1);
88  L2DXY->SetY1(-1);
89  L2DXY->SetX2(-1);
90  L2DXY->SetY2(-1);
91 
92  L2DXZ->SetX1(-1);
93  L2DXZ->SetY1(-1);
94  L2DXZ->SetX2(-1);
95  L2DXZ->SetY2(-1);
96 
97  L2DYZ->SetX1(-1);
98  L2DYZ->SetY1(-1);
99  L2DYZ->SetX2(-1);
100  L2DYZ->SetY2(-1);
101 
102  L3D->SetX1(-1);
103  L3D->SetY1(-1);
104  L3D->SetX2(-1);
105  L3D->SetY2(-1);
106 }
107 
108 
109 //#endif
Double_t Ym
Definition: MTrack.h:25
Double_t Zh
Definition: MTrack.h:29
STL namespace.
Double_t Zm
Definition: MTrack.h:26
Double_t Yh
Definition: MTrack.h:28
TLine * L2DYZ
Definition: MTrack.h:33
TLine * L3D
Definition: MTrack.h:34
Int_t zx_e
Definition: MTrack.h:20
Int_t zy_e
Definition: MTrack.h:22
TLine * L2DXY
Definition: MTrack.h:31
Definition: MTrack.h:11
~MTrack()
Definition: MTrack.h:71
Int_t zy_s
Definition: MTrack.h:21
Int_t zx_s
Definition: MTrack.h:19
TLine * L2DXZ
Definition: MTrack.h:32
Double_t Xh
Definition: MTrack.h:27
Double_t Xm
Definition: MTrack.h:24
MTrack()
Definition: MTrack.h:41