Changeset 202 in JEM-EUSO
- Timestamp:
- Sep 27, 2013, 1:02:12 PM (11 years ago)
- Location:
- equalization_gain/trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
equalization_gain/trunk/src/PlotScurvesAll-diffFit.cc
r201 r202 774 774 Analysis::Analysis():ch(0),dac_half_sum(0),dac_spe_sum(0),dac_sfit_sum(0),diff_sum(0),mean_sum(0),maxBinSum(0) 775 775 { 776 777 cout << " analysis initialisation" << endl;776 if(DEBUG) 777 cout << " START Analysis Constructor " << endl; 778 778 779 779 /*********************** SIGNAL RUN ********************/ … … 790 790 maxBinSum = 0; 791 791 792 792 if(DEBUG) 793 cout << " END Analysis Constructor " << endl; 793 794 } 794 795 //-------------------------------------------------------------------------------------------------------- … … 801 802 { 802 803 804 if(DEBUG) 805 cout << " START Analysis Destructor " << endl; 806 803 807 if(input!=0) delete input; 804 808 if(input_ped!=0) delete input_ped; 805 809 810 if(DEBUG) 811 cout << " END Analysis Destructor " << endl; 806 812 807 813 } … … 847 853 { 848 854 855 if(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 } 849 872 // reset all variables 850 873 Init(); … … 877 900 OutputGain(kFnameOut); 878 901 879 902 if(DEBUG) 903 cout << " END Analysis::PlotSCurve " << endl; 880 904 881 905 } … … 888 912 void Analysis::Init() 889 913 { 914 915 if(DEBUG) 916 cout << " START Analysis::Init " << endl; 890 917 891 918 if(input!=0) delete input; … … 938 965 } 939 966 967 if(DEBUG) 968 cout << " END Analysis::Init " << endl; 940 969 941 970 … … 948 977 void Analysis::OpenGainFile(const TString fname_gain) 949 978 { 979 if(DEBUG) 980 cout << " START Analysis::OpenGainFile " << endl; 981 982 983 950 984 TString input_gain(fname_gain); 951 985 ifstream in_gain(input_gain.Data()); … … 957 991 in_gain.clear(); 958 992 993 if(DEBUG) 994 cout << " END Analysis::OpenGainFile " << endl; 995 996 959 997 } 960 998 //-------------------------------------------------------------------------------------------------------- … … 965 1003 void Analysis::FillHistoName() 966 1004 { 1005 1006 if(DEBUG) 1007 cout << " START Analysis::FillHistoName " << endl; 1008 1009 967 1010 968 1011 // first loop on channels to fill histonames … … 982 1025 } 983 1026 1027 if(DEBUG) 1028 cout << " END Analysis::FillHistoName " << endl; 1029 1030 1031 984 1032 } 985 1033 //-------------------------------------------------------------------------------------------------------- … … 994 1042 void Analysis::ReadGainFile(const TString fname_gain,Bool_t kBoard) 995 1043 { 1044 1045 if(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 996 1055 TString input_gain(fname_gain); 997 1056 ifstream in_gain(input_gain.Data()); … … 1022 1081 in_gain.clear(); 1023 1082 1083 if(DEBUG) 1084 { 1085 cout << " END Analysis::ReadGainFile " << endl; 1086 1087 } 1024 1088 1025 1089 } … … 1046 1110 ) 1047 1111 { 1112 1113 1114 if(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 1048 1134 input[ch] += fname; 1049 1135 input[ch] += "-ch"; … … 1398 1484 hist_scurve_ped[ch].Draw("lsame"); 1399 1485 } 1486 1487 1488 if(DEBUG) 1489 { 1490 cout << " END Analysis::ProcessSingleChannel " << endl; 1491 } 1400 1492 1401 1493 }// end of process single channels 1402 1403 1494 //--------------------------------------------------------------------------------------------------- 1404 1495 1405 1496 1406 1497 //--------------------------------------------------------------------------------------------------- 1407 1498 // Compute some averages 1408 1499 //--------------------------------------------------------------------------------------------------- 1409 1500 void Analysis::ComputeDACAverage(Double_t dac_half_spe_fix ,Int_t kChRef, Bool_t checkAve )//0:use ref pix, 1:check average 1410 1501 { 1502 1503 1504 if(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 } 1411 1512 1412 1513 // SDC 24/09/2013 :: In a compiled program, I have to declare the following variables outside the parenthesis … … 1472 1573 ldac_ped_ave_copy->Draw("same"); 1473 1574 1575 if(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 } 1474 1583 1475 1584 … … 1481 1590 void Analysis::OutputGain(const TString fname_out) 1482 1591 { 1592 1593 if(DEBUG) 1594 { 1595 cout << " START Analysis::OutputGain " << endl; 1596 cout << " \t - fname_out = " << fname_out << endl; 1597 } 1483 1598 1484 1599 ofstream out(fname_out.Data()); … … 1539 1654 out.close(); 1540 1655 1541 } 1656 if(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 162 162 #endif 163 163 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 35 35 */ 36 36 37 38 const int DEBUG=1; 37 39 38 40 /*** signal file ***/ … … 140 142 141 143 #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 30 30 theApp->Run(); 31 31 } 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.