Changeset 8702 for trunk/MagicSoft
- Timestamp:
- 08/23/07 17:12:52 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
r8701 r8702 73 73 // Tasks/Filter 74 74 #include "MReadMarsFile.h" 75 #include "MReadMarsFile.h"76 #include "MFEventSelector2.h"77 #include "MFDataMember.h"78 75 #include "MEnergyEstimate.h" 79 76 #include "MTaskEnv.h" 80 77 #include "MFillH.h" 81 #include "MHillasCalc.h" 78 #include "MFDataPhrase.h" 79 #include "MFDataMember.h" 82 80 #include "MContinue.h" 83 81 … … 738 736 } 739 737 738 /* 740 739 Bool_t MJSpectrum::IntermediateLoop(MParList &plist, MH3 &mh1, TH1D &temp1, const MDataSet &set, MMcSpectrumWeight &weight) const 741 740 { … … 811 810 return kTRUE; 812 811 } 812 */ 813 813 814 814 TString MJSpectrum::FormString(const TF1 &f, Byte_t type) … … 1252 1252 void MJSpectrum::SetupHistEnergyEst(MHn &hist) const 1253 1253 { 1254 hist.AddHist("MHillas.fSize", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)"); 1254 const char *res = "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)"; 1255 1256 hist.AddHist("MHillas.fSize", res); 1255 1257 hist.InitName("ResSize;Size;EnergyResidual"); 1256 1258 hist.InitTitle(";S [phe];\\Delta lg E;"); 1257 1259 hist.SetDrawOption("colz profx"); 1258 1260 1259 hist.AddHist("MPointingPos.fZd", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");1261 hist.AddHist("MPointingPos.fZd", res); 1260 1262 hist.InitName("ResTheta;Theta;EnergyResidual"); 1261 1263 hist.InitTitle(";Zd [\\circ];\\Delta lg E;"); 1262 1264 hist.SetDrawOption("colz profx"); 1263 1265 1264 hist.AddHist("MNewImagePar.fLeakage1", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");1266 hist.AddHist("MNewImagePar.fLeakage1", res); 1265 1267 hist.InitName("ResLeak;Leakage;EnergyResidual"); 1266 1268 hist.InitTitle(";Leak;\\Delta lg E;"); 1267 1269 hist.SetDrawOption("colz profx"); 1268 1270 1269 hist.AddHist("MHillasSrc.fDist*3.37e-3", "log10(MEnergyEst.fVal)-log10(MMcEvt.fEnergy)");1271 hist.AddHist("MHillasSrc.fDist*3.37e-3", res); 1270 1272 hist.InitName("ResDist;Dist;EnergyResidual"); 1271 1273 hist.InitTitle(";D [\\circ];\\Delta lg E;"); … … 1275 1277 void MJSpectrum::SetupHistDisp(MHn &hist) const 1276 1278 { 1277 hist.AddHist("MHillas.fSize", "MHillasSrc.fDist*3.37e-3/Disp.fVal"); 1278 hist.InitName("ResSize;Size;Xi"); 1279 hist.InitTitle(";S [phe];\\Delta Xi;"); 1279 const char *res = "-Disp.fVal*sign(MHillasSrc.fCosDeltaAlpha)-MHillasSrc.fDist*3.37e-3"; 1280 1281 hist.AddHist("MHillas.fSize", res); 1282 hist.InitName("ResSize;Size;ResidualDist"); 1283 hist.InitTitle(";S [phe];Disp-Dist [\\circ];"); 1280 1284 hist.SetDrawOption("colz profx"); 1281 1285 1282 hist.AddHist("MPointingPos.fZd", "MHillasSrc.fDist*3.37e-3/Disp.fVal");1283 hist.InitName("ResTheta;Theta; Xi");1284 hist.InitTitle(";Zd [\\circ]; \\Delta Xi;");1286 hist.AddHist("MPointingPos.fZd", res); 1287 hist.InitName("ResTheta;Theta;ResidualDist"); 1288 hist.InitTitle(";Zd [\\circ];Disp-Dist [\\circ];"); 1285 1289 hist.SetDrawOption("colz profx"); 1286 1290 1287 hist.AddHist("MNewImagePar.fLeakage1", "MHillasSrc.fDist*3.37e-3/Disp.fVal");1288 hist.InitName("ResLeak;Leakage; Xi");1289 hist.InitTitle(";Leak; \\Delta Xi;");1291 hist.AddHist("MNewImagePar.fLeakage1", res); 1292 hist.InitName("ResLeak;Leakage;ResidualDist"); 1293 hist.InitTitle(";Leak;Disp-Dist [\\circ];"); 1290 1294 hist.SetDrawOption("colz profx"); 1291 1295 1292 hist.AddHist("MHillasExt.fSlopeLong*sign(MHillasSrc.fCosDeltaAlpha)/3.37e-3", "MHillasSrc.fDist*3.37e-3/Disp.fVal");1293 hist.InitName("ResSlope;Slope; Xi");1294 hist.InitTitle(";Slope; \\Delta Xi;");1296 hist.AddHist("MHillasExt.fSlopeLong*sign(MHillasSrc.fCosDeltaAlpha)/3.37e-3", res); 1297 hist.InitName("ResSlope;Slope;ResidualDist"); 1298 hist.InitTitle(";Slope;Disp-Dist [\\circ];"); 1295 1299 hist.SetDrawOption("colz profx"); 1296 1300 } … … 1490 1494 1491 1495 MBinning binsA(50, 10, 100000, "BinningSize", "log"); 1492 MBinning binsB(50, -1, 1, "BinningEnergyResidual", "lin");1493 1496 MBinning binsC(50, 0, 0.3, "BinningLeakage", "lin"); 1494 MBinning binsD(50, 0, 3, "BinningXi", "lin"); 1497 MBinning binsB(51, -1, 1, "BinningEnergyResidual", "lin"); 1498 MBinning binsD(51, -3, 1, "BinningResidualDist", "lin"); 1495 1499 1496 1500 plist.AddToList(&binsA); … … 1502 1506 SetupHistEnergyEst(heest); 1503 1507 1504 MHn hdisp("Disp", " Xi (Dist/Disp)");1508 MHn hdisp("Disp", "Dist residual (Disp-Dist)"); 1505 1509 SetupHistDisp(hdisp); 1506 1510
Note:
See TracChangeset
for help on using the changeset viewer.