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