Changeset 2024 for trunk/MagicSoft
- Timestamp:
- 04/28/03 13:43:17 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MPadSchweizer.cc
r2023 r2024 295 295 Int_t binNumber = fHSigmaTheta->GetXaxis()->FindBin(theta); 296 296 297 TH1D * fHSigma;297 TH1D *hsigma; 298 298 299 299 if ( binNumber < 1 || binNumber > fHSigmaTheta->GetNbinsX() ) … … 309 309 else 310 310 { 311 fHSigma = fHSigmaTheta->ProjectionY("", binNumber, binNumber, "");312 if ( fHSigma->GetEntries() == 0.0 )311 hsigma = fHSigmaTheta->ProjectionY("", binNumber, binNumber, ""); 312 if ( hsigma->GetEntries() == 0.0 ) 313 313 { 314 314 *fLog << "MPadSchweizer::Process(); projection for Theta bin " 315 315 << binNumber << " has no entries; Skip event " << endl; 316 316 // event cannot be padded; skip event 317 delete fHSigma;317 delete hsigma; 318 318 319 319 rc = 3; … … 323 323 else 324 324 { 325 sigmabar = fHSigma->GetRandom();325 sigmabar = hsigma->GetRandom(); 326 326 327 327 //*fLog << "Theta, bin number = " << theta << ", " << binNumber 328 328 // << ", sigmabar = " << sigmabar << endl; 329 329 } 330 delete fHSigma;330 delete hsigma; 331 331 } 332 332 const Double_t sigmabar2 = sigmabar*sigmabar; … … 427 427 428 428 Int_t count; 429 Int_t ok;429 Bool_t ok; 430 430 431 431 TH1D *hdiff; … … 452 452 453 453 count = 0; 454 ok = 0;454 ok = kFALSE; 455 455 for (Int_t m=0; m<20; m++) 456 456 { … … 496 496 497 497 count = 0; 498 ok = 0;498 ok = kFALSE; 499 499 for (Int_t m=0; m<20; m++) 500 500 {
Note:
See TracChangeset
for help on using the changeset viewer.