Changeset 2695 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 12/17/03 17:14:00 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.cc
r2574 r2695 247 247 fTitle = title ? title : "Optimizer of the supercuts"; 248 248 249 fUseOrigDistribution = kFALSE;250 251 249 //--------------------------- 252 250 // camera geometry is needed for conversion mm ==> degree … … 280 278 } 281 279 282 283 // --------------------------------------------------------------------------284 //285 //286 //287 void MCT1FindSupercuts::SetUseOrigDistribution(Bool_t b)288 {289 fUseOrigDistribution = b;290 291 *fLog << "MCT1FindSupercuts : when defining training and test matrices use the original distribution"292 << endl;293 }294 295 280 // -------------------------------------------------------------------------- 296 281 // … … 312 297 << "', select " << howmanytrain 313 298 << " events " << endl; 314 if (! fUseOrigDistribution)299 if (!hreftrain.GetHist().GetEntries()==0) 315 300 { 316 301 *fLog << " according to a distribution given by the MH3 object '" … … 332 317 seltrain.SetNumMax(howmanytrain); 333 318 seltrain.SetName("selectTrain"); 334 if (fUseOrigDistribution)335 seltrain.SetUseOrigDistribution(kTRUE);336 319 337 320 MFillH filltrain(fMatrixTrain); … … 416 399 << "', select " << howmanytest 417 400 << " events " << endl; 418 if (! fUseOrigDistribution)401 if (!hreftest.GetHist().GetEntries()==0) 419 402 { 420 403 *fLog << " according to a distribution given by the MH3 object '" … … 436 419 seltest.SetNumMax(howmanytest); 437 420 seltest.SetName("selectTest"); 438 if (fUseOrigDistribution)439 seltest.SetUseOrigDistribution(kTRUE);440 421 441 422 MFillH filltest(fMatrixTest); … … 514 495 << "', select " << howmanytrain 515 496 << " training and " << howmanytest << " test events " << endl; 516 if (! fUseOrigDistribution)497 if (!href.GetHist().GetEntries()==0) 517 498 { 518 499 *fLog << " according to a distribution given by the MH3 object '" … … 535 516 selector.SetName("selectTrainTest"); 536 517 selector.SetInverted(); 537 if (fUseOrigDistribution)538 selector.SetUseOrigDistribution(kTRUE);539 518 540 519 MContinue cont(&selector); -
trunk/MagicSoft/Mars/manalysis/MCT1FindSupercuts.h
r2574 r2695 37 37 Int_t fHowManyTrain; 38 38 Int_t fHowManyTest; 39 40 Bool_t fUseOrigDistribution;41 39 42 40 TString fFilenameParam; -
trunk/MagicSoft/Mars/manalysis/MFindSupercuts.cc
r2663 r2695 247 247 fTitle = title ? title : "Optimizer of the supercuts"; 248 248 249 fUseOrigDistribution = kFALSE;250 251 249 //--------------------------- 252 250 // camera geometry is needed for conversion mm ==> degree … … 280 278 } 281 279 282 283 // --------------------------------------------------------------------------284 //285 //286 //287 void MFindSupercuts::SetUseOrigDistribution(Bool_t b)288 {289 fUseOrigDistribution = b;290 291 *fLog << "MFindSupercuts : when defining training and test matrices use the original distribution"292 << endl;293 }294 295 280 // -------------------------------------------------------------------------- 296 281 // … … 311 296 *fLog << "fill training matrix from file '" << nametrain 312 297 << "', select " << howmanytrain 313 314 if (! fUseOrigDistribution)298 << " events " << endl; 299 if (!hreftrain.GetHist().GetEntries()==0) 315 300 { 316 301 *fLog << " according to a distribution given by the MH3 object '" … … 332 317 seltrain.SetNumMax(howmanytrain); 333 318 seltrain.SetName("selectTrain"); 334 if (fUseOrigDistribution)335 seltrain.SetUseOrigDistribution(kTRUE);336 319 337 320 MFillH filltrain(fMatrixTrain); … … 416 399 << "', select " << howmanytest 417 400 << " events " << endl; 418 if (! fUseOrigDistribution)401 if (!hreftest.GetHist().GetEntries()==0) 419 402 { 420 403 *fLog << " according to a distribution given by the MH3 object '" … … 436 419 seltest.SetNumMax(howmanytest); 437 420 seltest.SetName("selectTest"); 438 if (fUseOrigDistribution)439 seltest.SetUseOrigDistribution(kTRUE);440 421 441 422 MFillH filltest(fMatrixTest); … … 514 495 << "', select " << howmanytrain 515 496 << " training and " << howmanytest << " test events " << endl; 516 if (! fUseOrigDistribution)497 if (!href.GetHist().GetEntries()==0) 517 498 { 518 499 *fLog << " according to a distribution given by the MH3 object '" … … 535 516 selector.SetName("selectTrainTest"); 536 517 selector.SetInverted(); 537 if (fUseOrigDistribution)538 selector.SetUseOrigDistribution(kTRUE);539 518 540 519 MContinue cont(&selector);
Note:
See TracChangeset
for help on using the changeset viewer.