Changeset 2296 for trunk/MagicSoft/Mars/mhist/MHHadronness.cc
- Timestamp:
- 07/29/03 13:18:57 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHHadronness.cc
r2225 r2296 430 430 // -------------------------------------------------------------------------- 431 431 // 432 // Search the hadronness corresponding to a given hadron acceptance. 433 // 434 Double_t MHHadronness::GetHadronness(Double_t acchad) const 435 { 436 for (int i=1; i<fIntPhness->GetNbinsX()+1; i++) 437 if (fIntPhness->GetBinContent(i)>acchad) 438 return fIntPhness->GetBinLowEdge(i); 439 440 return -1; 441 } 442 443 // -------------------------------------------------------------------------- 444 // 432 445 // Print the corresponding Gammas Acceptance for a hadron acceptance of 433 446 // 10%, 20%, 30%, 40% and 50%. Also the minimum distance to the optimum … … 448 461 449 462 *fLog << "Used " << fGhness->GetEntries() << " Gammas and " << fPhness->GetEntries() << " Hadrons." << endl; 450 *fLog << "acc(hadron) acc(gamma) acc(g)/acc(h)" << endl <<endl;451 452 *fLog << " 0.005 " << Form("%6.3f", GetGammaAcceptance(0.005)) << " " << Form("%6.3f", GetGammaAcceptance(0.005)/0.005) << endl;453 *fLog << " 0.02 " << Form("%6.3f", GetGammaAcceptance(0.02)) << " " << Form("%6.3f", GetGammaAcceptance(0.02)/0.02) << endl;454 *fLog << " 0.05 " << Form("%6.3f", GetGammaAcceptance(0.05)) << " " << Form("%6.3f", GetGammaAcceptance(0.05)/0.05) << endl;455 *fLog << " 0.1 " << Form("%6.3f", GetGammaAcceptance(0.1 )) << " " << Form("%6.3f", GetGammaAcceptance(0.1)/0.1) << endl;456 *fLog << " 0.2 " << Form("%6.3f", GetGammaAcceptance(0.2 )) << " " << Form("%6.3f", GetGammaAcceptance(0.2)/0.2) << endl;457 *fLog << " 0.3 " << Form("%6.3f", GetGammaAcceptance(0.3 )) << " " << Form("%6.3f", GetGammaAcceptance(0.3)/0.3) << endl;463 *fLog << "acc(hadron) acc(gamma) acc(g)/acc(h) h" << endl <<endl; 464 465 *fLog << " 0.005 " << Form("%6.3f", GetGammaAcceptance(0.005)) << " " << Form("%6.3f", GetGammaAcceptance(0.005)/0.005) << " " << GetHadronness(0.005) << endl; 466 *fLog << " 0.02 " << Form("%6.3f", GetGammaAcceptance(0.02)) << " " << Form("%6.3f", GetGammaAcceptance(0.02)/0.02) << " " << GetHadronness(0.02) << endl; 467 *fLog << " 0.05 " << Form("%6.3f", GetGammaAcceptance(0.05)) << " " << Form("%6.3f", GetGammaAcceptance(0.05)/0.05) << " " << GetHadronness(0.05) << endl; 468 *fLog << " 0.1 " << Form("%6.3f", GetGammaAcceptance(0.1 )) << " " << Form("%6.3f", GetGammaAcceptance(0.1)/0.1) << " " << GetHadronness(0.1) << endl; 469 *fLog << " 0.2 " << Form("%6.3f", GetGammaAcceptance(0.2 )) << " " << Form("%6.3f", GetGammaAcceptance(0.2)/0.2) << " " << GetHadronness(0.2) << endl; 470 *fLog << " 0.3 " << Form("%6.3f", GetGammaAcceptance(0.3 )) << " " << Form("%6.3f", GetGammaAcceptance(0.3)/0.3) << " " << GetHadronness(0.3) << endl; 458 471 *fLog << Form("%6.3f", GetHadronAcceptance(0.1)) << " 0.1 " << endl; 459 472 *fLog << Form("%6.3f", GetHadronAcceptance(0.2)) << " 0.2 " << endl;
Note:
See TracChangeset
for help on using the changeset viewer.