Changeset 8802
- Timestamp:
- 01/09/08 11:45:59 (17 years ago)
- Location:
- trunk/MagicSoft
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r8570 r8802 1 1 -*-*- END -*-*- 2 3 2008/01/09 Thomas Bretz 4 5 * tpoint/gui.C: 6 - some small improvements 7 8 2 9 3 10 2007/06/06 Thomas Bretz -
trunk/MagicSoft/Cosy/tpoint/gui.C
r8766 r8802 485 485 gmaz.SetMarkerStyle(kFullDotMedium);; 486 486 gmzd.SetMarkerStyle(kFullDotMedium); 487 487 488 488 TMinuit minuit(MPointing::GetNumPar()); //initialize TMinuit with a maximum of 5 params 489 489 minuit.SetObjectFit(this); 490 490 minuit.SetPrintLevel(-1); 491 491 minuit.SetFCN(fcn); 492 492 493 493 fBending.SetMinuitParameters(minuit, MPointing::GetNumPar()); // Init Parameters [deg] 494 494 495 495 for (int i=0; i<MPointing::GetNumPar(); i++) 496 496 { … … 500 500 minuit.Release(i); 501 501 } 502 502 503 503 //minuit.Command("SHOW PARAMETERS"); 504 504 //minuit.Command("SHOW LIMITS"); 505 505 506 506 cout << endl; 507 507 cout << "Starting fit..." << endl; … … 509 509 cout << "0.02deg (=1SE) is assumed." << endl; 510 510 cout << endl; 511 511 512 512 Int_t ierflg = 0; 513 513 ierflg = minuit.Migrad(); … … 516 516 ierflg = minuit.Migrad(); 517 517 cout << "Migrad returns " << ierflg << endl << endl; 518 518 519 519 // 520 520 // Get Fit Results … … 524 524 cout << endl; 525 525 //fBending.Save("bending_magic.txt"); 526 527 526 527 528 528 // 529 529 // Make a copy of all list entries … … 533 533 for (int i=0; i<fCoordinates.GetSize(); i++) 534 534 list.Add(new Set(*(Set*)fCoordinates.At(i))); 535 535 536 536 // 537 537 // Correct for Offsets only … … 541 541 for (int i=2; i<MPointing::GetNumPar(); i++) 542 542 par[i]=0; 543 543 544 544 MPointing b2; 545 545 b2.SetParameters(par); … … 989 989 } 990 990 991 voidLoadCollection(TString fname)991 Bool_t LoadCollection(TString fname) 992 992 { 993 993 ifstream fin(fname); … … 995 995 { 996 996 cout << "Collection '" << fname << "' not found!" << endl; 997 return ;997 return kFALSE; 998 998 } 999 999 … … 1013 1013 if (!line.EndsWith(".txt")) 1014 1014 { 1015 cout << "WARNING : " << line << endl;1015 cout << "WARNING - Wring extension: " << line << endl; 1016 1016 continue; 1017 1017 } 1018 1018 1019 LoadStars(line); 1020 } 1021 } 1022 1023 1024 void LoadStars(TString fname="tpoint.txt") 1025 { 1026 if (fname.EndsWith(".col")) 1027 { 1028 LoadCollection(fname); 1029 fFileNameStars = fname; 1030 return; 1031 } 1032 1019 if (!LoadStarFile(line)) 1020 return kFALSE; 1021 } 1022 return kTRUE; 1023 } 1024 1025 Bool_t LoadStarFile(TString fname) 1026 { 1033 1027 const Int_t size = fOriginal.GetSize(); 1034 1028 … … 1041 1035 { 1042 1036 cout << "File '" << fname << "' not found!" << endl; 1043 return ;1037 return kFALSE; 1044 1038 } 1045 1039 … … 1059 1053 cout << " (Total=" << fOriginal.GetSize() << ")" << endl; 1060 1054 1055 return kTRUE; 1056 } 1057 1058 Bool_t LoadStars(TString fname="tpoint.txt") 1059 { 1060 const Bool_t iscol = fname.EndsWith(".col"); 1061 1062 const Bool_t rc = iscol ? LoadCollection(fname) : LoadStarFile(fname); 1063 if (!rc) 1064 return kFALSE; 1065 1061 1066 fFileNameStars = fname; 1067 SetWindowName(fname); 1068 1069 return kTRUE; 1062 1070 } 1063 1071 -
trunk/MagicSoft/Mars/Changelog
r8801 r8802 23 23 * mbadpixels/MBadPixelsTreat.[h,cc]: 24 24 - removed obsolete fRawHeader 25 26 * mpointing/MSrcPosCam.[h,cc]: 27 - added Paint member function -
trunk/MagicSoft/Mars/mpointing/MSrcPosCam.h
r8657 r8802 33 33 TVector2 GetXY() const; 34 34 35 void Paint(Option_t *opt); 35 36 void Print(Option_t *opt=NULL) const; 36 37 -
trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.cc
r7690 r8802 68 68 return kFALSE; 69 69 70 fSrcPosAnti = (MSrcPosCam*)plist->FindCreateObj("MSrcPosCam", "MSrcPosAnti"); 71 if (!fSrcPosAnti) 72 return kFALSE; 73 70 74 if (fDistOfSource<0) 71 75 { … … 104 108 105 109 fSrcPos->SetXY(x/fConvMm2Deg, y/fConvMm2Deg); 110 if (fDistOfSource>=0) 111 fSrcPosAnti->SetXY(-x/fConvMm2Deg, -y/fConvMm2Deg); 106 112 return kTRUE; 107 113 } -
trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h
r7690 r8802 12 12 { 13 13 private: 14 MSrcPosCam *fSrcPos; //! 15 MHSrcPosCam *fHist; //! 14 MSrcPosCam *fSrcPos; //! 15 MSrcPosCam *fSrcPosAnti; //! 16 MHSrcPosCam *fHist; //! 16 17 17 18 Double_t fConvMm2Deg; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r8744 r8802 85 85 // ----------------- 86 86 // - added fNumEventsRead; 87 // * renamed fFreqSampling to fSamplingFrequency 88 // * renamed fNumSignificantBits to fFadcResolution 87 89 // 88 90 // Format Version 6: … … 487 489 fNumBytesPerSample = 1; // 2 for MUX DATA 488 490 fSamplingFrequency = 300; 489 fFadcResolution = 8; 491 fFadcResolution = 8; 492 490 493 if (fFormatVersion>7) 491 494 { 492 495 fin.read((char*)&fNumBytesPerSample, 2); 493 496 fin.read((char*)&fSamplingFrequency, 2); // [MHz], 2000 for MuxFadc 494 fin.read((char*)&fFadcResolution, 1); // nominal resolution [# Bits], 10 for MuxFadc497 fin.read((char*)&fFadcResolution, 1); // nominal resolution [# Bits], 10 for MuxFadc 495 498 496 499 if (fNumBytesPerSample!=2)
Note:
See TracChangeset
for help on using the changeset viewer.