Changeset 4587 for trunk/MagicSoft
- Timestamp:
- 08/12/04 09:16:13 (20 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r4549 r4587 1 1 -*-*- END -*-*- 2 3 2004/08/12 - Thomas Bretz 4 5 * tpoint/gui.C: 6 - implemented TGFSFileDialog for reading the star data 7 8 2 9 3 10 2004/08/05 - Thomas Bretz -
trunk/MagicSoft/Cosy/tpoint/gui.C
r4357 r4587 10 10 #include <TGLabel.h> 11 11 #include <TGButton.h> 12 #include <TGFileDialog.h> 12 13 13 14 #include <TF1.h> … … 749 750 } 750 751 751 void LoadStars( )752 void LoadStars(TString fname="tpoint.txt") 752 753 { 753 754 const Int_t size = fOriginal.GetSize(); 754 755 755 ifstream fin( "tpoint.txt");756 ifstream fin(fname); 756 757 757 758 while (fin && fin.get()!='\n'); … … 760 761 if (!fin) 761 762 { 762 cout << "File ' tpoint.txt' not found!" << endl;763 cout << "File '" << fname << "' not found!" << endl; 763 764 return; 764 765 } … … 777 778 cout << "Found " << fOriginal.GetSize()-size << " sets of coordinates "; 778 779 cout << "(Total=" << fOriginal.GetSize() << ")" << endl; 780 } 781 782 // -------------------------------------------------------------------------- 783 // 784 // Opens an open dialog 785 // 786 TString OpenDialog() 787 { 788 static const char *gOpenTypes[] = 789 { 790 "TPoint files", "*.txt", 791 "All files", "*", 792 NULL, NULL 793 }; 794 795 static TString dir("."); 796 797 TGFileInfo fi; // fFileName and fIniDir deleted in ~TGFileInfo 798 799 fi.fFileTypes = (const char**)gOpenTypes; 800 fi.fIniDir = StrDup(dir); 801 802 new TGFileDialog(fClient->GetRoot(), this, kFDOpen, &fi); 803 804 if (!fi.fFilename) 805 return 0; 806 807 dir = fi.fIniDir; 808 809 return fi.fFilename; 779 810 } 780 811 … … 809 840 return kTRUE; 810 841 case kTbLoadStars: 811 LoadStars( );842 LoadStars(OpenDialog()); 812 843 DisplayData(); 813 844 return kTRUE; -
trunk/MagicSoft/Mars/Changelog
r4586 r4587 20 20 -*-*- END OF LINE -*-*- 21 21 22 2004/08/12: Hendrik Bartko 23 * msignal/MExtractor.[h,cc]: 24 - add SetNamePedContainer to set the name of the pedestal 25 container 26 27 * msignal/MExtractTime.[h,cc]: 28 - add SetNamePedContainer to set the name of the pedestal 29 container 30 31 * mbadpixels/MBadPixelsCalc.[h,cc] 32 - add SetNamePedPhotContainer to set the name of the pedphot 33 container 34 35 * mbadpixels/MBadPixelsTreat.[h,cc] 36 - add SetNamePedPhotContainer to set the name of the pedphot 37 container 38 39 * mimage/MImgCleanStd.[h,cc] 40 - add SetNamePedPhotContainer to set the name of the pedphot 41 container 22 2004/08/12: Thomas Bretz 23 24 * mreport/MReportFileReadCC.cc: 25 - fixed a bug in CheckFileHeader which caused a condition to 26 be wrongly evaluated 27 28 29 30 2004/08/12: Hendrik Bartko 31 32 * msignal/MExtractor.[h,cc]: 33 - add SetNamePedContainer to set the name of the pedestal 34 container 35 36 * msignal/MExtractTime.[h,cc]: 37 - add SetNamePedContainer to set the name of the pedestal 38 container 39 40 * mbadpixels/MBadPixelsCalc.[h,cc] 41 - add SetNamePedPhotContainer to set the name of the pedphot 42 container 43 44 * mbadpixels/MBadPixelsTreat.[h,cc] 45 - add SetNamePedPhotContainer to set the name of the pedphot 46 container 47 48 * mimage/MImgCleanStd.[h,cc] 49 - add SetNamePedPhotContainer to set the name of the pedphot 50 container 51 42 52 43 53 44 54 2004/08/12 : Wolfgang Wittek 45 55 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 * mhist/MHSigmaTheta.[h,cc]70 - replace MMcEvt by MPointingPos71 - replace 'MCerPhotPix cerpix' by 'MCerPhotPix &cerpix'72 - add plot "Sigmabar(Outer) versus Theta" 73 74 * macros/ONOFFAnalysis.C75 - Job A : got the padding working, work in progress 76 77 78 79 * mcalib/MCalibrateData.[h,cc]: 80 - add SetPedestalType to choose whether to calibrate the pedestal81 for each run or each event82 - add EnablePedestalType to enable to calibrate the pedestal for83 each run or each event84 - add DisablePedestalType to disable to calibrate the pedestal for85 each run or each event86 - add TestFlag test whether to do the run and / or event pedestal87 calculation88 - add SetNamePedADCRunContainer to change name of pedestal input89 container for run pedestals90 - add SetNamePedADCEventContainer to change name of pedestal input91 container for event pedestals92 - add SetNamePedPhotRunContainer to change name of pedestal output93 container for run pedestals94 - add SetNamePedPhotEventContainer to change name of pedestal output95 container for run pedestals96 - add CalibratePedestal, function to calibrate the chosen pedestal97 - added the calibration types kFlatCharge, kDummy as in MCalibrate98 56 * manalysis/MSourcPosFromStarPos.[h,cc] 57 - replace MMcEvt by MPointingPos 58 59 * manalysis/MSigmabarCalc.[h,cc] 60 - replace MMcEvt by MPointingPos 61 62 * manalysis/MSigmabar.[h,cc] 63 - in member function Calc() return fSigmabarInner, 64 not fSigmabar 65 - update comments 66 - sigmabar is the sqrt of the average (pedRMS^2/area) 67 68 * manalysis/MPad.[h,cc] 69 - replace MMcEvt by MPointingPos 70 - remove bugs 71 72 * mfilter/MFSelBasic.[h,cc] 73 - replace MMcEvt by MPointingPos 74 75 * mfilter/Makefile 76 - add -I../mpointing 77 78 * mhist/MHSigmaTheta.[h,cc] 79 - replace MMcEvt by MPointingPos 80 - replace 'MCerPhotPix cerpix' by 'MCerPhotPix &cerpix' 81 - add plot "Sigmabar(Outer) versus Theta" 82 83 * macros/ONOFFAnalysis.C 84 - Job A : got the padding working, work in progress 85 86 87 88 2004/08/11: Hendrik Bartko 89 90 * mcalib/MCalibrateData.[h,cc]: 91 - add SetPedestalType to choose whether to calibrate the pedestal 92 for each run or each event 93 - add EnablePedestalType to enable to calibrate the pedestal for 94 each run or each event 95 - add DisablePedestalType to disable to calibrate the pedestal for 96 each run or each event 97 - add TestFlag test whether to do the run and / or event pedestal 98 calculation 99 - add SetNamePedADCRunContainer to change name of pedestal input 100 container for run pedestals 101 - add SetNamePedADCEventContainer to change name of pedestal input 102 container for event pedestals 103 - add SetNamePedPhotRunContainer to change name of pedestal output 104 container for run pedestals 105 - add SetNamePedPhotEventContainer to change name of pedestal output 106 container for run pedestals 107 - add CalibratePedestal, function to calibrate the chosen pedestal 108 - added the calibration types kFlatCharge, kDummy as in MCalibrate 99 109 100 110 * mbadpixels/MBadPixelsCalc.cc: … … 105 115 106 116 107 117 2004/08/10: Thomas Bretz 108 118 109 119 * mreport/MReportFileReadCC.[h,cc]: … … 156 166 157 167 158 168 2004/08/10: Robert Wagner 159 169 160 170 * mreport/MReportCamera.[h,cc] … … 166 176 167 177 168 178 2004/08/10: Markus Gaug 169 179 170 180 * mcalib/MCalibrationTestCalc.[h,cc] … … 182 192 183 193 184 194 2004/08/10: Florian Goebel 185 195 186 196 * mpedestal/MPedCalcFromLoGain.[h,cc] … … 194 204 195 205 196 206 2004/08/10: Nadia Tonello 197 207 198 208 * mbadpixels/MBadPixelsTreat.[h,cc] -
trunk/MagicSoft/Mars/mreport/MReportFileReadCC.cc
r4575 r4587 91 91 92 92 // report file matching a single run 93 if ( str(TRegexp("^[CC Run [0-9]+ Control File]$")).IsNull())93 if (!str(TRegexp("^[CC Run [0-9]+ Control File]$")).IsNull()) 94 94 run = atoi(str(TRegexp(" [0-9]+")).Data()); 95 95
Note:
See TracChangeset
for help on using the changeset viewer.