Changeset 1394
- Timestamp:
- 07/10/02 11:31:05 (22 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r1390 r1394 1 1 -*-*- END -*-*- 2 2002/07/10: Thomas Bretz 3 4 * mmain/Makefile: 5 - added -I../mfileio 6 7 * manalysis/MCerPhotPix.h: 8 - renamed IsCorePixel to IsPixelCore 9 - renamed SetCorePixel to SetPixelCore 10 11 * manalysis/MHillas.[h,cc]: 12 - added fNumCorePixel 13 - added fNumUsedPixel 14 15 * manalysis/MImgCleanStd.cc: 16 - renamed IsCorePixel and SetCorePixel 17 18 19 2 20 2002/07/08: Thomas Bretz 3 21 -
trunk/MagicSoft/Mars/NEWS
r1390 r1394 31 31 32 32 - Added three buttons to the camera display to change the palette 33 34 - Added the number of used and core pixels after image cleaning 35 to MHillas 33 36 34 37 -
trunk/MagicSoft/Mars/manalysis/MCerPhotEvt.cc
r1203 r1394 143 143 const MCerPhotPix &pix = (*this)[i]; 144 144 145 if (id == pix.GetPixId() && pix.Is CorePixel())145 if (id == pix.GetPixId() && pix.IsPixelCore()) 146 146 return kTRUE; 147 147 } -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r1023 r1394 34 34 void SetPixelUsed() { fIsUsed = kTRUE; } 35 35 36 void Set CorePixel() { fIsCore = kTRUE; }37 Bool_t Is CorePixel() const { return fIsCore; }36 void SetPixelCore() { fIsCore = kTRUE; } 37 Bool_t IsPixelCore() const { return fIsCore; } 38 38 39 39 void SetNumPhotons(Float_t f) { fPhot = f; } -
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r1353 r1394 32 32 // 33 33 // basic image parameters 34 // 35 // Version 1: 36 // ---------- 34 37 // fLength major axis of ellipse 35 38 // fWidth minor axis … … 39 42 // fMeanY y of center of ellipse 40 43 // 44 // Version 2: 45 // ---------- 46 // fNumCorePixels number of pixels called core 47 // fNumUsedPixels number of pixels which survived the cleaning 48 // 41 49 ///////////////////////////////////////////////////////////////////////////// 42 50 #include "MHillas.h" … … 88 96 fWidth = 0; 89 97 fDelta = 0; 90 fSize = 0; 91 fMeanX = 0; 92 fMeanY = 0; 98 99 fSize = -1; 100 fMeanX = -1; 101 fMeanY = -1; 102 103 fNumUsedPixels = -1; 104 fNumCorePixels = -1; 93 105 94 106 Clear(); … … 220 232 fSize = 0; 221 233 234 fNumUsedPixels = 0; 235 fNumCorePixels = 0; 236 222 237 // 223 238 // FIXME! npix should be retrieved from MCerPhotEvt 224 239 // 225 UShort_t npix=0;226 240 for (UInt_t i=0; i<npixevt; i++) 227 241 { … … 239 253 fMeanY += nphot * gpix.GetY(); // [mm] 240 254 241 npix++; 255 if (pix.IsPixelCore()) 256 fNumCorePixels++; 257 258 fNumUsedPixels++; 242 259 } 243 260 … … 245 262 // sanity check 246 263 // 247 if (fSize==0 || npix<=2)264 if (fSize==0 || fNumUsedPixels<=2) 248 265 return kFALSE; 249 266 -
trunk/MagicSoft/Mars/manalysis/MHillas.h
r1218 r1394 24 24 Float_t fSinDelta; //! [1] sin of Delta (to be used in derived classes) 25 25 Float_t fCosDelta; //! [1] cos of Delta (to be used in derived classes) 26 27 Short_t fNumUsedPixels; // Number of pixels which survived the image cleaning 28 Short_t fNumCorePixels; // number of core pixels 26 29 27 30 TEllipse *fEllipse; //! Graphical Object to Display Ellipse … … 56 59 Float_t GetMeanY() const { return fMeanY; } 57 60 61 Int_t GetNumUsedPixels() const { return fNumUsedPixels; } 62 Int_t GetNumCorePixels() const { return fNumCorePixels; } 63 58 64 virtual void AsciiRead(ifstream &fin); 59 65 //virtual void AsciiWrite(ofstream &fout) const; 60 66 61 ClassDef(MHillas, 1) // Storage Container for Hillas Parameter67 ClassDef(MHillas, 2) // Storage Container for Hillas Parameter 62 68 }; 63 69 -
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc
r1211 r1394 187 187 188 188 if (pix.IsPixelUsed()) 189 pix.Set CorePixel();189 pix.SetPixelCore(); 190 190 } 191 191 } … … 211 211 // if pixel is a core pixel go to the next pixel 212 212 // 213 if (pix.Is CorePixel())213 if (pix.IsPixelCore()) 214 214 continue; 215 215 -
trunk/MagicSoft/Mars/mmain/Makefile
r1052 r1394 23 23 # 24 24 INCLUDES = -I. -I../mbase -I../manalysis -I../mdatacheck -I../meventdisp \ 25 -I../mgui -I../mhist -I../mmontecarlo 25 -I../mgui -I../mhist -I../mmontecarlo -I../mfileio 26 26 27 27 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.