Ignore:
Timestamp:
02/21/13 14:54:44 (12 years ago)
Author:
Jens Buss
Message:
changed number of entries from double to float
Location:
fact/tools/rootmacros/PulseTemplates
Files:
2 edited

Legend:

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

    r14754 r14944  
    4141    mMaxNumber      = 0;
    4242    mSampleSize     = 0;
     43    mVerbosityLvl   = 0;
    4344    mSeed           = 4357;
    4445}
     
    199200    int nbins = inputHisto->GetXaxis()->GetNbins();
    200201
     202    if (mVerbosityLvl > 1) cout << "nbins: " << nbins << endl;
    201203    //we need to get the binning
    202204
    203205    //entries of TH1
    204     vector<float>    entries;
     206    vector<double>    entries;
    205207
    206208    //quantity of entries in bin
    207209    int quantity    = 0;
    208     float value       = 0;
     210    double value       = 0;
    209211    for (int i=0;i<nbins;i++)
    210212    {
    211213        value       = inputHisto->GetBinLowEdge(i);
    212214        quantity    = inputHisto->GetBinContent(i);
    213 //        cout << value << "(" << quantity << ") ";
    214215        for (int j = 0; j < quantity; j++)
    215216        {
     
    220221    //get size of sample to be bootstrapped
    221222    int sampleSize = entries.size();
     223
     224    if (mVerbosityLvl > 1) cout << "sampleSize: " << sampleSize << endl;
    222225
    223226    //Vector with positions in original sample
     
    256259{
    257260    if (size == 0){
    258         cout << "Bootstrapping: size of vector = 0; nothing to do" << endl;
     261        if (mVerbosityLvl > 1) cout << "Bootstrapping: size of vector = 0; nothing to do" << endl;
    259262        return;
    260263    }
  • fact/tools/rootmacros/PulseTemplates/Sample.h

    r14744 r14944  
    106106    int             mSeed;
    107107    TRandom3        mRandom;
     108    int             mVerbosityLvl;
    108109
    109110};
Note: See TracChangeset for help on using the changeset viewer.