Changeset 4927 for trunk


Ignore:
Timestamp:
09/10/04 16:22:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.cc

    r4925 r4927  
    102102// --------------------------------------------------------------------------
    103103//
    104 // Default Constructor. It sets name and title of the histogram.
     104// Default Constructor. It initializes all histograms.
    105105//
    106106MHEffectiveOnTime::MHEffectiveOnTime(const char *name, const char *title)
     
    263263}
    264264
     265// --------------------------------------------------------------------------
     266//
     267// Fit a single Delta-T distribution. See source code for more details
     268//
    265269Bool_t MHEffectiveOnTime::FitH(TH1D *h, Double_t *res, Bool_t paint) const
    266270{
     
    368372}
    369373
     374// --------------------------------------------------------------------------
     375//
     376// Fit a all bins of the distribution in theta. Store the result in the
     377// Theta-Histograms
     378//
    370379void MHEffectiveOnTime::FitThetaBins()
    371380{
     381    fHEffOnTheta.Reset();
     382    fHProbTheta.Reset();
     383    fHLambda.Reset();
     384    fHN0.Reset();
     385
    372386    const TString name = Form("CalcTheta%d", (UInt_t)gRandom->Uniform(999999999));
    373387
     
    413427}
    414428
     429// --------------------------------------------------------------------------
     430//
     431// Fit the single-time-bin histogram. Store the result in the
     432// Time-Histograms
     433//
    415434void MHEffectiveOnTime::FitTimeBin()
    416435{
     
    477496    }
    478497
     498    //
     499    // If this is the first call we have to initialize the time-histogram
     500    //
    479501    if (fLastTime==MTime())
    480502    {
     
    493515    }
    494516
     517    //
     518    // Fill time difference into the histograms
     519    //
    495520    const Double_t dt = *time-fLastTime;
    496521
     
    500525    fLastTime = *time;
    501526
     527    //
     528    // If we reached the event number limit for the time-bins fit the histogram
     529    //
    502530    if (fH1DeltaT.GetEntries()>=fNumEvents)
    503531        FitTimeBin();
     
    506534}
    507535
     536// --------------------------------------------------------------------------
     537//
     538//  Fit the theta projections of the 2D histogram and the 1D Delta-T
     539// distribution
     540//
    508541Bool_t MHEffectiveOnTime::Finalize()
    509542{
     
    516549}
    517550
     551// --------------------------------------------------------------------------
     552//
     553//  Paint the integral and the error on top of the histogram
     554//
    518555void MHEffectiveOnTime::PaintText(Double_t val, Double_t error) const
    519556{
     
    524561}
    525562
     563// --------------------------------------------------------------------------
     564//
     565//  Prepare painting the histograms
     566//
    526567void MHEffectiveOnTime::Paint(Option_t *opt)
    527568{
Note: See TracChangeset for help on using the changeset viewer.