Changeset 14748


Ignore:
Timestamp:
12/13/12 18:21:11 (12 years ago)
Author:
Jens Buss
Message:
comments and changed start values for fit
File:
1 edited

Legend:

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

    r14532 r14748  
    9393        )
    9494{
     95//    mHisto->Sumw2();
     96
    9597    fitOptions += "R";
    96     if (type == 0)
     98    if (type == 0)          //use sectionwise function
    9799        FitSectionWise(
    98100            fitName,
     
    101103            fitMax
    102104        );
    103     else if (type == 1)
     105    else if (type == 1)     //use continous function
    104106        FitContious(
    105107            fitName,
     
    154156}
    155157
     158// Fit pulseshape with a section wise defined funciton
     159// expressed by a sum of section wise defined exp-functions
     160//controled by heaviside function
    156161void
    157162Pulse::FitSectionWise(
     
    168173    // ======================================================================
    169174    // Calculate startvaues for fit
    170     double tau      = 30.0;
    171     double bsl = 0; //MW der ersten zehn slices
     175    double tau = 30.0;
     176    double bsl = 0.8;     //shall be around 0
    172177
    173178    int first_bin   = mHisto->GetXaxis()->GetFirst();
     
    209214}
    210215
     216// Fit pulseshape with a continous funciton expressed by a product of two exp-functions
    211217void
    212218Pulse::FitContious(
     
    259265    mPhE.second     = mModel->GetParError(5);
    260266
    261     cout << "test" << mBsl.first << "\t +/-" << mBsl.second << endl;
     267//    cout << "test" << mBsl.first << "\t +/-" << mBsl.second << endl;
    262268}
    263269
Note: See TracChangeset for help on using the changeset viewer.