Changeset 204 in JEM-EUSO for equalization_gain/branches/analclass-Sylvie/src/PlotScurvesAll-diffFit.h
- Timestamp:
- Sep 27, 2013, 1:23:30 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
equalization_gain/branches/analclass-Sylvie/src/PlotScurvesAll-diffFit.h
r196 r204 47 47 // Main analysis function to be called from outside 48 48 49 void Menu(); 50 void Help(); 51 void PlotScurve( 52 Int_t kDrawCh=31, 53 TString fname=kFname, 54 TString fname_ped=kFnamePed, //ASIC_D ped_file 55 Double_t dac_half_spe_fix = -1, 56 TString fname_gain="gain-org.txt", 57 Int_t fit_min=kFitMin, 58 Int_t fit_max=kFitMax, 59 Int_t fit_min_scurve=kFitMinS, 60 Int_t fit_max_scurve=kFitMaxS, 61 Bool_t kBoard=0, //0:ASIC_C, 1:ASIC_D 62 Int_t kChRef=kRefCh,//ASIC_C 63 Bool_t checkAve=0 //0:use ref pix, 1:check average 64 ); 65 /* 49 66 void PlotScurve( 50 67 Int_t kDrawCh, … … 62 79 ); 63 80 64 81 */ 65 82 66 83 … … 71 88 void FillHistoName(); 72 89 void ReadGainFile(const TString,Bool_t); 90 void ProcessSingleChannel( 91 Int_t kDrawCh, 92 TString fname, 93 TString fname_ped, //ASIC_D ped_file 94 Double_t dac_half_spe_fix, 95 TString fname_gain, 96 Int_t fit_min, 97 Int_t fit_max, 98 Int_t fit_min_scurve, 99 Int_t fit_max_scurve, 100 Bool_t kBoard, //0:ASIC_C, 1:ASIC_D 101 Int_t kChRef//ASIC_C 102 ); 103 void ComputeDACAverage(Double_t dac_half_spe_fix ,Int_t kChRef,Bool_t checkAve); //0:use ref pix, 1:check average) 104 void OutputGain(const TString fname_out); 73 105 74 106 // common variables to the analysis 75 107 TString *input; 76 108 TString *input_ped; 77 Int_t ch; 109 Int_t ch; // index on current channel under analysis 78 110 Float_t dac_half_sum; 79 111 Float_t dac_ped_sum; … … 90 122 Double_t dac_sfit[kNch]; 91 123 Double_t mean_diff[kNch]; 92 Double_t gain_org[kNch]; 124 Double_t gain_org[kNch]; // array containing the initial gain values 93 125 Double_t sfit_chiS[kNch]; 94 126 Double_t flag_fit[kNch]; … … 115 147 TF1 *fit_sdiff; // function fitted on differentiated histograms of fitted s-curves 116 148 117 149 Int_t trigger; 150 Int_t trigger_fit; 151 Int_t trigger_mean; 152 Int_t trigger_sfit; 118 153 154 Float_t dac_ped_ave ; //absolute value 155 Float_t dac_half_ave ; 156 Float_t dac_spe_ave ; 157 Float_t dac_sfit_ave; 158 Float_t mean_diff_ave ;//dac_sfit of ch31 of ASIC_C with the 180 for lower gain pixels 159 160 Double_t dac_half_spe; 119 161 120 162 }; … … 122 164 #endif 123 165 166 //------------------------------------------------------------------------------------------------- 167 // Configure (x)emacs for this file ... 168 // Local Variables: 169 // mode: c++ 170 // compile-command: "(make;) " 171 // End:
Note: See TracChangeset
for help on using the changeset viewer.