Ignore:
Timestamp:
06/13/05 09:41:57 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhflux/MHThetaSq.cc

    r7125 r7147  
    3434// For more detailes see MHAlpha.
    3535//
     36// Version 2:
     37// ---------
     38//  + UInt_t fNumBinsSignal;
     39//  + UInt_t fNumBinsTotal;
     40//
    3641//////////////////////////////////////////////////////////////////////////////
    3742#include "MHThetaSq.h"
     
    5762//
    5863MHThetaSq::MHThetaSq(const char *name, const char *title)
    59     : MHAlpha(name, title), fThetaSq(0)
     64    : MHAlpha(name, title), fThetaSq(0), fNumBinsSignal(3), fNumBinsTotal(45)
    6065{
    6166    //
     
    120125    // Calculate bining which fits alpha-cut
    121126    const Double_t intmax = fit->GetSignalIntegralMax();
    122     const UInt_t   nbins  = 75;
    123     const UInt_t   nsig   =  5;
     127    const UInt_t   nbins  = fNumBinsTotal;
     128    const UInt_t   nsig   = fNumBinsSignal;
    124129
    125130    MBinning binsa(nbins, 0, nbins*intmax/nsig);
     
    201206   //     fMap[4] = fMatrix->AddColumn("MTime.GetAxisTime");
    202207}
     208
     209Int_t MHThetaSq::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     210{
     211    Int_t rc = MHAlpha::ReadEnv(env, prefix, print);
     212    if (rc==kERROR)
     213        return kERROR;
     214
     215    if (IsEnvDefined(env, prefix, "NumBinsSignal", print))
     216    {
     217        SetNumBinsSignal(GetEnvValue(env, prefix, "NumBinsSignal", (Int_t)fNumBinsSignal));
     218        rc = kTRUE;
     219    }
     220    if (IsEnvDefined(env, prefix, "NumBinsTotal", print))
     221    {
     222        SetNumBinsTotal(GetEnvValue(env, prefix, "NumBinsTotal", (Int_t)fNumBinsTotal));
     223        rc = kTRUE;
     224    }
     225    return rc;
     226}
Note: See TracChangeset for help on using the changeset viewer.