Ignore:
Timestamp:
10/15/12 14:27:48 (12 years ago)
Author:
Jens Buss
Message:
calculated model attributes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/PulseTemplates/pulse.h

    r14472 r14475  
    1515#include <TString.h>
    1616#include <TSystem.h>
     17#include <TFitResult.h>
    1718//
    1819
     
    4546    */
    4647    Pulse( );
    47     Pulse(TH1* histo );
    48     Pulse(TH1* histo, TString options );
     48    Pulse(TString name);
     49    Pulse(TString name, TH1* histo );
     50    Pulse(TString name, TH1* histo, int type);
     51    Pulse(TString name, TH1* histo, TString options );
     52    Pulse(TString name, TH1* histo, TString options, int type);
    4953
    5054    //    /** Copy constructor.
     
    6973// OPERATIONS
    7074//    double shapeFunc( double* x, double* par);
    71     void    Fit(TString fitName, TString fitOptions );
    72     void    Fit(TString fitName, TString fitOptions, int fitMin, int fitMax);
    73     void    Fit2(TString fitName, TString fitOptions );
    74     void    Fit2(TString fitName, TString fitOptions, int fitMin, int fitMax);
     75    void    Fit(TString fitName, TString fitOptions, int type );
     76    void    Fit(TString fitName, TString fitOptions, int type, int fitMin, int fitMax);
     77
     78private:
     79    void    FitSectionWise(TString fitName, TString fitOptions, int fitMin, int fitMax);
     80    void    FitContious(TString fitName, TString fitOptions, int fitMin, int fitMax);
     81    void    CalculateParameters();
     82    void    InitMembers();
    7583
    7684// ACCESS
     85public:
    7786    double  GetBsl();
    7887    double  GetHeight();
     
    8695
    8796// INQUIRY
    88 private:
     97    TString mName;
    8998    TH1*    mHisto;
     99    TF1*    mModel;
    90100    TString mOptions;
    91101    double  mBsl;
    92102    double  mHeight;
    93     double  mStart;
    94     double  mRising;
    95     double  mTauRising;
    96     double  mTauFalling;
     103    double  mT0;
     104    double  mT1;
     105    double  mTau1;
     106    double  mTau2;
    97107    double  mIntegral;
    98108    double  mAmplitude;
    99109    int     mPhE;
     110    int     mType;
     111    int     mFitMin;
     112    int     mFitMax;
     113    double  mFitProb;
     114    double  mFitNCalls;
     115    double  mFitNdf;
     116    double  mChi2;
    100117
     118    TFitResultPtr mFitResultPtr;
    101119};
    102120
Note: See TracChangeset for help on using the changeset viewer.