Changeset 8940 for trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
- Timestamp:
- 06/12/08 15:35:15 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillsignal.C
r8931 r8940 119 119 } 120 120 121 MHCamera *cal = (MHCamera*)arr.FindObjectInCanvas("CalPos;avg", "MHCamera", "CalPos"); 121 122 MHCamera *pul = (MHCamera*)arr.FindObjectInCanvas("PulsePos;avg", "MHCamera", "PulsePos"); 122 123 if (!pul) … … 220 221 TString meansiginner =Form("%6.2f", meansigi); 221 222 TString meansigouter =Form("%6.2f", meansigo); 223 224 TString calpos = cal ? Form("%5.1f", cal->GetMean()) : "NULL"; 222 225 223 226 if (pul->GetMean()<0 || pul->GetRMS()<0) … … 300 303 Int_t nx = htp->GetNbinsX(); 301 304 302 rateped = Form("%8.1f", iped <0 ? 0 :htp->Integral(1, nx, iped, iped) / nx);303 rateped2 = Form("%7.2f", iped2<0 ? 0 :htp->Integral(1, nx, iped2, iped2) / nx);304 ratecal = Form("%8.1f", ical <0 ? 0 :htp->Integral(1, nx, ical, ical) / nx);305 ratetrig = Form("%8.1f", itrig<0 ? 0 :htp->Integral(1, nx, itrig, itrig) / nx);306 ratesum = Form("%8.1f", isum <0 ? 0 :htp->Integral(1, nx, isum, isum) / nx);307 ratenull = Form("%8.1f", inull<0 ? 0 :htp->Integral(1, nx, inull, inull) / nx);308 ratena = Form("%7.2f", ina <0 ? 0 :htp->Integral(1, nx, ina, ina) / nx);305 rateped = iped <0 ? "NULL" : Form("%8.1f", htp->Integral(1, nx, iped, iped) / nx); 306 rateped2 = iped2<0 ? "NULL" : Form("%7.2f", htp->Integral(1, nx, iped2, iped2) / nx); 307 ratecal = ical <0 ? "NULL" : Form("%8.1f", htp->Integral(1, nx, ical, ical) / nx); 308 ratetrig = itrig<0 ? "NULL" : Form("%8.1f", htp->Integral(1, nx, itrig, itrig) / nx); 309 ratesum = isum <0 ? "NULL" : Form("%8.1f", htp->Integral(1, nx, isum, isum) / nx); 310 ratenull = inull<0 ? "NULL" : Form("%8.1f", htp->Integral(1, nx, inull, inull) / nx); 311 ratena = ina <0 ? "NULL" : Form("%7.2f", htp->Integral(1, nx, ina, ina) / nx); 309 312 } 310 313 311 314 // ***************************************************** 312 313 // *****************************************************314 315 315 316 316 cout << "Sequence #" << seq << endl; … … 319 319 cout << " Mean Signal inner [phe] " << meansiginner << endl; 320 320 cout << " Mean Signal outer [phe] " << meansigouter << endl; 321 cout << " Mean extracted PulsePos " << meanextpulpos << " +- " << rmsextpulpos << endl; 321 322 cout << " Mean calibrated PulsePos " << meanpulpos << " +- " << rmspulpos << endl; 322 cout << " Mean extracted PulsePos " << meanextpulpos << " +- " << rmsextpulpos << endl;323 cout << " Mean calib pulse pos " << calpos << endl; 323 324 // cout << " Mean ext.HiGain PulsePos " << meanpulhi << " +- " << rmspulhi << endl; 324 325 // cout << " Mean ext.LoGain PulsePos " << meanpullo << " +- " << rmspullo << endl; … … 346 347 " fPulsePosMean=%s, fPulsePosRms=%s, " 347 348 " fPulsePosCheckMean=%s, fPulsePosCheckRms=%s, " 349 " fPulsePosCalib=%s, " 348 350 //" fPulsePosHiMean=%s, fPulsePosHiRms=%s, " 349 351 //" fPulsePosLoMean=%s, fPulsePosLoRms=%s, " … … 360 362 meanpulpos.Data(), rmspulpos.Data(), 361 363 meanextpulpos.Data(), rmsextpulpos.Data(), 364 calpos.Data(), 362 365 //meanpulhi.Data(), rmspulhi.Data(), 363 366 //meanpullo.Data(), rmspullo.Data(),
Note:
See TracChangeset
for help on using the changeset viewer.