Changeset 8888 for trunk/MagicSoft/Mars/mjtrain
- Timestamp:
- 05/14/08 12:03:25 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjtrain
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjtrain/MJTrainDisp.cc
r8719 r8888 493 493 DisplayResult(hdisp1, hdisp2); 494 494 495 TObjArray arr; 496 arr.Add(const_cast<MDataSet*>(&set)); 497 if (fDisplay) 498 arr.Add(fDisplay); 499 495 500 SetPathOut(out); 496 return Write Display(0, "UPDATE");501 return WriteContainer(arr, 0, "UPDATE"); 497 502 } 498 503 -
trunk/MagicSoft/Mars/mjtrain/MJTrainEnergy.cc
r8719 r8888 191 191 192 192 // ------------------------------------------------------------- 193 MBinning binsS(50, 10, 100000, "BinningSize", "log"); 194 MBinning binsE(70, 10, 31623, "BinningEnergy", "log"); 195 MBinning binsG(50,-10, 10, "BinningSlope", "lin"); 196 MBinning binsR(50, -1, 1, "BinningEnergyResidual", "lin"); 197 MBinning binsL(50, 0, 0.3, "BinningLeakage", "lin"); 198 MBinning binsT(51, -0.005, 0.505, "BinningTheta", "asin"); 199 MBinning binsD(50, 0, 1.6, "BinningDist", "lin"); 200 MBinning binsC(50, 1e-2, 1, "BinningConc", "log"); 193 MBinning binsS(50, 10, 100000, "BinningSize", "log"); 194 MBinning binsE(70, 10, 31623, "BinningEnergy", "log"); 195 MBinning binsF(35, 10, 31623, "BinningEnergyEst", "log"); 196 MBinning binsG(50, -10, 10, "BinningSlope", "lin"); 197 MBinning binsR(50, -1, 1, "BinningEnergyResidual", "lin"); 198 MBinning binsL(50, 0, 0.3, "BinningLeakage", "lin"); 199 MBinning binsT(51, -0.005, 0.505, "BinningTheta", "asin"); 200 MBinning binsD(50, 0, 1.6, "BinningDist", "lin"); 201 MBinning binsC(50, 1e-2, 1, "BinningConc", "log"); 202 MBinning binsI(16, 0, 800, "BinningImpact", "lin"); 201 203 202 204 plist.AddToList(&binsG); … … 204 206 plist.AddToList(&binsR); 205 207 plist.AddToList(&binsE); 208 plist.AddToList(&binsF); 206 209 plist.AddToList(&binsL); 207 210 plist.AddToList(&binsT); 208 211 plist.AddToList(&binsD); 209 212 plist.AddToList(&binsC); 213 plist.AddToList(&binsI); 210 214 211 215 MHEnergyEst hist; … … 252 256 hres2.SetDrawOption("colz profx"); 253 257 254 MFillH fillh(&hist); 258 MHn hres3("Resolution", "Energy Resolution"); 259 hres3.AddHist("MEnergyEst.fVal", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 260 hres3.InitName("ResEest;EnergyEst;"); 261 hres3.InitTitle(";E_{est} [GeV];Resolution (E_{mc}/E_{est}-1)^{2};"); 262 263 hres3.AddHist("MHillas.fSize", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 264 hres3.InitName("ResSize;Size;"); 265 hres3.InitTitle(";S [phe];Resolution (E_{mc}/E_{est}-1)^{2};"); 266 /* 267 hres3.AddHist("MMcEvt.fEnergy", "(MEnergyEst.fVal/MMcEvt.fEnergy-1)^2", MH3::kProfile); 268 hres3.InitName("ResEmc;EnergyEst;"); 269 hres3.InitTitle(";E_{mc} [GeV];Resolution (E_{est}/E_{mc}-1)^{2};"); 270 */ 271 hres3.AddHist("MPointingPos.fZd", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 272 hres3.InitName("ResTheta;Theta;"); 273 hres3.InitTitle(";\\Theta [\\circ];Resolution (E_{mc}/E_{est}-1)^{2};"); 274 hres3.AddHist("MMcEvt.fImpact/100", "(MMcEvt.fEnergy/MEnergyEst.fVal-1)^2", MH3::kProfile); 275 hres3.InitName("ResImpact;Impact;"); 276 hres3.InitTitle(";I [m];Resolution (E_{mc}/E_{est}-1)^{2};"); 277 278 MFillH fillh0(&hist); 255 279 MFillH fillh1(&hres1, "", "FillResiduals1"); 256 280 MFillH fillh2(&hres2, "", "FillResiduals2"); 281 MFillH fillh3(&hres3, "", "FillResolution"); 257 282 258 283 if (fEnableWeights) 259 284 { 260 fillh .SetWeight();285 fillh0.SetWeight(); 261 286 fillh1.SetWeight(); 262 287 fillh2.SetWeight(); 288 fillh3.SetWeight(); 263 289 } 264 290 … … 268 294 tlist.AddToList(&rf); 269 295 tlist.AddToList(fPostTasks); 270 tlist.AddToList(&fillh );296 tlist.AddToList(&fillh0); 271 297 tlist.AddToList(&fillh1); 272 298 tlist.AddToList(&fillh2); 299 tlist.AddToList(&fillh3); 273 300 tlist.AddToList(fTestTasks); 274 301 … … 283 310 return kFALSE; 284 311 312 TObjArray arr; 313 arr.Add(const_cast<MDataSet*>(&set)); 314 if (fDisplay) 315 arr.Add(fDisplay); 316 285 317 SetPathOut(out); 286 if (!WriteDisplay(0, "UPDATE")) 287 return kFALSE; 288 289 return kTRUE; 318 return WriteContainer(arr, 0, "UPDATE"); 290 319 } -
trunk/MagicSoft/Mars/mjtrain/MJTrainSeparation.cc
r8646 r8888 1047 1047 1048 1048 // Write the display 1049 TObjArray arr; 1050 arr.Add(const_cast<MDataSet*>(&fDataSetTrain)); 1051 arr.Add(const_cast<MDataSet*>(&fDataSetTest)); 1052 if (fDisplay) 1053 arr.Add(fDisplay); 1054 1049 1055 SetPathOut(out); 1050 if (!WriteDisplay(0, "UPDATE")) 1051 return kFALSE; 1052 1053 return kTRUE; 1056 return WriteContainer(arr, 0, "UPDATE"); 1054 1057 } 1055 1058
Note:
See TracChangeset
for help on using the changeset viewer.