Changeset 202 in JEM-EUSO


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

class Analysis put debug

Location:
equalization_gain/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • equalization_gain/trunk/src/PlotScurvesAll-diffFit.cc

    r201 r202  
    774774Analysis::Analysis():ch(0),dac_half_sum(0),dac_spe_sum(0),dac_sfit_sum(0),diff_sum(0),mean_sum(0),maxBinSum(0)
    775775{
    776  
    777   cout << " analysis initialisation " << endl;
     776  if(DEBUG)
     777    cout << " START Analysis Constructor " << endl;
    778778
    779779 /*********************** SIGNAL RUN ********************/
     
    790790  maxBinSum         = 0;
    791791
    792 
     792 if(DEBUG)
     793    cout << " END Analysis Constructor " << endl;
    793794}
    794795//--------------------------------------------------------------------------------------------------------
     
    801802{
    802803 
     804 if(DEBUG)
     805    cout << " START Analysis Destructor " << endl;
     806
    803807  if(input!=0) delete input;
    804808  if(input_ped!=0) delete input_ped;
    805809
     810if(DEBUG)
     811    cout << " END Analysis Destructor " << endl;
    806812
    807813}
     
    847853{
    848854
     855if(DEBUG)
     856{
     857    cout << " START Analysis::PlotScurve " << endl;
     858    cout << " \t - kDrawCh = " << kDrawCh << endl;
     859    cout << " \t - fname = " << fname << endl;
     860    cout << " \t - fname_ped = " << fname_ped <<endl;
     861    cout << " \t - dac_half_spe_fix = " << dac_half_spe_fix << endl;
     862
     863    cout << " \t - fname_gain = " << fname_gain << endl;
     864    cout << " \t - fit_min = " << fit_min << endl;
     865    cout << " \t - fit_max = " << fit_max << endl;
     866    cout << " \t - fit_min_scurve = " << fit_min_scurve << endl;
     867    cout << " \t - fit_max_scurve = " << fit_max_scurve << endl;
     868    cout << " \t - kBoard = " << kBoard << " 0:ASIC_C, 1:ASIC_D " << endl;
     869    cout << " \t - kChRef = " << kChRef << " ASIC_C " << endl;
     870    cout << " \t - checkAve = " << checkAve << " 0:use ref pix, 1:check average " << endl;     
     871}
    849872  // reset all variables
    850873  Init();
     
    877900  OutputGain(kFnameOut);
    878901
    879 
     902if(DEBUG)
     903    cout << " END Analysis::PlotSCurve " << endl;
    880904
    881905}
     
    888912void Analysis::Init()
    889913{
     914
     915if(DEBUG)
     916    cout << " START Analysis::Init " << endl;
    890917
    891918  if(input!=0) delete input;
     
    938965 }
    939966
     967if(DEBUG)
     968    cout << " END Analysis::Init " << endl;
    940969
    941970 
     
    948977void Analysis::OpenGainFile(const TString fname_gain)
    949978{
     979if(DEBUG)
     980    cout << " START Analysis::OpenGainFile " << endl;
     981
     982
     983
    950984  TString input_gain(fname_gain);
    951985  ifstream in_gain(input_gain.Data());
     
    957991  in_gain.clear();
    958992
     993if(DEBUG)
     994    cout << " END Analysis::OpenGainFile " << endl;
     995
     996
    959997}
    960998//--------------------------------------------------------------------------------------------------------
     
    9651003void Analysis::FillHistoName()
    9661004{
     1005
     1006if(DEBUG)
     1007    cout << " START Analysis::FillHistoName " << endl;
     1008
     1009
    9671010 
    9681011// first loop on channels to fill histonames
     
    9821025  }
    9831026
     1027if(DEBUG)
     1028    cout << " END Analysis::FillHistoName " << endl;
     1029
     1030
     1031
    9841032}
    9851033//--------------------------------------------------------------------------------------------------------
     
    9941042void Analysis::ReadGainFile(const TString fname_gain,Bool_t kBoard)
    9951043{
     1044
     1045if(DEBUG)
     1046{
     1047    cout << " START Analysis::ReadGainFile " << endl;
     1048    cout << " \t - fname_gain = " << fname_gain << endl;
     1049    cout << " \t - kBoard = " << kBoard << " 0:ASIC_C, 1:ASIC_D " << endl;
     1050       
     1051}
     1052
     1053
     1054
    9961055  TString input_gain(fname_gain);
    9971056  ifstream in_gain(input_gain.Data());
     
    10221081  in_gain.clear();
    10231082 
     1083if(DEBUG)
     1084{
     1085    cout << " END Analysis::ReadGainFile " << endl;
     1086       
     1087}
    10241088
    10251089}
     
    10461110                                    )
    10471111{
     1112
     1113
     1114if(DEBUG)
     1115{
     1116  cout << " START Analysis::ProcessSingleChannel ch=" << ch << endl;
     1117    cout << " \t - kDrawCh = " << kDrawCh << endl;
     1118    cout << " \t - fname = " << fname << endl;
     1119    cout << " \t - fname_ped = " << fname_ped <<endl;
     1120    cout << " \t - dac_half_spe_fix = " << dac_half_spe_fix << endl;
     1121
     1122    cout << " \t - fname_gain = " << fname_gain << endl;
     1123    cout << " \t - fit_min = " << fit_min << endl;
     1124    cout << " \t - fit_max = " << fit_max << endl;
     1125    cout << " \t - fit_min_scurve = " << fit_min_scurve << endl;
     1126    cout << " \t - fit_max_scurve = " << fit_max_scurve << endl;
     1127    cout << " \t - kBoard = " << kBoard << " 0:ASIC_C, 1:ASIC_D " << endl;
     1128    cout << " \t - kChRef = " << kChRef << " ASIC_C " << endl;
     1129    //    cout << " \t - checkAve = " << checkAve << " 0:use ref pix, 1:check average " << endl;L       
     1130}
     1131
     1132
     1133
    10481134    input[ch] += fname;
    10491135    input[ch] += "-ch";
     
    13981484      hist_scurve_ped[ch].Draw("lsame");
    13991485    }
     1486
     1487
     1488if(DEBUG)
     1489{
     1490    cout << " END Analysis::ProcessSingleChannel " << endl;     
     1491}
    14001492   
    14011493  }// end of process single  channels
    1402 
    14031494//---------------------------------------------------------------------------------------------------
    14041495
    14051496
    14061497//---------------------------------------------------------------------------------------------------
    1407 
     1498// Compute some averages
    14081499//---------------------------------------------------------------------------------------------------
    14091500void Analysis::ComputeDACAverage(Double_t dac_half_spe_fix ,Int_t    kChRef, Bool_t   checkAve )//0:use ref pix, 1:check average
    14101501{
     1502
     1503
     1504if(DEBUG)
     1505{
     1506  cout << " START Analysis::ComputeDACAverage " << endl;
     1507 
     1508    cout << " \t - dac_half_spe_fix = " << dac_half_spe_fix << endl;
     1509    cout << " \t - kChRef = " << kChRef << " ASIC_C " << endl;
     1510    cout << " \t - checkAve = " << checkAve << " 0:use ref pix, 1:check average " << endl;     
     1511}
    14111512
    14121513 // SDC 24/09/2013 :: In a compiled program, I have to declare the following variables outside the parenthesis
     
    14721573  ldac_ped_ave_copy->Draw("same");
    14731574
     1575if(DEBUG)
     1576{
     1577  cout << " END Analysis::ComputeDACAverage " << endl;
     1578 
     1579    cout << " \t - dac_half_spe_fix = " << dac_half_spe_fix << endl;
     1580    cout << " \t - kChRef = " << kChRef << " ASIC_C " << endl;
     1581    cout << " \t - checkAve = " << checkAve << " 0:use ref pix, 1:check average " << endl;     
     1582}
    14741583 
    14751584
     
    14811590void Analysis::OutputGain(const TString fname_out)
    14821591{
     1592
     1593if(DEBUG)
     1594{
     1595  cout << " START Analysis::OutputGain " << endl;
     1596  cout << " \t - fname_out = " << fname_out << endl;   
     1597}
    14831598
    14841599 ofstream out(fname_out.Data());
     
    15391654  out.close();
    15401655
    1541 }
     1656if(DEBUG)
     1657{
     1658  cout << " END Analysis::OutputGain " << endl;
     1659}
     1660
     1661
     1662}
     1663//-------------------------------------------------------------------------------------------------
     1664// Configure (x)emacs for this file ...
     1665// Local Variables:
     1666// mode: c++
     1667// compile-command: "(make;) "
     1668// End:
  • equalization_gain/trunk/src/PlotScurvesAll-diffFit.h

    r201 r202  
    162162#endif
    163163
     164//-------------------------------------------------------------------------------------------------
     165// Configure (x)emacs for this file ...
     166// Local Variables:
     167// mode: c++
     168// compile-command: "(make;) "
     169// End:
  • equalization_gain/trunk/src/PlotScurvesAll-diffFitConst.h

    r200 r202  
    3535*/
    3636
     37
     38const int DEBUG=1;
    3739
    3840/*** signal file ***/
     
    140142
    141143#endif
     144//-------------------------------------------------------------------------------------------------
     145// Configure (x)emacs for this file ...
     146// Local Variables:
     147// mode: c++
     148// compile-command: "(make;) "
     149// End:
  • equalization_gain/trunk/src/PlotScurvesAllMain.cc

    r201 r202  
    3030    theApp->Run();
    3131}
     32
     33//-------------------------------------------------------------------------------------------------
     34// Configure (x)emacs for this file ...
     35// Local Variables:
     36// mode: c++
     37// compile-command: "(make;) "
     38// End:
Note: See TracChangeset for help on using the changeset viewer.