- Timestamp:
- 09/10/04 16:22:12 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.cc
r4925 r4927 102 102 // -------------------------------------------------------------------------- 103 103 // 104 // Default Constructor. It sets name and title of the histogram.104 // Default Constructor. It initializes all histograms. 105 105 // 106 106 MHEffectiveOnTime::MHEffectiveOnTime(const char *name, const char *title) … … 263 263 } 264 264 265 // -------------------------------------------------------------------------- 266 // 267 // Fit a single Delta-T distribution. See source code for more details 268 // 265 269 Bool_t MHEffectiveOnTime::FitH(TH1D *h, Double_t *res, Bool_t paint) const 266 270 { … … 368 372 } 369 373 374 // -------------------------------------------------------------------------- 375 // 376 // Fit a all bins of the distribution in theta. Store the result in the 377 // Theta-Histograms 378 // 370 379 void MHEffectiveOnTime::FitThetaBins() 371 380 { 381 fHEffOnTheta.Reset(); 382 fHProbTheta.Reset(); 383 fHLambda.Reset(); 384 fHN0.Reset(); 385 372 386 const TString name = Form("CalcTheta%d", (UInt_t)gRandom->Uniform(999999999)); 373 387 … … 413 427 } 414 428 429 // -------------------------------------------------------------------------- 430 // 431 // Fit the single-time-bin histogram. Store the result in the 432 // Time-Histograms 433 // 415 434 void MHEffectiveOnTime::FitTimeBin() 416 435 { … … 477 496 } 478 497 498 // 499 // If this is the first call we have to initialize the time-histogram 500 // 479 501 if (fLastTime==MTime()) 480 502 { … … 493 515 } 494 516 517 // 518 // Fill time difference into the histograms 519 // 495 520 const Double_t dt = *time-fLastTime; 496 521 … … 500 525 fLastTime = *time; 501 526 527 // 528 // If we reached the event number limit for the time-bins fit the histogram 529 // 502 530 if (fH1DeltaT.GetEntries()>=fNumEvents) 503 531 FitTimeBin(); … … 506 534 } 507 535 536 // -------------------------------------------------------------------------- 537 // 538 // Fit the theta projections of the 2D histogram and the 1D Delta-T 539 // distribution 540 // 508 541 Bool_t MHEffectiveOnTime::Finalize() 509 542 { … … 516 549 } 517 550 551 // -------------------------------------------------------------------------- 552 // 553 // Paint the integral and the error on top of the histogram 554 // 518 555 void MHEffectiveOnTime::PaintText(Double_t val, Double_t error) const 519 556 { … … 524 561 } 525 562 563 // -------------------------------------------------------------------------- 564 // 565 // Prepare painting the histograms 566 // 526 567 void MHEffectiveOnTime::Paint(Option_t *opt) 527 568 {
Note:
See TracChangeset
for help on using the changeset viewer.