Changeset 2849
- Timestamp:
- 01/19/04 15:46:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2848 r2849 4 4 5 5 -*-*- END OF LINE -*-*- 6 7 2004/01/19: Abelardo Moralejo 8 9 * manalysis/MCerPhotPix.[h,cc] 10 - Added fIsSaturated to flag whether low gain of the pixel is 11 saturated. Added corresponding getter and setter functions. 12 Updated ClassDef to version 2. 13 14 * mcalib/MCalibrate.cc 15 - Set the new saturation flag of MCerPhotPix to kTRUE if at least 16 one low gain FADC slice is saturated. 17 18 * mimage/MNewImagePar.[h,cc] 19 - Added new member variable fNumSaturatedPixels to count how many 20 pixels were saturated. Updated ClassDef to version 2. 21 6 22 7 23 2004/01/19: Thomas Bretz -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.cc
r2173 r2849 23 23 ! 24 24 \* ======================================================================== */ 25 26 27 ///////////////////////////////////////////////////////////////////////////// 28 // 29 // MCerPhotPix 30 // 31 // Storage container for the signal in a pixel in number of photons. 32 // 33 // Version 2: 34 // Added fIsSaturated, boolean variable set to kTRUE whenever one or more of 35 // the low gain FADC slices of the pixel is in saturation. 36 // 37 //////////////////////////////////////////////////////////////////////////// 38 25 39 #include "MCerPhotPix.h" 26 40 … … 37 51 // 38 52 MCerPhotPix::MCerPhotPix(Int_t pix, Float_t phot, Float_t errphot) : 39 fPixId(pix), fRing(1), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot)53 fPixId(pix), fRing(1), fIsCore(kFALSE), fPhot(phot), fErrPhot(errphot), fIsSaturated(kFALSE) 40 54 { 41 55 } … … 50 64 gLog << (fRing>0?" Used ":" Unused "); 51 65 gLog << (fIsCore?" Core ":" "); 66 gLog << (fIsSaturated?" Saturated ":"Not Saturated"); 52 67 gLog << "Nphot= " << fPhot << " Error(Nphot)=" << fErrPhot << endl; 53 68 } -
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r2056 r2849 14 14 UShort_t fRing; // NT: number of analyzed rings around the core pixels (fRing>0 means: used) 15 15 Bool_t fIsCore; // the pixel is a Core pixel -> kTRUE 16 Bool_t fIsSaturated; // the pixel is saturated 16 17 17 18 Float_t fPhot; // The number of Cerenkov photons … … 41 42 void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; } 42 43 44 void SetPixelSaturated() { fIsSaturated = kTRUE; } 45 Bool_t IsPixelSaturated() const { return fIsSaturated; } 46 43 47 void AddNumPhotons(Float_t f) { fPhot += f; } 44 48 … … 47 51 void Print(Option_t *opt = NULL) const; 48 52 49 ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel53 ClassDef(MCerPhotPix, 2) // class containing information about the Cerenkov Photons in a pixel 50 54 }; 51 55 -
trunk/MagicSoft/Mars/mcalib/MCalibrate.cc
r2771 r2849 126 126 127 127 const UInt_t imaxnumpix = fSignals->GetSize(); 128 128 129 129 for (UInt_t pixidx=0; pixidx<imaxnumpix; pixidx++) 130 130 { … … 161 161 nphotErr = TMath::Sqrt(nphotErr); 162 162 163 163 164 fCerPhotEvt->AddPixel(pixidx, nphot, nphotErr); 165 166 if (sig.GetNumLoGainSaturated() > 0) 167 (*fCerPhotEvt)[pixidx].SetPixelSaturated(); 164 168 } 165 169 -
trunk/MagicSoft/Mars/mimage/MNewImagePar.cc
r2624 r2849 32 32 // fLeakage2 ratio: (photons in the 2 outer rings of pixels) over fSize 33 33 // 34 // Version 2: 35 // Added fNumSaturatedPixels: number of pixels in which at least one slice 36 // of the low gain FADC was saturated. 37 // 34 38 ///////////////////////////////////////////////////////////////////////////// 35 39 #include "MNewImagePar.h" … … 74 78 fNumUsedPixels = -1; 75 79 fNumCorePixels = -1; 80 81 fNumSaturatedPixels = -1; 76 82 } 77 83 … … 86 92 fNumCorePixels = 0; 87 93 94 fNumSaturatedPixels = 0; 95 88 96 const UInt_t npixevt = evt.GetNumPixels(); 89 97 … … 97 105 { 98 106 const MCerPhotPix &pix = evt[i]; 107 108 if (pix.IsPixelSaturated()) 109 fNumSaturatedPixels++; 110 99 111 if (!pix.IsPixelUsed()) 100 112 continue; -
trunk/MagicSoft/Mars/mimage/MNewImagePar.h
r2026 r2849 22 22 Short_t fNumCorePixels; // number of core pixels 23 23 24 Short_t fNumSaturatedPixels; // number of saturated pixels 25 24 26 public: 25 27 MNewImagePar(const char *name=NULL, const char *title=NULL); … … 36 38 Int_t GetNumCorePixels() const { return fNumCorePixels; } 37 39 40 Short_t GetNumSaturatedPixels() const { return fNumSaturatedPixels; } 41 38 42 void Print(Option_t *opt=NULL) const; 39 43 … … 41 45 const MHillas &hillas); 42 46 43 ClassDef(MNewImagePar, 1) // Container to hold new image parameters47 ClassDef(MNewImagePar, 2) // Container to hold new image parameters 44 48 }; 45 49
Note:
See TracChangeset
for help on using the changeset viewer.