Changeset 2695
- Timestamp:
- 12/17/03 17:14:00 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2694 r2695 37 37 - removed fUseOrigDistrib accoring to href.GetEntries()==0 used in 38 38 MFEventSelector2 and MFillMatrix 39 40 * macros/CT1Analysis.C: 41 - tried to make fUseOrigDistrib-stuff working again 39 42 40 43 -
trunk/MagicSoft/Mars/macros/CT1Analysis.C
r2575 r2695 1119 1119 gref.SetName(mgname); 1120 1120 MH::SetBinning(&gref.GetHist(), &bing); 1121 for (Int_t i=1; i<=gref.GetNbins(); i++)1122 gref.GetHist().SetBinContent(i, 1.0);1121 //for (Int_t i=1; i<=gref.GetNbins(); i++) 1122 // gref.GetHist().SetBinContent(i, 1.0); 1123 1123 1124 1124 MFEventSelector2 selectorg(gref); … … 1126 1126 selectorg.SetName("selectGammasTrainTest"); 1127 1127 selectorg.SetInverted(); 1128 selectorg.SetUseOrigDistribution(kTRUE);1128 //selectorg.SetUseOrigDistribution(kTRUE); 1129 1129 1130 1130 MContinue contg(&selectorg); … … 1874 1874 findsuper.SetFilenameParam(parSCfile); 1875 1875 findsuper.SetHadronnessName("HadSC"); 1876 findsuper.SetUseOrigDistribution(kTRUE);1876 //findsuper.SetUseOrigDistribution(kTRUE); 1877 1877 1878 1878 //-------------------------- -
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); -
trunk/MagicSoft/Mars/mtools/MTFillMatrix.cc
r2692 r2695 146 146 // at MFEventSelector2 which is used to select the events. 147 147 // 148 // FIXME: Make a copy of ref. 149 // 148 150 MTFillMatrix::MTFillMatrix(const MH3 &ref) 149 151 : fReference(ref), fReader(0), fDestMatrix1(0), … … 166 168 return kFALSE; 167 169 } 168 169 const Bool_t useorigdistrib = fReference.GetHist().GetEntries()==0;170 170 171 171 *fLog << inf; … … 174 174 *fLog << "Fill " << fDestMatrix2->GetDescriptor() << " with " << fNumDestEvents2 << endl; 175 175 *fLog << "Distribution choosen "; 176 if ( !useorigdistrib)176 if (fReference.GetHist().GetEntries()>0) 177 177 *fLog << "from " << fReference.GetDescriptor(); 178 178 else … … 193 193 selector.SetNumMax(fNumDestEvents1+fNumDestEvents2); 194 194 selector.SetInverted(); 195 if (useorigdistrib)196 selector.SetUseOrigDistribution(kTRUE);197 195 198 196 //
Note:
See TracChangeset
for help on using the changeset viewer.