47 {
48
49 MsgStream log(
msgSvc(),
"TreeMdcCalibDataCnv");
50 log<<MSG::DEBUG<<"SetProperty"<<endreq;
54
55 TBufferFile *buf1 = new TBufferFile(TBuffer::kRead);
56 TBufferFile *buf2 = new TBufferFile(TBuffer::kRead);
57 TBufferFile *buf3 = new TBufferFile(TBuffer::kRead);
58 TBufferFile *buf4 = new TBufferFile(TBuffer::kRead);
59 TBufferFile *buf5 = new TBufferFile(TBuffer::kRead);
60 TBufferFile *buf6 = new TBufferFile(TBuffer::kRead);
61
62 buf1->SetBuffer((*records)["XtTree"],512000,kFALSE);
63 buf2->SetBuffer((*records)["QtTree"],512000,kFALSE);
64 buf3->SetBuffer((*records)["T0Tree"],512000,kFALSE);
65 buf4->SetBuffer((*records)["SdTree"],512000,kFALSE);
66 buf5->SetBuffer((*records)["NewXtTrees"],51200000,kFALSE);
67 buf6->SetBuffer((*records)["R2tTrees"],25600000,kFALSE);
68
69 std::cout<<" SftVer is "<<(*records)["SftVer"];
70 std::cout<<"TreeMdcCalibDataCnv: CalVerSft is "<<(*records)["CalParVer"]<<std::endl;
71 std::cout<<"TreeMdcCalibDataCnv: Calib file name is "<<(*records)["FileName"]<<std::endl;
72
73 TTree* xttree = new TTree();
74 xttree->Streamer(*buf1);
75
76 TTree* qttree = new TTree();
77 qttree->Streamer(*buf2);
78
79 TTree* t0tree= new TTree();
80 t0tree->Streamer(*buf3);
81
82 TTree* sdtree = new TTree();
83 sdtree->Streamer(*buf4);
84
85 TObjArray newxttrees;
86 DatabaseRecord::iterator it = (*records).find("NewXtTrees");
87 if(it!=(*records).end()){
88 if((*it).second!=NULL) {
89 newxttrees.Streamer(*buf5);
90 }
91 }
92
93 TObjArray r2ttrees;
94 it = (*records).find("R2tTrees");
95 if(it!=(*records).end()){
96 if((*it).second!=NULL) {
97 r2ttrees.Streamer(*buf6);
98 }
99 }
100
101
102
103 int i;
105
106
107 double xtpar;
108 int xtkey;
114 tmpObject -> setXtpar(xtkey,xtpar);
115 }
116
117
118 if((43*18*2)==newxttrees.GetEntries()){
120 for(int i=0;i<43*18*2;i++){
121 TTree* tempTree = (TTree*) newxttrees.At(i);
122 delete tempTree;
123 }
124 }
125
126 if(43==r2ttrees.GetEntries()){
128 for(int i=0;i<43;i++){
129 TTree* tempTree = (TTree*) r2ttrees.At(i);
130 delete tempTree;
131 }
132 }
133
134
135 double t0;
136 double delt0;
142 tmpObject -> setT0(t0);
143 tmpObject -> setDelT0(delt0);
144 }
145
146 double qtpar0;
147 double qtpar1;
153 tmpObject -> setQtpar0(qtpar0);
154 tmpObject -> setQtpar1(qtpar1);
155 }
156
157
158 double sdpar;
159 int sdkey;
163
166 tmpObject -> setSdpar(sdkey,sdpar);
167 }
168
169 refpObject=tmpObject;
170 delete xttree;
171 delete qttree;
172 delete t0tree;
173 delete sdtree;
174
175 delete buf1;
176 delete buf2;
177 delete buf3;
178 delete buf4;
179 delete buf5;
180 delete buf6;
181
182 return StatusCode::SUCCESS;
183
184
185}
data SetBranchAddress("time",&time)
void setR2tpar(TObjArray *r2tTrees)
void setNewXtpar(TObjArray *newXtTrees)
virtual DatabaseRecord * pp()