Changeset 203 in JEM-EUSO
- Timestamp:
- Sep 27, 2013, 1:21:08 PM (11 years ago)
- Location:
- equalization_gain/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
equalization_gain/trunk/src/PlotScurvesAll-diffFit.cc
r202 r203 775 775 { 776 776 if(DEBUG) 777 cout << " START Analysis Constructor " << endl;777 cout << " >>>>>>> START Analysis Constructor " << endl; 778 778 779 779 /*********************** SIGNAL RUN ********************/ … … 791 791 792 792 if(DEBUG) 793 cout << " END Analysis Constructor " << endl;793 cout << " >>>>>>> END Analysis Constructor " << endl; 794 794 } 795 795 //-------------------------------------------------------------------------------------------------------- … … 803 803 804 804 if(DEBUG) 805 cout << " START Analysis Destructor " << endl;805 cout << " >>>>>>> START Analysis Destructor " << endl; 806 806 807 807 if(input!=0) delete input; … … 809 809 810 810 if(DEBUG) 811 cout << " END Analysis Destructor " << endl;811 cout << " >>>>>>> END Analysis Destructor " << endl; 812 812 813 813 } … … 855 855 if(DEBUG) 856 856 { 857 cout << " START Analysis::PlotScurve " << endl;857 cout << " >>>>>>> START Analysis::PlotScurve " << endl; 858 858 cout << " \t - kDrawCh = " << kDrawCh << endl; 859 859 cout << " \t - fname = " << fname << endl; … … 901 901 902 902 if(DEBUG) 903 cout << " END Analysis::PlotSCurve " << endl;903 cout << " >>>>>>> END Analysis::PlotSCurve " << endl; 904 904 905 905 } … … 914 914 915 915 if(DEBUG) 916 cout << " START Analysis::Init " << endl;917 918 919 916 cout << " >>>>>>> START Analysis::Init " << endl; 917 918 //if(input!=0) delete input; 919 //if(input_ped!=0) delete input_ped; 920 920 921 921 // recreate the name … … 966 966 967 967 if(DEBUG) 968 cout << " END Analysis::Init " << endl;968 cout << " >>>>>>> END Analysis::Init " << endl; 969 969 970 970 … … 978 978 { 979 979 if(DEBUG) 980 cout << " START Analysis::OpenGainFile " << endl;980 cout << " >>>>>>> START Analysis::OpenGainFile " << endl; 981 981 982 982 … … 992 992 993 993 if(DEBUG) 994 cout << " END Analysis::OpenGainFile " << endl;994 cout << " >>>>>>> END Analysis::OpenGainFile " << endl; 995 995 996 996 … … 1005 1005 1006 1006 if(DEBUG) 1007 cout << " START Analysis::FillHistoName " << endl;1007 cout << " >>>>>>> START Analysis::FillHistoName " << endl; 1008 1008 1009 1009 … … 1026 1026 1027 1027 if(DEBUG) 1028 cout << " END Analysis::FillHistoName " << endl;1028 cout << " >>>>>>> END Analysis::FillHistoName " << endl; 1029 1029 1030 1030 … … 1045 1045 if(DEBUG) 1046 1046 { 1047 cout << " START Analysis::ReadGainFile " << endl;1047 cout << " >>>>>>> START Analysis::ReadGainFile " << endl; 1048 1048 cout << " \t - fname_gain = " << fname_gain << endl; 1049 1049 cout << " \t - kBoard = " << kBoard << " 0:ASIC_C, 1:ASIC_D " << endl; … … 1083 1083 if(DEBUG) 1084 1084 { 1085 cout << " END Analysis::ReadGainFile " << endl;1085 cout << " >>>>>>> END Analysis::ReadGainFile " << endl; 1086 1086 1087 1087 } … … 1114 1114 if(DEBUG) 1115 1115 { 1116 cout << " START Analysis::ProcessSingleChannel ch=" << ch << endl;1116 cout << " >>>>>>> START Analysis::ProcessSingleChannel ch=" << ch << endl; 1117 1117 cout << " \t - kDrawCh = " << kDrawCh << endl; 1118 1118 cout << " \t - fname = " << fname << endl; … … 1488 1488 if(DEBUG) 1489 1489 { 1490 cout << " END Analysis::ProcessSingleChannel " << endl;1490 cout << " >>>>>>> END Analysis::ProcessSingleChannel " << endl; 1491 1491 } 1492 1492 … … 1504 1504 if(DEBUG) 1505 1505 { 1506 cout << " START Analysis::ComputeDACAverage " << endl;1506 cout << " >>>>>>> START Analysis::ComputeDACAverage " << endl; 1507 1507 1508 1508 cout << " \t - dac_half_spe_fix = " << dac_half_spe_fix << endl; … … 1575 1575 if(DEBUG) 1576 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; 1577 cout << " >>>>>>> END Analysis::ComputeDACAverage " << endl; 1582 1578 } 1583 1579 … … 1593 1589 if(DEBUG) 1594 1590 { 1595 cout << " START Analysis::OutputGain " << endl;1591 cout << " >>>>>>> START Analysis::OutputGain " << endl; 1596 1592 cout << " \t - fname_out = " << fname_out << endl; 1597 1593 } … … 1656 1652 if(DEBUG) 1657 1653 { 1658 cout << " END Analysis::OutputGain " << endl; 1659 } 1660 1661 1662 } 1654 cout << " >>>>>>> END Analysis::OutputGain " << endl; 1655 } 1656 1657 1658 } 1659 //-------------------------------------------------------------------------------------------------------- 1660 1661 1662 1663 1664 1665 1666 1667 //-------------------------------------------------------------------------------------------------------- 1668 //-------------------------------------------------------------------------------------------------------- 1669 void Analysis::Help() 1670 { 1671 1672 cout << "This is the Help of the PlotScurveAll-diffFit" <<endl; 1673 cout << " Version 2.0 from September 27 2013 " <<endl; 1674 cout << " Main author Hiroko Miyamoto " << endl; 1675 cout << " Adapted for modularity and compilable program by Sylvie Dagoret " << endl; 1676 cout << " ==> Please from shell execute directly the compiled program : " <<endl; 1677 cout << " ==> ../../src/PlotScurvesAllMain " << endl; 1678 1679 } 1680 //-------------------------------------------------------------------------------------------------------- 1681 1682 //-------------------------------------------------------------------------------------------------------- 1683 //-------------------------------------------------------------------------------------------------------- 1684 void Analysis::Menu() 1685 { 1686 cout << "This is the Detailed menu information for running the PlotScurveAll-diffFit" <<endl; 1687 1688 cout << " void PlotScurve( " << endl; 1689 cout << " \t " << " Int_t kDrawCh=31, " << endl; 1690 cout << " \t " << " TString fname=kFname, " << endl; 1691 cout << " \t " << " TString fname_ped=kFnamePed, //ASIC_D ped_file " << endl; 1692 cout << " \t " << " Double_t dac_half_spe_fix = -1," << endl; 1693 cout << " \t " << " TString fname_gain=\"gain-org.txt\"," << endl; 1694 cout << " \t " << " Int_t fit_min=kFitMin," << endl; 1695 cout << " \t " << " Int_t fit_max=kFitMax," << endl; 1696 cout << " \t " << " Int_t fit_min_scurve=kFitMinS," << endl; 1697 cout << " \t " << " Int_t fit_max_scurve=kFitMaxS," << endl; 1698 cout << " \t " << " Bool_t kBoard=1, //0:ASIC_C, 1:ASIC_D " << endl; 1699 cout << " \t " << " Int_t kChRef=kRefCh,//ASIC_C " << endl; 1700 cout << " \t " << " Bool_t checkAve=0 //0:use ref pix, 1:check average " << endl; 1701 cout << " ) " << endl; 1702 cout << "Set the parameters on the top of the program depending on your analysis: " << endl; 1703 cout << "General policy: parameters starting with a \"k\" at the beginning is fixed gloval parameter and usually set in the header file, never change through the program. " << endl; 1704 cout << " : " << endl; 1705 cout << " - kDrawCh: channel just you want to check on display. doens't effect the analysis. " << endl; 1706 1707 cout << " - fname, fname_ped (kFname, kFnamePed): \"YOUR DATA FILE\" without .data" << endl; 1708 cout << " See examples in the header file. " << endl; 1709 cout << " - dac_half_spe_fix: set DAC value only when you want to adjust the gain to particular pulse height (DAC value) instead of either average of the pulse height of reference pixel. Usually just leave it -1. " << endl; 1710 cout << " - fit_min, fit_max (kFitMin, kFitMax): leave them as default, it is not currently used for the analysis." << endl; 1711 cout << " - fit_min_scurve, fit_max_scurve (kFitMinS, kFitMaxS): define the range of s-curve fitting. search proper values by yourself with running root program a few times." << endl; 1712 cout << " - kBoard: don't forget to change 0(C) or 1(D) depending on which ASIC you're analysing " << endl; 1713 cout << " - kChRef (kRefCh): a pixel whose gain remains 64 thorough the gain adjustment. " << endl; 1714 cout << " - checkAve: for the first run, set this parameter 1, and find a pixel which remains 64. In the case of parameter 1, all the gains are adjusted to the average pulse height. " << endl; 1715 cout << " Once you choose the reference pixel, set the parameter 0, as well as set kRefCh the pixel number. (better to keep in the header file for the record of each PMTs.) " << endl; 1716 1717 cout << " Actual configuration " << endl; 1718 cout << " \t " << "TString kFname = " << kFname << endl; 1719 cout << " \t " << "TString kFnamePed = " << kFnamePed << endl; 1720 cout << " \t " << "Int_t kFitMin = " << kFitMin << endl; 1721 cout << " \t " << "Int_t kFitMax = " << kFitMax << endl; 1722 1723 } 1724 1663 1725 //------------------------------------------------------------------------------------------------- 1664 1726 // Configure (x)emacs for this file ... -
equalization_gain/trunk/src/PlotScurvesAll-diffFit.h
r202 r203 47 47 // Main analysis function to be called from outside 48 48 49 void PlotScurve( 49 void Menu(); 50 void Help(); 51 void PlotScurve( 50 52 Int_t kDrawCh=31, 51 53 TString fname=kFname, -
equalization_gain/trunk/src/PlotScurvesAllMain.cc
r202 r203 20 20 TRint *theApp=new TRint("ROOT-PlotScurvesAll",&argc,argv); 21 21 22 //Help();23 22 24 PlotScurve(); 23 // SDC (27/09/2013) :: Old fashion of calling the function directly 24 //PlotScurve(); 25 25 26 // to debug 27 //Analysis* pa = new Analysis; 28 //pa->PlotScurve(); 26 // SDC (27/09/2013) :: class analysis working now 27 Analysis* ana = new Analysis; 28 29 ana->Help(); 30 ana->Menu(); 31 ana->PlotScurve(); 29 32 30 33 theApp->Run();
Note: See TracChangeset
for help on using the changeset viewer.