- Timestamp:
- 11/24/03 01:34:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2565 r2566 23 23 - changed bit 14/15 to 15/16. BIT(14) is used in TGMainFrame 24 24 already 25 - fixed a typo. Must be kTabPrint instead of kFilePrint 25 26 26 27 * mfilter/MFRealTimePeriod.h: … … 35 36 autoscale is done 36 37 - added 'content' Draw option 38 - when kNoLegend is set draw the legend showing the size 37 39 38 40 * mhist/MHEvent.cc: … … 63 65 - added MEventRateCalc 64 66 - added MEventRate 67 68 * mgeom/MGeomMirror.h: 69 - fixed comments in the header - must be in one line! 70 71 * mreport/MReport.h: 72 - adde Getter-function for fState 73 74 * mreport/MReportDrive.[h,cc]: 75 - added GetAbsError() (preliminary!) 65 76 66 77 -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r2563 r2566 214 214 tabmenu->AddEntry("Re&move", kTabRemove); 215 215 tabmenu->AddSeparator(); 216 tabmenu->AddEntry("Print with &lpr", k FilePrint);216 tabmenu->AddEntry("Print with &lpr", kTabPrint); 217 217 tabmenu->Associate(this); 218 218 … … 971 971 gSystem->Unlink(name); 972 972 973 SetStatusLine2(Form("Done (%dpage s)", pages));973 SetStatusLine2(Form("Done (%dpage(s))", pages)); 974 974 975 975 return pages; -
trunk/MagicSoft/Mars/mgeom/MGeomMirror.h
r1698 r2566 15 15 Int_t fMirrorId; // the Mirror Id 16 16 17 Float_t fFocalDist; // focal distance of that mirror [cm] 18 Float_t fSX; // curvilinear coordinate of mirror's center in X[cm] 19 Float_t fSY; // curvilinear coordinate of mirror's center in X[cm] 20 Float_t fX; // x coordinate of the center of the mirror [cm] 21 Float_t fY; // y coordinate of the center of the mirror [cm] 22 Float_t fZ; // z coordinate of the center of the mirror [cm] 23 Float_t fThetaN; // polar theta angle of the direction 24 // where the mirror points to 25 Float_t fPhiN; // polar phi angle of the direction 26 // where the mirror points to 27 Float_t fXN; // xn coordinate of the normal vector 28 // in the center 29 Float_t fYN; // yn coordinate of the normal vector 30 // in the center 31 Float_t fZN; // zn coordinate of the normal vector 32 // in the center 17 Float_t fFocalDist; // [cm] focal distance of that mirror 18 Float_t fSX; // [cm] curvilinear coordinate of mirror's center in X 19 Float_t fSY; // [cm] curvilinear coordinate of mirror's center in Y 20 Float_t fX; // [cm] x coordinate of the center of the mirror 21 Float_t fY; // [cm] y coordinate of the center of the mirror 22 Float_t fZ; // [cm] z coordinate of the center of the mirror 23 Float_t fThetaN; // polar theta angle of the direction where the mirror points to 24 Float_t fPhiN; // polar phi angle of the direction where the mirror points to 25 Float_t fXN; // xn coordinate of the normal vector in the center 26 Float_t fYN; // yn coordinate of the normal vector in the center 27 Float_t fZN; // zn coordinate of the normal vector in the center 33 28 // Note: fXN^2*fYN^2*fZN^2 = 1 34 Float_t fDeviationX; // deviation in x [cm]35 Float_t fDeviationY; // deviation in y [cm]36 // of the spot of a single mirror on the camera plane 29 Float_t fDeviationX; // [cm] deviation in x of the spot of a single mirror on the camera plane 30 Float_t fDeviationY; // [cm] deviation in y of the spot of a single mirror on the camera plane 31 37 32 TArrayF fWavelength; // List of wavelength 38 33 TArrayF fReflectivity;// Mirror reflectivity -
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r2563 r2566 465 465 max += 1; 466 466 467 if (!TestBit(kNoLegend)) 468 UpdateLegend(min, max, islog); 467 UpdateLegend(min, max, islog); 469 468 470 469 MHexagon hex; … … 670 669 } 671 670 671 // FIXME: Should depend on the color of the pixel... 672 //(GetColor(GetBinContent(i+1), min, max, 0)); 673 txt.SetTextColor(kRed); 672 674 txt.SetTextSize(0.3*h.GetD()/fGeomCam->GetMaxRadius()/1.05); 673 675 txt.PaintText(h.GetX(), h.GetY(), num); … … 926 928 void MHCamera::UpdateLegend(Float_t min, Float_t max, Bool_t islog) 927 929 { 930 const Float_t range = fGeomCam->GetMaxRadius()*1.05; 931 932 TArrow arr; 933 arr.PaintArrow(-range*.9, -range*.9, -range*.6, -range*.9, 0.025); 934 arr.PaintArrow(-range*.9, -range*.9, -range*.9, -range*.6, 0.025); 935 936 TString text; 937 text += (int)(range*.3); 938 text += "mm"; 939 940 TText newtxt2; 941 newtxt2.SetTextSize(0.04); 942 newtxt2.PaintText(-range*.85, -range*.85, text); 943 944 text = ""; 945 text += (float)((int)(range*.3*fGeomCam->GetConvMm2Deg()*10))/10; 946 text += "\\circ"; 947 text = text.Strip(TString::kLeading); 948 949 TLatex latex; 950 latex.PaintLatex(-range*.85, -range*.75, 0, 0.04, text); 951 952 if (TestBit(kNoLegend)) 953 return; 954 928 955 TPaveStats *stats = GetStatisticBox(); 929 956 930 957 const Float_t hndc = 0.92 - (stats ? stats->GetY1NDC() : 1); 931 const Float_t range = fGeomCam->GetMaxRadius()*1.05;932 958 const Float_t H = (0.75-hndc)*range; 933 959 const Float_t offset = hndc*range; … … 966 992 newbox.PaintBox(range, H*(i*h-1)-offset, range+w, H*((i+1)*h-1)-offset); 967 993 } 968 969 TArrow arr;970 arr.PaintArrow(-range*.9, -range*.9, -range*.6, -range*.9, 0.025);971 arr.PaintArrow(-range*.9, -range*.9, -range*.9, -range*.6, 0.025);972 973 TString text;974 text += (int)(range*.3);975 text += "mm";976 977 TText newtxt2;978 newtxt2.SetTextSize(0.04);979 newtxt2.PaintText(-range*.85, -range*.85, text);980 981 text = "";982 text += (float)((int)(range*.3*fGeomCam->GetConvMm2Deg()*10))/10;983 text += "\\circ";984 text = text.Strip(TString::kLeading);985 986 TLatex latex;987 latex.PaintLatex(-range*.85, -range*.75, 0, 0.04, text);988 994 } 989 995 -
trunk/MagicSoft/Mars/mreport/MReport.h
r2557 r2566 41 41 const TString &GetIdentifier() const { return fIdentifier; } 42 42 43 Byte_t GetState() const { return fState; } 44 43 45 ClassDef(MReport, 1) // Base class for control reports 44 46 }; -
trunk/MagicSoft/Mars/mreport/MReportDrive.cc
r2557 r2566 71 71 return str.IsNull(); 72 72 } 73 74 Double_t MReportDrive::GetAbsError() const 75 { 76 const Double_t pzd = fNominalZd*TMath::DegToRad(); 77 const Double_t azd = fErrorZd *TMath::DegToRad(); 78 const Double_t aaz = fErrorAz *TMath::DegToRad(); 79 80 const double el = TMath::Pi()/2-pzd; 81 82 const double dphi2 = aaz/2.; 83 const double cos2 = cos(dphi2)*cos(dphi2); 84 const double sin2 = sin(dphi2)*sin(dphi2); 85 const double d = cos(azd)*cos2 - cos(2*el)*sin2; 86 87 // 88 // Original: 89 // cos(Zd1)*cos(Zd2)+sin(Zd1)*sin(Zd2)*cos(dAz) 90 // 91 // Correct: 92 // const double d = cos(azd)*cos2 - cos(el1+el2)*sin2; 93 // 94 // Estimated: 95 // const double d = cos(azd)*cos2 - cos(2*el)*sin2; 96 // 97 98 return acos(d)*TMath::RadToDeg(); 99 } -
trunk/MagicSoft/Mars/mreport/MReportDrive.h
r2557 r2566 28 28 Bool_t InterpreteBody(TString &str); 29 29 30 Double_t GetMjd() const 30 Double_t GetMjd() const { return fMjd; } 31 31 32 Double_t GetRa() const 33 Double_t GetDec() const 34 Double_t GetHa() const 32 Double_t GetRa() const { return fRa; } 33 Double_t GetDec() const { return fDec; } 34 Double_t GetHa() const { return fHa; } 35 35 36 37 Double_t GetNominalAz() const 38 Double_t GetCurrentZd() const 39 Double_t GetCurrentAz() const 36 Double_t GetNominalZd() const { return fNominalZd; } 37 Double_t GetNominalAz() const { return fNominalAz; } 38 Double_t GetCurrentZd() const { return fCurrentZd; } 39 Double_t GetCurrentAz() const { return fCurrentAz; } 40 40 41 Double_t GetErrorZd() const { return fErrorZd; } 42 Double_t GetErrorAz() const { return fErrorAz; } 41 Double_t GetErrorZd() const { return fErrorZd; } 42 Double_t GetErrorAz() const { return fErrorAz; } 43 44 Double_t GetAbsError() const; 43 45 44 46 ClassDef(MReportDrive, 1) // Base class for control reports
Note:
See TracChangeset
for help on using the changeset viewer.