Changeset 3466 for trunk/MagicSoft/Mars
- Timestamp:
- 03/10/04 20:23:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3465 r3466 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2004/03/10: Abelardo Moralejo 22 23 * manalysis/MCerPhotPix.[h,cc] 24 - Added member fIsHGSaturated, and setter/getter functions. 25 Updated class version to 4. 26 27 * mcalib/MCalibrate.cc, MCalibrateData.cc 28 - Added setting of MCerPhotPix.fIsHGSaturated if one or more HG 29 slices saturate. 30 31 * mimage/MNewImagePar.[h,cc] 32 - Added member fNumHGSaturatedPixels to count the number of pixels 33 in which high gain saturates. Added getter funciton for it. 34 Updated class version to 3. 35 36 20 37 2004/03/10: Markus Gaug 21 38 -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r3183 r3466 41 41 // - added fIsSaturated 42 42 // 43 // Version 4: 44 // ---------- 45 // - added fIsHGSaturated 46 // 43 47 //////////////////////////////////////////////////////////////////////////// 44 48 #include "MCerPhotPix.h" … … 56 60 // 57 61 MCerPhotPix::MCerPhotPix(Int_t pix, Float_t phot, Float_t errphot) : 58 fPixId(pix), fRing(1), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot), fIsSaturated(kFALSE) 62 fPixId(pix), fRing(1), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot), fIsSaturated(kFALSE), fIsHGSaturated(kFALSE) 59 63 { 60 64 } … … 69 73 gLog << (fRing>0?" Used ":" Unused "); 70 74 gLog << (fIsCore?" Core ":" "); 75 gLog << "High gain " << (fIsHGSaturated?" ":"not") << " saturated"; 71 76 gLog << (fIsSaturated?" ":"Not") << " saturated"; 72 77 gLog << " Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl; -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r3415 r3466 18 18 Float_t fErrPhot; // the error of fPhot 19 19 20 Bool_t fIsSaturated; // the pixel is saturated 20 Bool_t fIsSaturated; // the pixel's low gain is saturated 21 Bool_t fIsHGSaturated; // the pixel's high gain is saturated 21 22 22 23 // FIXME: arrival time t, and it's error sigma t … … 48 49 Bool_t IsPixelSaturated() const { return fIsSaturated; } 49 50 51 void SetPixelHGSaturated() { fIsHGSaturated = kTRUE; } 52 Bool_t IsPixelHGSaturated() const { return fIsHGSaturated; } 53 50 54 void AddNumPhotons(Float_t f) { fPhot += f; } 51 55 … … 54 58 void Print(Option_t *opt = NULL) const; 55 59 56 ClassDef(MCerPhotPix, 3) // class containing information about the Cerenkov Photons in a pixel60 ClassDef(MCerPhotPix, 4) // class containing information about the Cerenkov Photons in a pixel 57 61 }; 58 62 -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r3437 r3466 327 327 cpix->SetPixelSaturated(); 328 328 329 if (sig.GetNumHiGainSaturated() > 0) 330 cpix->SetPixelHGSaturated(); 331 332 329 333 } /* for (UInt_t pixidx=0; pixidx<npix; pixidx++) */ 330 334 -
trunk/MagicSoft/Mars/mcalib/MCalibrateData.cc
r3437 r3466 340 340 MCerPhotPix *cpix = fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr); 341 341 342 if (sig.GetNumHiGainSaturated() > 0) 343 cpix->SetPixelHGSaturated(); 344 342 345 if (sig.GetNumLoGainSaturated() > 0) 343 346 cpix->SetPixelSaturated(); -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r3183 r3466 37 37 // ---------- 38 38 // - added fNumSaturatedPixels 39 // 40 // Version 3: 41 // ---------- 42 // - added fNumHGSaturatedPixels 39 43 // 40 44 ///////////////////////////////////////////////////////////////////////////// … … 82 86 83 87 fNumSaturatedPixels = -1; 88 fNumHGSaturatedPixels = -1; 84 89 } 85 90 … … 95 100 96 101 fNumSaturatedPixels = 0; 102 fNumHGSaturatedPixels = 0; 97 103 98 104 const UInt_t npixevt = evt.GetNumPixels(); … … 109 115 110 116 // count saturated pixels 117 if (pix.IsPixelHGSaturated()) 118 fNumHGSaturatedPixels++; 111 119 if (pix.IsPixelSaturated()) 112 120 fNumSaturatedPixels++; … … 175 183 *fLog << " - Used Pixels [#] = " << fNumUsedPixels << " Pixels" << endl; 176 184 *fLog << " - Core Pixels [#] = " << fNumCorePixels << " Pixels" << endl; 177 *fLog << " - Sat. Pixels [#] = " << fNumSaturatedPixels << " Pixels" << endl; 185 *fLog << " - Sat. Pixels (HG) [#] = " << fNumHGSaturatedPixels << " Pixels" << endl; 186 *fLog << " - Sat. Pixels (LG) [#] = " << fNumSaturatedPixels << " Pixels" << endl; 178 187 } -
trunk/MagicSoft/Mars/mimage/MNewImagePar.h
r3183 r3466 21 21 Short_t fNumUsedPixels; // Number of pixels which survived the image cleaning 22 22 Short_t fNumCorePixels; // number of core pixels 23 Short_t fNumSaturatedPixels; // number of pixels with saturating lo-gains 23 Short_t fNumHGSaturatedPixels; // number of pixels with saturating hi-gains 24 Short_t fNumSaturatedPixels; // number of pixels with saturating lo-gains 24 25 25 26 public: … … 38 39 39 40 Short_t GetNumSaturatedPixels() const { return fNumSaturatedPixels; } 41 Short_t GetNumHGSaturatedPixels() const { return fNumHGSaturatedPixels; } 40 42 41 43 void Print(Option_t *opt=NULL) const; … … 44 46 const MHillas &hillas); 45 47 46 ClassDef(MNewImagePar, 2) // Container to hold new image parameters48 ClassDef(MNewImagePar, 3) // Container to hold new image parameters 47 49 }; 48 50
Note:
See TracChangeset
for help on using the changeset viewer.