Changeset 4433 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 07/30/04 12:19:16 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MStarLocalPos.cc
r4294 r4433 11 11 ! * provided that the above copyright notice appear in all copies and 12 12 ! * that both that copyright notice and this permission notice appear 13 ! * in supporting documentation. It is provided "as is" without express 13 ! * in supporting documentation. It is provided "as is" without expressed 14 14 ! * or implied warranty. 15 15 ! * … … 17 17 ! 18 18 ! Author(s): Javier López , 4/2004 <mailto:jlopez@ifae.es> 19 ! Author(s): Robert Wagner, 7/2004 <mailto:rwagner@mppmu.mpg.de> 19 20 ! 20 21 ! Copyright: MAGIC Software Development, 2000-2004 … … 25 26 26 27 #include <TEllipse.h> 28 #include <TMarker.h> 27 29 28 30 #include "MLog.h" … … 101 103 } 102 104 105 void MStarLocalPos::SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chiSquare, Int_t ndof, Float_t xx, Float_t xy, Float_t yy) 106 { 107 SetFitValues(mag, max, x, y, sigmaMinorAxis, sigmaMajorAxis, chiSquare, ndof); 108 fXXErr = xx; 109 fYYErr = yy; 110 fXYErr = xy; 111 } 112 113 103 114 // -------------------------------------------------------------------------- 104 115 // … … 108 119 { 109 120 //Print a cross in the expected position 121 122 TMarker mexp(fXExp, fYExp, 29); 123 mexp.SetMarkerSize(3); 124 mexp.SetMarkerColor(94); 125 mexp.Paint(); 110 126 111 127 if (fSigmaMinorAxisCalc>0. && fSigmaMajorAxisCalc>0.) 112 128 { 113 129 TEllipse ecalc(fMeanXCalc, fMeanYCalc, fSigmaMinorAxisCalc, fSigmaMajorAxisCalc, 0, 360, 0); 114 ecalc.SetLineWidth( 2);130 ecalc.SetLineWidth(3); 115 131 ecalc.SetLineColor(kRed); 116 132 ecalc.Paint(); … … 120 136 { 121 137 TEllipse efit(fMeanXFit, fMeanYFit, fSigmaMinorAxisFit, fSigmaMajorAxisFit, 0, 360, 0); 122 efit.SetLineWidth( 2);138 efit.SetLineWidth(3); 123 139 efit.SetLineColor(kBlack); 124 140 efit.Paint(); … … 129 145 { 130 146 TString o = opt; 147 148 if (o.Contains("name", TString::kIgnoreCase) || opt == NULL) 149 { 150 *fLog << inf << "Star Name: \"" << this->GetName() << "\"" << endl; 151 } 152 131 153 132 154 if (o.Contains("mag", TString::kIgnoreCase) || opt == NULL) 133 155 { 156 134 157 *fLog << inf << "Star maginitude:" << endl; 135 158 *fLog << inf << " Expected \t" << setw(4) << fMagExp << endl; … … 165 188 *fLog << inf << " ChiSquare/Ndof \t " << setw(3) << fChiSquare << "/" << fNdof << endl; 166 189 } 190 191 if (o.Contains("err", TString::kIgnoreCase) || opt == NULL) 192 { 193 *fLog << inf << "Minuit Error Matrix:" << endl; 194 *fLog << inf << " xx,xy,yy \t " << setw(3) << fXXErr << ", " << fXYErr << ", " << fYYErr << endl; 195 } 196 197 167 198 } -
trunk/MagicSoft/Mars/mtemp/MStarLocalPos.h
r4294 r4433 34 34 Float_t fSigmaMajorAxisFit; //[mm] 35 35 Float_t fChiSquare; 36 Float_t fXXErr; //minuit error matrix elements 37 Float_t fXYErr; 38 Float_t fYYErr; 36 39 Int_t fNdof; 37 40 … … 66 69 Float_t GetSigmaMinorAxis() {return fSigmaMinorAxisFit!=0?fSigmaMinorAxisFit:fSigmaMinorAxisCalc;} 67 70 Float_t GetSigmaMajorAxis() {return fSigmaMajorAxisFit!=0?fSigmaMajorAxisFit:fSigmaMajorAxisCalc;} 71 72 Float_t GetXXErr() {return fXXErr;} 73 Float_t GetXYErr() {return fXYErr;} 74 Float_t GetYYErr() {return fYYErr;} 68 75 69 76 void Reset(); … … 72 79 void SetCalcValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis); 73 80 void SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chi, Int_t ndof); 81 void SetFitValues(Float_t mag, Float_t max, Float_t x, Float_t y, Float_t sigmaMinorAxis, Float_t sigmaMajorAxis, Float_t chi, Int_t ndof, Float_t xx, Float_t xy, Float_t yy); 74 82 75 83 void Paint(Option_t *opt=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.