]>
Commit | Line | Data |
---|---|---|
36549c88 | 1 | #include <TMatrix.h> |
2 | #include <TObjArray.h> | |
4ae5bbc4 | 3 | #include <Riostream.h> |
4 | #include <Riostream.h> | |
36549c88 | 5 | |
6 | ||
7 | #include "AliITSRad.h" | |
8 | ||
9 | ||
10 | ClassImp(AliITSRad) | |
cd77595e | 11 | //______________________________________________________________________ |
e56160b8 | 12 | AliITSRad::AliITSRad(): |
13 | imax(0), | |
14 | jmax(0), | |
15 | fmrad1(0), | |
16 | fmrad2(0), | |
17 | fmrad3(0), | |
18 | fmrad4(0), | |
19 | fmrad5(0), | |
20 | fmrad6(0) { | |
cd77595e | 21 | // Default constructor |
36549c88 | 22 | |
cd77595e | 23 | } |
e56160b8 | 24 | AliITSRad::AliITSRad(Int_t iimax, Int_t jjmax): |
25 | imax(0), | |
26 | jmax(0), | |
27 | fmrad1(0), | |
28 | fmrad2(0), | |
29 | fmrad3(0), | |
30 | fmrad4(0), | |
31 | fmrad5(0), | |
32 | fmrad6(0){ | |
36549c88 | 33 | |
34 | imax=iimax; | |
35 | jmax=jjmax; | |
36 | ||
37 | fmrad1 = new TMatrix(imax,jmax); | |
38 | fmrad2 = new TMatrix(imax,jmax); | |
39 | fmrad3 = new TMatrix(imax,jmax); | |
40 | fmrad4 = new TMatrix(imax,jmax); | |
41 | fmrad5 = new TMatrix(imax,jmax); | |
42 | fmrad6 = new TMatrix(imax,jmax); | |
43 | ||
44 | ifstream in("ITSlegov5.map"); | |
45 | Int_t i,j; | |
46 | ||
47 | for(i=0; i<imax; i++) { | |
48 | for(j=0; j<jmax; j++) { | |
49 | in>>(*fmrad1)(i,j); | |
50 | } | |
51 | } | |
52 | ||
53 | for(i=0; i<imax; i++) { | |
54 | for(j=0; j<jmax; j++) { | |
55 | in>>(*fmrad2)(i,j); | |
56 | } | |
57 | } | |
58 | ||
59 | for(i=0; i<imax; i++) { | |
60 | for(j=0; j<jmax; j++) { | |
61 | in>>(*fmrad3)(i,j); | |
62 | } | |
63 | } | |
64 | ||
65 | for(i=0; i<imax; i++) { | |
66 | for(j=0; j<jmax; j++) { | |
67 | in>>(*fmrad4)(i,j); | |
68 | } | |
69 | } | |
70 | ||
71 | for(i=0; i<imax; i++) { | |
72 | for(j=0; j<jmax; j++) { | |
73 | in>>(*fmrad5)(i,j); | |
74 | } | |
75 | } | |
76 | ||
77 | for(i=0; i<imax; i++) { | |
78 | for(j=0; j<jmax; j++) { | |
79 | in>>(*fmrad6)(i,j); | |
80 | } | |
81 | } | |
82 | ||
83 | in.close(); | |
84 | ||
85 | /* | |
86 | /////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
87 | // Stampe provvisorie delle matrici su rad.out | |
88 | // | |
89 | ofstream out("rad.out"); | |
90 | ||
91 | for(i=0; i<imax; i++) { | |
92 | for(j=0; j<jmax; j++) { | |
93 | out<<(*fmrad1)(i,j)<<" "; | |
94 | } | |
95 | out<<"\n"; | |
96 | } | |
97 | out<<"\n"; | |
98 | for(i=0; i<imax; i++) { | |
99 | for(j=0; j<jmax; j++) { | |
100 | out<<(*fmrad2)(i,j)<<" "; | |
101 | } | |
102 | out<<"\n"; | |
103 | } | |
104 | out<<"\n"; | |
105 | for(i=0; i<imax; i++) { | |
106 | for(j=0; j<jmax; j++) { | |
107 | out<<(*fmrad3)(i,j)<<" "; | |
108 | } | |
109 | out<<"\n"; | |
110 | } | |
111 | out<<"\n"; | |
112 | for(i=0; i<imax; i++) { | |
113 | for(j=0; j<jmax; j++) { | |
114 | out<<(*fmrad4)(i,j)<<" "; | |
115 | } | |
116 | out<<"\n"; | |
117 | } | |
118 | out<<"\n"; | |
119 | for(i=0; i<imax; i++) { | |
120 | for(j=0; j<jmax; j++) { | |
121 | out<<(*fmrad5)(i,j)<<" "; | |
122 | } | |
123 | out<<"\n"; | |
124 | } | |
125 | out<<"\n"; | |
126 | for(i=0; i<imax; i++) { | |
127 | for(j=0; j<jmax; j++) { | |
128 | out<<(*fmrad6)(i,j)<<" "; | |
129 | } | |
130 | out<<"\n"; | |
131 | } | |
132 | ||
133 | out.close(); | |
134 | /////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
135 | */ | |
136 | } | |
137 | ||
138 | AliITSRad::~AliITSRad() { | |
139 | ||
140 | delete fmrad1; | |
141 | delete fmrad2; | |
142 | delete fmrad3; | |
143 | delete fmrad4; | |
144 | delete fmrad5; | |
145 | delete fmrad6; | |
146 | ||
147 | } |