Changeset 6948 for trunk/MagicSoft/Mars/mjobs/MJCut.cc
- Timestamp:
- 04/18/05 10:17:03 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r6941 r6948 227 227 // analysis number num, see GetOutputFile() 228 228 // 229 Bool_t MJCut::WriteResult( UInt_t num) const229 Bool_t MJCut::WriteResult(const MParList &plist, UInt_t num) const 230 230 { 231 231 TObjArray arr; 232 233 TIter Next(plist); 234 TObject *o=0; 235 while ((o=Next())) 236 if (o->InheritsFrom(MBinning::Class())) 237 arr.Add(o); 238 232 239 return WriteContainer(arr, GetOutputFile(num), "UPDATE"); 233 240 } … … 278 285 write->AddContainer("MHillas", "Events"); 279 286 write->AddContainer("MHillasSrc", "Events"); 287 write->AddContainer("MHillasExt", "Events"); 280 288 write->AddContainer("MPointingPos", "Events"); 281 289 write->AddContainer("MHillasSrcAnti", "Events", kFALSE); … … 293 301 } 294 302 303 void MJCut::DisplayResult(const MParList &plist) const 304 { 305 /* 306 TObject *h1 = plist.FindObject("MHHillasOffPre", "MHHillas"); 307 TObject *h2 = plist.FindObject("MHHillasOffPost", "MHHillas"); 308 TObject *h3 = plist.FindObject("MHVsSizeOffPost", "MHVsSize"); 309 TObject *h4 = plist.FindObject("MHHilExtOffPost", "MHHillasExt"); 310 TObject *h5 = plist.FindObject("MHHilSrcOffPost", "MHHillasSrc"); 311 TObject *h6 = plist.FindObject("MHImgParOffPost", "MHImagePar"); 312 TObject *h7 = plist.FindObject("MHNewParOffPost", "MHNewImagePar"); 313 */ 314 } 315 295 316 Bool_t MJCut::ProcessFile(const MDataSet &set) 296 317 { … … 342 363 MBinning bins3(50, 0, 60, "BinningTheta", "cos"); 343 364 MBinning bins4("BinningFalseSource"); 344 //MBinning bins5("BinningWidth"); 345 //MBinning bins6("BinningLength"); 346 //MBinning bins7("BinningDist"); 365 MBinning bins5("BinningWidth"); 366 MBinning bins6("BinningLength"); 367 MBinning bins7("BinningDist"); 368 MBinning bins8("BinningMaxDist"); 347 369 plist.AddToList(&bins1); 348 370 plist.AddToList(&bins2); 349 371 plist.AddToList(&bins3); 350 372 plist.AddToList(&bins4); 351 //plist.AddToList(&bins5); 352 //plist.AddToList(&bins6); 353 //plist.AddToList(&bins7); 373 plist.AddToList(&bins5); 374 plist.AddToList(&bins6); 375 plist.AddToList(&bins7); 376 plist.AddToList(&bins8); 354 377 355 378 // -------------------------------------------------------------------------------- … … 623 646 tlist.PrintStatistics(); 624 647 648 DisplayResult(plist); 649 625 650 // FIXME: Perform fit and plot energy dependant alpha plots 626 651 // and fit result to new tabs! 627 if (!WriteResult( set.GetNumAnalysis()))652 if (!WriteResult(plist, set.GetNumAnalysis())) 628 653 return kFALSE; 629 654
Note:
See TracChangeset
for help on using the changeset viewer.