Changeset 7134 for trunk/MagicSoft/Mars/mmuon
- Timestamp:
- 06/03/05 20:15:28 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mmuon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmuon/MMuonCalibPar.cc
r7009 r7134 52 52 { 53 53 fName = name ? name : "MMuonCalibPar"; 54 fTitle = title ? title : " Muon calibration parameters";54 fTitle = title ? title : "Parameters to calculate Muon calibration"; 55 55 56 56 Reset(); … … 76 76 *fLog << "Muon Parameters (" << GetName() << ")" << endl; 77 77 // *fLog << " - Arc Length [deg] = " << fArcLength << endl; 78 *fLog << " - Arc Phi 79 *fLog << " - Arc Width 80 *fLog << " - Chi Arc Phi 81 *fLog << " - Chi Arc Width 78 *fLog << " - Arc Phi [deg] = " << fArcPhi << endl; 79 *fLog << " - Arc Width [deg] = " << fArcWidth << endl; 80 *fLog << " - Chi Arc Phi [x2/ndf]= " << fChiArcPhi << endl; 81 *fLog << " - Chi Arc Width[x2/ndf]= " << fChiArcWidth << endl; 82 82 // *fLog << " - Est. I. P. [m] = " << fEstImpact << endl; 83 *fLog << " - Size of muon 84 *fLog << " - Peak Phi 83 *fLog << " - Size of muon [phe] = " << fMuonSize << endl; 84 *fLog << " - Peak Phi [deg] = " << fPeakPhi << endl; 85 85 } 86 86 -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.cc
r7009 r7134 54 54 55 55 #include <TMinuit.h> 56 #include <TEllipse.h> 56 57 57 58 #include "MLog.h" … … 77 78 { 78 79 fName = name ? name : "MMuonSearchPar"; 79 fTitle = title ? title : " Muon search parameters";80 fTitle = title ? title : "Parameters to find Muons"; 80 81 } 81 82 … … 261 262 *fLog << all; 262 263 *fLog << "Muon Parameters (" << GetName() << ")" << endl; 263 *fLog << " - Est. Radius [mm]= " << fRadius << endl;264 *fLog << " - Deviation [mm]= " << fDeviation << endl;265 *fLog << " - Center Pos. X [mm]= " << fCenterX << endl;266 *fLog << " - Center Pos. Y [mm]= " << fCenterY << endl;264 *fLog << " - Est. Radius [mm] = " << fRadius << endl; 265 *fLog << " - Deviation [mm] = " << fDeviation << endl; 266 *fLog << " - Center Pos. X [mm] = " << fCenterX << endl; 267 *fLog << " - Center Pos. Y [mm] = " << fCenterY << endl; 267 268 } 268 269 … … 271 272 *fLog << all; 272 273 *fLog << "Muon Parameters (" << GetName() << ")" << endl; 273 *fLog << " - Est. Radius [deg] = " << fRadius*geom.GetConvMm2Deg() << endl; 274 *fLog << " - Deviation [deg] = " << fDeviation*geom.GetConvMm2Deg() << endl; 275 *fLog << " - Center Pos. X [deg] = " << fCenterX*geom.GetConvMm2Deg() << endl; 276 *fLog << " - Center Pos. Y [deg] = " << fCenterY*geom.GetConvMm2Deg() << endl; 277 } 274 *fLog << " - Est. Radius [deg] = " << fRadius*geom.GetConvMm2Deg() << endl; 275 *fLog << " - Deviation [deg] = " << fDeviation*geom.GetConvMm2Deg() << endl; 276 *fLog << " - Center Pos. X [deg] = " << fCenterX*geom.GetConvMm2Deg() << endl; 277 *fLog << " - Center Pos. Y [deg] = " << fCenterY*geom.GetConvMm2Deg() << endl; 278 } 279 280 // -------------------------------------------------------------------------- 281 // 282 // Paint the ellipse corresponding to the parameters 283 // 284 void MMuonSearchPar::Paint(Option_t *opt) 285 { 286 if (fRadius<180 || fRadius>400 || fDeviation>45) 287 return; 288 289 TEllipse e1(fCenterX, fCenterY, fRadius-fDeviation, fRadius-fDeviation); 290 TEllipse e2(fCenterX, fCenterY, fRadius+fDeviation, fRadius+fDeviation); 291 e1.SetLineWidth(1); 292 e2.SetLineWidth(1); 293 e1.SetLineColor(kYellow); 294 e2.SetLineColor(kYellow); 295 e1.Paint(); 296 e2.Paint(); 297 } -
trunk/MagicSoft/Mars/mmuon/MMuonSearchPar.h
r6979 r7134 32 32 MMuonSearchPar(const char *name=NULL, const char *title=NULL); 33 33 34 // MParContainer 34 35 void Reset(); 35 36 37 // Getter 36 38 Float_t GetRadius() const { return fRadius; } 37 39 Float_t GetDeviation() const { return fDeviation; } … … 39 41 Float_t GetCenterY() const { return fCenterY; } 40 42 43 // MMuonSearchPar 41 44 void CalcMinimumDeviation(const MGeomCam &geom, const MSignalCam &evt, 42 45 Double_t &x, Double_t &y, Double_t &sigma, Double_t &rad); … … 45 48 const MHillas &hillas); 46 49 50 // TObject 51 void Paint(Option_t *opt=""); 47 52 void Print(Option_t *opt=NULL) const; 48 53 void Print(const MGeomCam &geom, Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.