Changeset 7870 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 08/09/06 11:01:30 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
r7858 r7870 213 213 Double_t meanoff = TMath::Nint(pullo->GetMean()*100.)/100.; 214 214 Double_t rmsoff = TMath::Nint(pullo->GetRMS() *100.)/100.; 215 */ 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.; 215 */ 216 217 // USE MEDIAN INSTEAD? GetQuantiles(Int_t nprobSum, Double_t *q, const Double_t *probSum=0); 218 219 Double_t medoff = TMath::Nint(hilooff->GetMedian() *10000)/10000.; 220 Double_t devoff = TMath::Nint(hilooff->GetMedianDev()*10000)/10000.; 221 222 Double_t medcal = TMath::Nint(hilocal->GetMedian() *100)/100.; 223 Double_t devcal = TMath::Nint(hilocal->GetMedianDev()*100)/100.; 221 224 222 225 //get sequence number from the filename … … 245 248 TString rmspullo =Form("%6.2f", rmslo); 246 249 */ 247 TString me anpuloff =Form("%6.2f", meanoff);248 TString rmspuloff =Form("%6.2f", rmsoff);249 TString me anhilocal =Form("%6.2f", meancal);250 TString rmshilocal =Form("%6.2f", rmscal);250 TString medpuloff =Form("%7.4f", medoff); 251 TString devpuloff =Form("%7.4f", devoff); 252 TString medhilocal =Form("%6.2f", medcal); 253 TString devhilocal =Form("%6.2f", devcal); 251 254 252 255 if (meanextpul<0 && rmsextpul<0) … … 270 273 // cout << " Mean ext.HiGain PulsePos " << meanpulhi << " +- " << rmspulhi << endl; 271 274 // cout << " Mean ext.LoGain PulsePos " << meanpullo << " +- " << rmspullo << endl; 272 cout << " Lo-Hi gain offset: " << meanpuloff << " +- " << rmspuloff << endl;273 cout << " Hi/Lo gain ratio: " << me anhilocal << " +- " << rmshilocal << endl;275 cout << " Lo-Hi gain offset: " << medpuloff << " +- " << devpuloff << endl; 276 cout << " Hi/Lo gain ratio: " << medhilocal << " +- " << devhilocal << endl; 274 277 cout << endl; 275 278 … … 285 288 //" fPulsePosHiMean=%s, fPulsePosHiRms=%s, " 286 289 //" fPulsePosLoMean=%s, fPulsePosLoRms=%s, " 287 " fPulsePosOffMe an=%s, fPulsePosOffRms=%s, "288 " fHiLoGainRatioMe an=%s, fHiLoGainRatioRms=%s"290 " fPulsePosOffMed=%s, fPulsePosOffDev=%s, " 291 " fHiLoGainRatioMed=%s, fHiLoGainRatioDev=%s " 289 292 " WHERE fSequenceFirst='%d' ", 290 293 meanrmsinner.Data(), meanrmsouter.Data(), … … 294 297 //meanpulhi.Data(), rmspulhi.Data(), 295 298 //meanpullo.Data(), rmspullo.Data(), 296 me anpuloff.Data(), rmspuloff.Data(),297 me anhilocal.Data(), rmshilocal.Data(),299 medpuloff.Data(), devpuloff.Data(), 300 medhilocal.Data(), devhilocal.Data(), 298 301 seq); 299 302
Note:
See TracChangeset
for help on using the changeset viewer.