source: JEM-EUSO/equalization_gain/trunk/src/PlotScurvesAll-diffFit.h @ 191

Last change on this file since 191 was 191, checked in by moretto, 11 years ago

Initial import of the project

File size: 1.9 KB
Line 
1//
2//
3// Definition of classes
4//
5#ifndef _PLOTSCURVESALLDIFFFIT_H_
6#define _PLOTSCURVESALLDIFFFIT_H_
7
8#include "PlotScurvesAll-diffFitConst.h"
9
10
11void PlotScurve(
12                Int_t    kDrawCh=31,
13                TString  fname=kFname,
14                TString  fname_ped=kFnamePed, //ASIC_D ped_file
15                Double_t dac_half_spe_fix = -1,
16                TString  fname_gain="gain-org.txt",
17                Int_t    fit_min=kFitMin,
18                Int_t    fit_max=kFitMax,
19                Int_t    fit_min_scurve=kFitMinS,
20                Int_t    fit_max_scurve=kFitMaxS,
21                Bool_t   kBoard=0, //0:ASIC_C, 1:ASIC_D
22                Int_t    kChRef=kRefCh,//ASIC_C
23                Bool_t   checkAve=0 //0:use ref pix, 1:check average
24                );
25
26
27//-------------------------------------------------------------
28// Same work presented inside the analysis class
29//
30//
31//-------------------------------------------------------------
32
33class Analysis
34{
35 public:
36
37  Analysis(); // construtor to clean variables, and create object on the heap
38
39  ~Analysis(); // destructor to clean object form the heap
40
41  // Main analysis function to be called from outside
42
43void PlotScurve(
44                Int_t    kDrawCh,
45                TString  fname,
46                TString  fname_ped, //ASIC_D ped_file
47                Double_t dac_half_spe_fix,
48                TString  fname_gain,
49                Int_t    fit_min,
50                Int_t    fit_max,
51                Int_t    fit_min_scurve,
52                Int_t    fit_max_scurve,
53                Bool_t   kBoard, //0:ASIC_C, 1:ASIC_D
54                Int_t    kChRef,//ASIC_C
55                Bool_t   checkAve //0:use ref pix, 1:check average
56                );
57
58
59
60
61private:
62
63// common variables to the analysis
64     TString *input;
65     TString *input_ped;
66     Int_t    ch;
67     Float_t  dac_half_sum; 
68     Float_t  dac_ped_sum;   
69     Float_t  dac_spe_sum;   
70     Float_t  dac_sfit_sum;     
71     Float_t  diff_sum;     
72     Float_t  mean_sum;       
73     Float_t  maxBinSum;
74
75// output of the PlotScurve Analysis
76     Double_t dac_half[kNch];
77     Double_t dac_ped[kNch];
78     Double_t dac_spe[kNch];
79     Double_t dac_sfit[kNch];
80     Double_t mean_diff[kNch];
81     Double_t gain_org[kNch];
82     Double_t sfit_chiS[kNch];
83     Double_t flag_fit[kNch];
84
85};
86
87#endif
88
Note: See TracBrowser for help on using the repository browser.