1 | // $Id: RecoTrackDirection2.cc 2476 2006-02-16 10:37:07Z pesce $ |
---|
2 | // Author: R.Pesce 2005/01/04 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: RecoTrackDirection2 * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | //_____________________________________________________________________________ |
---|
14 | // |
---|
15 | // RecoTrackDirection2 |
---|
16 | // |
---|
17 | // <extensive class description> |
---|
18 | // |
---|
19 | // Config file parameters |
---|
20 | // ====================== |
---|
21 | // |
---|
22 | // <parameter name>: <parameter description> |
---|
23 | // -Valid options: <available options> |
---|
24 | // |
---|
25 | |
---|
26 | #include "RecoTrackDirection2.hh" |
---|
27 | |
---|
28 | ClassImp(RecoTrackDirection2) |
---|
29 | |
---|
30 | //_____________________________________________________________________________ |
---|
31 | RecoTrackDirection2::RecoTrackDirection2() { |
---|
32 | // |
---|
33 | // Constructor |
---|
34 | // |
---|
35 | //Clear(); |
---|
36 | } |
---|
37 | |
---|
38 | //_____________________________________________________________________________ |
---|
39 | RecoTrackDirection2::~RecoTrackDirection2() { |
---|
40 | // |
---|
41 | // Destructor |
---|
42 | // |
---|
43 | Clear(); |
---|
44 | } |
---|
45 | |
---|
46 | //_____________________________________________________________________________ |
---|
47 | RecoTrackDirection2::RecoTrackDirection2( const RecoTrackDirection2& other ) { |
---|
48 | // |
---|
49 | // Copy constructor |
---|
50 | // |
---|
51 | other.Copy( *this ); |
---|
52 | } |
---|
53 | |
---|
54 | //_____________________________________________________________________________ |
---|
55 | void RecoTrackDirection2::Copy( TObject& other ) const { |
---|
56 | // |
---|
57 | // Copy to a new object |
---|
58 | // |
---|
59 | TObject::Copy( other ); |
---|
60 | |
---|
61 | ((RecoTrackDirection2&)other).fQuality = fQuality; |
---|
62 | ((RecoTrackDirection2&)other).fTheta = fTheta; |
---|
63 | ((RecoTrackDirection2&)other).fPhi = fPhi; |
---|
64 | ((RecoTrackDirection2&)other).fErrorTheta = fErrorTheta; |
---|
65 | ((RecoTrackDirection2&)other).fErrorPhi = fErrorPhi; |
---|
66 | ((RecoTrackDirection2&)other).fErrorDirection = fErrorDirection; |
---|
67 | ((RecoTrackDirection2&)other).fErrorTDP = fErrorTDP; |
---|
68 | ((RecoTrackDirection2&)other).fThetaAA1 = fThetaAA1; |
---|
69 | ((RecoTrackDirection2&)other).fPhiAA1 = fPhiAA1; |
---|
70 | ((RecoTrackDirection2&)other).fErrorDirectionAA1 = fErrorDirectionAA1; |
---|
71 | ((RecoTrackDirection2&)other).fThetaAA2 = fThetaAA2; |
---|
72 | ((RecoTrackDirection2&)other).fPhiAA2 = fPhiAA2; |
---|
73 | ((RecoTrackDirection2&)other).fErrorDirectionAA2 = fErrorDirectionAA2; |
---|
74 | ((RecoTrackDirection2&)other).fThetaAE1 = fThetaAE1; |
---|
75 | ((RecoTrackDirection2&)other).fPhiAE1 = fPhiAE1; |
---|
76 | ((RecoTrackDirection2&)other).fErrorDirectionAE1 = fErrorDirectionAE1; |
---|
77 | ((RecoTrackDirection2&)other).fThetaNE1 = fThetaNE1; |
---|
78 | ((RecoTrackDirection2&)other).fPhiNE1 = fPhiNE1; |
---|
79 | ((RecoTrackDirection2&)other).fErrorDirectionNE1 = fErrorDirectionNE1; |
---|
80 | ((RecoTrackDirection2&)other).fThetaNE2 = fThetaNE2; |
---|
81 | ((RecoTrackDirection2&)other).fPhiNE2 = fPhiNE2; |
---|
82 | ((RecoTrackDirection2&)other).fErrorDirectionNE2 = fErrorDirectionNE2; |
---|
83 | } |
---|
84 | |
---|
85 | //_____________________________________________________________________________ |
---|
86 | void RecoTrackDirection2::Clear() { |
---|
87 | // |
---|
88 | // Clear method |
---|
89 | // |
---|
90 | fQuality = -1; |
---|
91 | fTheta = -10; |
---|
92 | fPhi = -10; |
---|
93 | fErrorTheta = -10; |
---|
94 | fErrorPhi = -10; |
---|
95 | fErrorDirection = -10; |
---|
96 | fErrorTDP = -10; |
---|
97 | fThetaAA1 = -10; |
---|
98 | fPhiAA1 = -10; |
---|
99 | fErrorDirectionAA1 = -10; |
---|
100 | fThetaAA2 = -10; |
---|
101 | fPhiAA2 = -10; |
---|
102 | fErrorDirectionAA2 = -10; |
---|
103 | fThetaAE1 = -10; |
---|
104 | fPhiAE1 = -10; |
---|
105 | fErrorDirectionAE1 = -10; |
---|
106 | fThetaNE1 = -10; |
---|
107 | fPhiNE1 = -10; |
---|
108 | fErrorDirectionNE1 = -10; |
---|
109 | fThetaNE2 = -10; |
---|
110 | fPhiNE2 = -10; |
---|
111 | fErrorDirectionNE2 = -10; |
---|
112 | |
---|
113 | } |
---|