Changeset 8940 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 06/12/08 15:35:15 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8884 r8940 1263 1263 // Don't do this on the original object! 1264 1264 histsel->SetStats(kFALSE); 1265 1265 /* 1266 1266 fLog->Separator("Kolmogorov Test"); 1267 1267 histsel->KolmogorovTest(excess, "DX"); … … 1272 1272 tex.SetBit(TLatex::kTextNDC); 1273 1273 tex.DrawLatex(0.75, 0.93, Form("P(\\chi^{2})=%.0f%%", p*100)); 1274 */ 1274 1275 } 1275 1276 } … … 1388 1389 hist.InitTitle(";Slope;Disp-Dist [\\circ];"); 1389 1390 hist.SetDrawOption("colz profx"); 1391 } 1392 1393 void MJSpectrum::SetupHistEnergyRes(MHn &hist) const 1394 { 1395 hist.AddHist("MEnergyEst.fVal", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 1396 hist.InitName("ResEest;EnergyEst;"); 1397 hist.InitTitle(";E_{est} [GeV];Resolution (E_{mc}/E_{est}-1)^{2};"); 1398 1399 //hist.AddHist("MMcEvt.fEnergy", "(MEnergyEst.fVal/MMcEvt.fEnergy-1)^2", MH3::kProfile); 1400 //hist.InitName("ResEmc;EnergyEst;"); 1401 //hist.InitTitle(";E_{mc} [GeV];Resolution (E_{est}/E_{mc}-1)^{2};"); 1402 hist.AddHist("MHillas.fSize", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 1403 hist.InitName("ResSize;Size;"); 1404 hist.InitTitle(";S [phe];Resolution (E_{mc}/E_{est}-1)^{2};"); 1405 1406 hist.AddHist("MPointingPos.fZd", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 1407 hist.InitName("ResTheta;Theta;"); 1408 hist.InitTitle(";\\Theta [\\circ];Resolution (E_{mc}/E_{est}-1)^{2};"); 1409 1410 hist.AddHist("MMcEvt.fImpact/100", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 1411 hist.InitName("ResImpact;Impact;"); 1412 hist.InitTitle(";I [m];Resolution (E_{mc}/E_{est}-1)^{2};"); 1390 1413 } 1391 1414 … … 1533 1556 GetThetaDistribution(htheta, hist); 1534 1557 1535 // Give the zen oith angle weights to the weighting task1558 // Give the zenith angle weights to the weighting task 1536 1559 weight.SetWeightsZd(&htheta); 1537 1560 … … 1634 1657 MBinning binsB(51, -1, 1, "BinningEnergyResidual", "lin"); 1635 1658 MBinning binsD(51, -1, 1, "BinningResidualDist", "lin"); 1659 MBinning binsI(16, 0, 800, "BinningImpact", "lin"); 1636 1660 1637 1661 plist.AddToList(&binsA); … … 1639 1663 plist.AddToList(&binsC); 1640 1664 plist.AddToList(&binsD); 1665 plist.AddToList(&binsI); 1641 1666 1642 1667 MHn heest("Energy", "Energy Residual (lg E_{est} - lg E_{mc})"); … … 1649 1674 SetupHistEvtDist(henergy); 1650 1675 1676 MHn heres("EnergyRes"); 1677 SetupHistEnergyRes(heres); 1678 1651 1679 MFillH fill4b(&heest, "", "FillEnergyResidual"); 1652 1680 fill4b.SetWeight(); … … 1654 1682 MFillH fill4c(&hdisp, "", "FillDispResidual"); 1655 1683 fill4c.SetWeight(); 1684 1685 MFillH fill4d(&heres, "", "FillEnergyResolution"); 1686 fill4d.SetWeight(); 1656 1687 1657 1688 MFDataPhrase fdisp("Disp.fVal*sign(MHillasSrc.fCosDeltaAlpha)<0", "FilterDisp"); … … 1745 1776 tlist2.AddToList(&fill4); 1746 1777 tlist2.AddToList(&fill4b); 1778 tlist2.AddToList(&fill4d); 1747 1779 tlist2.AddToList(&fill5); 1748 1780 tlist2.AddToList(&fill0a); … … 1818 1850 return kTRUE; 1819 1851 1852 TNamed ganame("ganymed.root", gSystem->BaseName(fPathIn)); 1853 1820 1854 // Write the output 1821 1855 TObjArray cont; … … 1826 1860 cont.Add(&area1); 1827 1861 cont.Add(&hest); 1862 cont.Add(&ganame); 1828 1863 1829 1864 if (fDisplay) -
trunk/MagicSoft/Mars/mjobs/MJSpectrum.h
r8882 r8940 43 43 void SetupHistEnergyEst(MHn &hist) const; 44 44 void SetupHistDisp(MHn &hist) const; 45 void SetupHistEnergyRes(MHn &hist) const; 45 46 46 47 // Read Input -
trunk/MagicSoft/Mars/mjobs/MJStar.cc
r8934 r8940 478 478 MFillH fillw2("MHWeather", "MTimePyrometer", "FillPyrometer"); 479 479 fillw2.SetBit(MFillH::kDoNotDisplay); 480 fillw2.SetBit(MFillH::kCanSkip); 480 481 481 482 // instantiate camera histogram containers
Note:
See TracChangeset
for help on using the changeset viewer.