- Timestamp:
- 08/04/06 10:47:40 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
r7846 r7847 131 131 } 132 132 133 MHCamera *hilo = (MHCamera*)arr.FindObjectInCanvas("HiLoOff;avg", "MHCamera", "HiLoOff");134 if (!hilo )133 MHCamera *hilooff = (MHCamera*)arr.FindObjectInCanvas("HiLoOff;avg", "MHCamera", "HiLoOff"); 134 if (!hilooff) 135 135 { 136 136 cout << "WARNING - Reading of HiLoOff failed." << endl; 137 return 2; 138 } 139 140 MHCamera *hilocal = (MHCamera*)arr.FindObjectInCanvas("HiLoCal;avg", "MHCamera", "HiLoCal"); 141 if (!hilocal) 142 { 143 cout << "WARNING - Reading of HiLoCal failed." << endl; 137 144 return 2; 138 145 } … … 207 214 Double_t rmsoff = TMath::Nint(pullo->GetRMS() *100.)/100.; 208 215 */ 209 Double_t meanoff = TMath::Nint(hilo->GetMean()*100.)/100.; 210 Double_t rmsoff = TMath::Nint(hilo->GetRMS() *100.)/100.; 216 Double_t meanoff = TMath::Nint(hilooff->GetMean()*100.)/100.; 217 Double_t rmsoff = TMath::Nint(hilooff->GetRMS() *100.)/100.; 218 219 Double_t meancal = TMath::Nint(hilocal->GetMean()*100.)/100.; 220 Double_t rmscal = TMath::Nint(hilocal->GetRMS() *100.)/100.; 211 221 212 222 //get sequence number from the filename … … 237 247 TString meanpuloff =Form("%6.2f", meanoff); 238 248 TString rmspuloff =Form("%6.2f", rmsoff); 249 TString meanhilocal =Form("%6.2f", meancal); 250 TString rmshilocal =Form("%6.2f", rmscal); 239 251 240 252 if (meanextpul<0 && rmsextpul<0) … … 258 270 // cout << " Mean ext.HiGain PulsePos " << meanpulhi << " +- " << rmspulhi << endl; 259 271 // cout << " Mean ext.LoGain PulsePos " << meanpullo << " +- " << rmspullo << endl; 260 cout << " Lo-Hi gain offset: " << meannpuloff << " +- " << rmspuloff << endl; 272 cout << " Lo-Hi gain offset: " << meanpuloff << " +- " << rmspuloff << endl; 273 cout << " Hi/Lo gain ratio: " << meanhilocal << " +- " << rmshilocal << endl; 261 274 cout << endl; 262 275 … … 266 279 // and so the table Calibration is always updated 267 280 TString query = Form("UPDATE Calibration SET " 268 " fMeanPedRmsInner=%s, fMeanPedRmsOuter=%s, " 269 " fMeanSignalInner=%s, fMeanSignalOuter=%s, " 270 " fPulsePosMean=%s, fPulsePosRms=%s, " 271 " fPulsePosCheckMean=%s, fPulsePosCheckRms=%s " 272 //" fPulsePosHiMean=%s, fPulsePosHiRms=%s, " 273 //" fPulsePosLoMean=%s, fPulsePosLoRms=%s, " 274 " fPulsePosOffMean=%s, fPulsePosOffRms=%s, " 281 " fMeanPedRmsInner=%s, fMeanPedRmsOuter=%s, " 282 " fMeanSignalInner=%s, fMeanSignalOuter=%s, " 283 " fPulsePosMean=%s, fPulsePosRms=%s, " 284 " fPulsePosCheckMean=%s, fPulsePosCheckRms=%s " 285 //" fPulsePosHiMean=%s, fPulsePosHiRms=%s, " 286 //" fPulsePosLoMean=%s, fPulsePosLoRms=%s, " 287 " fPulsePosOffMean=%s, fPulsePosOffRms=%s, " 288 " fHiLoGainRatioMean=%s, fHiLoGainRatioRms=%s, " 275 289 " WHERE fSequenceFirst='%d' ", 276 290 meanrmsinner.Data(), meanrmsouter.Data(), … … 281 295 //meanpullo.Data(), rmspullo.Data(), 282 296 meanpuloff.Data(), rmspuloff.Data(), 297 meanhilocal.Data(), rmshilocal.Data(), 283 298 seq); 284 299
Note:
See TracChangeset
for help on using the changeset viewer.