Changeset 12170 for fact/tools/rootmacros/testFPedestalAllPx.C
- Timestamp:
- 10/11/11 19:26:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/rootmacros/testFPedestalAllPx.C
r12166 r12170 11 11 #include "FPedestalAllPx.c" 12 12 13 int testFPedestalAllPx(const char *name, const char *drsname) 13 int testFPedestalAllPx( 14 const char *name = "../raw/20110916_025.fits", 15 const char *drsname = "../raw/20110916_024.drs.fits") 14 16 { 15 17 //****************************************************************************** … … 19 21 //Example call in ROOT: 20 22 //root [74] .x calscope.C++("20110804_024.fits","20110804_023.drs.fits",10,1348) 21 //T. Kr ähenbühl, August 2011, tpk@phys.ethz.ch23 //T. Kr�henb�hl, August 2011, tpk@phys.ethz.ch 22 24 //****************************************************************************** 23 25 … … 52 54 vector<float> drs_gainmean; 53 55 vector<float> drs_triggeroffsetmean; 56 54 57 FOpenCalibFile(drsname, drs_basemean, drs_gainmean, drs_triggeroffsetmean, drs_n); 55 58 59 56 60 //------------------------------------------- 57 61 //Check the sizes of the data columns … … 62 66 return 1; 63 67 } 68 else{ 69 cout << "Data and DRS file compatible" << endl; 70 // continue 71 } 64 72 65 73 … … 75 83 float pedestal_mean[data_px]; 76 84 float pedestal_rms[data_px]; 85 77 86 FPedestalAllPx(datafile, data, data_offset, drs_basemean, drs_gainmean, drs_triggeroffsetmean, data_px, data_roi, pedestal_mean, pedestal_rms); 87 78 88 // vector<float> calevent(data_px*data_roi); //Vector for the calibrated event 79 89 // FGetCalEvent(data, data_offset, drs_basemean, drs_gainmean, drs_triggeroffsetmean, calevent, data_px, data_roi); … … 82 92 //Draw the data 83 93 //------------------------------------------- 94 84 95 TCanvas *canv_mean= new TCanvas( "canv_mean", "mean in mV", 30, 300, 900, 500 ); 85 96 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.