Ignore:
Timestamp:
Sep 27, 2013, 1:23:30 PM (11 years ago)
Author:
dagoret
Message:

working class analysis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • equalization_gain/branches/analclass-Sylvie/src/PlotScurvesAll-diffFit.h

    r196 r204  
    4747  // Main analysis function to be called from outside
    4848
     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/*
    4966void PlotScurve(
    5067                Int_t    kDrawCh,
     
    6279                );
    6380
    64 
     81*/
    6582
    6683
     
    7188 void FillHistoName();
    7289 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);
    73105
    74106// common variables to the analysis
    75107     TString *input;
    76108     TString *input_ped;
    77      Int_t    ch;
     109     Int_t    ch; // index on current channel under analysis
    78110     Float_t  dac_half_sum; 
    79111     Float_t  dac_ped_sum;   
     
    90122     Double_t dac_sfit[kNch];
    91123     Double_t mean_diff[kNch];
    92      Double_t gain_org[kNch];
     124     Double_t gain_org[kNch]; // array containing the initial gain values
    93125     Double_t sfit_chiS[kNch];
    94126     Double_t flag_fit[kNch];
     
    115147     TF1     *fit_sdiff;  // function fitted on differentiated histograms of fitted s-curves
    116148
    117 
     149     Int_t trigger;
     150     Int_t trigger_fit;
     151     Int_t trigger_mean;
     152     Int_t trigger_sfit;
    118153     
     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;
    119161
    120162};
     
    122164#endif
    123165
     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.