Changeset 7355
- Timestamp:
- 09/16/05 14:57:22 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7354 r7355 46 46 - removed some obsolete comments 47 47 - added Copy() member function 48 49 * mgeom/MGeomCam.[h,cc], mgeom/MGeomPix.h: 50 - new member function GetAngle 48 51 49 52 -
trunk/MagicSoft/Mars/NEWS
r7354 r7355 20 20 - callisto: The status "unmapped" (for pixel which cannot be interpolated) 21 21 got lost when the events were stored by the calibration... fixed. 22 (This was no problem for normal image cleaning because the pixel 23 content was artificially set to 0 not surviving standard cleaning 24 algorithm) 22 25 23 26 - callisto: Fixed a bug which caused the random and peak-search pedestal … … 48 51 *** Version 0.9.4 (2005/08/05) 49 52 50 - general: Fixed the ZA binning. It did n't correctylfit the53 - general: Fixed the ZA binning. It did not correctly fit the 51 54 MC binning 52 55 -
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r7346 r7355 237 237 // -------------------------------------------------------------------------- 238 238 // 239 // Returns the angle between of pixels i wrt pixel j (default=0). The angle 240 // is returned in the range between -pi and pi (atan2) and 2*pi if i or j 241 // is out of range. 242 // 243 Float_t MGeomCam::GetAngle(UShort_t i, UShort_t j) const 244 { 245 if (i>=fNumPixels || j>=fNumPixels) 246 return TMath::TwoPi(); 247 248 return (*this)[i].GetAngle((*this)[j]); 249 } 250 251 // -------------------------------------------------------------------------- 252 // 239 253 // Have to call the radii of the subcameras starting to count from 1 240 254 // -
trunk/MagicSoft/Mars/mgeom/MGeomCam.h
r7346 r7355 67 67 68 68 Float_t GetDist(UShort_t i, UShort_t j=0) const; 69 Float_t GetAngle(UShort_t i, UShort_t j=0) const; 69 70 70 71 UInt_t GetNumSectors() const { return fNumSectors; } -
trunk/MagicSoft/Mars/mgeom/MGeomPix.h
r7342 r7355 63 63 UInt_t GetSector() const { return fSector; } 64 64 65 Float_t GetDist(const MGeomPix & pix) const { return TMath::Hypot(fX-pix.fX, fY-pix.fY); } 65 Float_t GetDist(const MGeomPix &pix) const { return TMath::Hypot(fX-pix.fX, fY-pix.fY); } 66 Float_t GetAngle(const MGeomPix &pix) const { return TMath::ATan2(fX - pix.GetX(), fY - pix.GetY()); } 67 66 68 67 69 Float_t GetA() const { return fA; /*fD*fD*gsTan60/2;*/ } -
trunk/MagicSoft/Mars/mhvstime/MHSectorVsTime.cc
r7349 r7355 63 63 // // Task to fill the histogram 64 64 // MFillH fill1(&hist1, "MCameraDC"); 65 // 65 // 66 // 67 // Class Version 2: 68 // ---------------- 69 // + Double_t fMinimum; // User defined minimum 70 // + Double_t fMaximum; // User defined maximum 71 // 66 72 // 67 73 ///////////////////////////////////////////////////////////////////////////// -
trunk/MagicSoft/Mars/msignal/MSignalPix.cc
r6856 r7355 17 17 ! 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Author(s): Harald Kornmayer 1/200120 19 ! 21 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2005 22 21 ! 23 22 ! … … 59 58 // the container for calibrated data will change soon. 60 59 // 60 // Version 7: 61 // ---------- 62 // - removed '!' from fRing to allow the status 'Unmapped' to be stored 63 // after calibration (bad pixel treatment). This increases the file 64 // size of the calibrated data by roughly 0.5% 65 // 61 66 //////////////////////////////////////////////////////////////////////////// 62 67 #include "MSignalPix.h" … … 97 102 { 98 103 gLog << GetDescriptor();// << " Pixel: "<< fPixId; 99 gLog << (fRing>0?" Used ":" Unused "); 104 switch (fRing) 105 { 106 case -1: 107 gLog << "Unampped"; 108 break; 109 case 0: 110 gLog << " Unused "; 111 break; 112 default: 113 gLog << " Used "; 114 break; 115 } 100 116 gLog << (fIsCore?" Core ":" "); 101 117 gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl;
Note:
See TracChangeset
for help on using the changeset viewer.