Changeset 2849 for trunk/MagicSoft/Mars/manalysis
- Timestamp:
- 01/19/04 15:46:56 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.