Ignore:
Timestamp:
10/11/11 19:26:14 (13 years ago)
Author:
neise
Message:
small fix: Thomas and Werner
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/testFPedestalAllPx.C

    r12166 r12170  
    1111#include "FPedestalAllPx.c"
    1212
    13 int testFPedestalAllPx(const char *name, const char *drsname)
     13int testFPedestalAllPx(
     14    const char *name = "../raw/20110916_025.fits",
     15    const char *drsname = "../raw/20110916_024.drs.fits")
    1416{
    1517//******************************************************************************
     
    1921//Example call in ROOT:
    2022//root [74] .x calscope.C++("20110804_024.fits","20110804_023.drs.fits",10,1348)
    21 //T. Krähenbühl, August 2011, tpk@phys.ethz.ch
     23//T. Kr�henb�hl, August 2011, tpk@phys.ethz.ch
    2224//******************************************************************************
    2325
     
    5254        vector<float> drs_gainmean;
    5355        vector<float> drs_triggeroffsetmean;
     56   
    5457        FOpenCalibFile(drsname, drs_basemean, drs_gainmean, drs_triggeroffsetmean, drs_n);
    5558       
     59   
    5660//-------------------------------------------
    5761//Check the sizes of the data columns
     
    6266                return 1;
    6367        }
     68    else{
     69        cout << "Data and DRS file compatible" << endl;
     70        // continue
     71    }
    6472       
    6573       
     
    7583        float pedestal_mean[data_px];
    7684        float pedestal_rms[data_px];
     85
    7786        FPedestalAllPx(datafile, data, data_offset, drs_basemean, drs_gainmean, drs_triggeroffsetmean, data_px, data_roi, pedestal_mean, pedestal_rms);
     87
    7888//      vector<float> calevent(data_px*data_roi); //Vector for the calibrated event
    7989//      FGetCalEvent(data, data_offset, drs_basemean, drs_gainmean, drs_triggeroffsetmean, calevent, data_px, data_roi);
     
    8292//Draw the data
    8393//-------------------------------------------
     94   
    8495        TCanvas *canv_mean= new TCanvas( "canv_mean", "mean in mV", 30, 300, 900, 500 );
    8596        TH1F* histo_mean = new TH1F("histo_mean","Value of maximal probability",2000,-99.5,100.5);
Note: See TracChangeset for help on using the changeset viewer.