Changeset 7829 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/01/06 14:13:34 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MArrivalTimePix.h
r7810 r7829 22 22 void Clear(Option_t *o=""); 23 23 void Print(Option_t *o="") const; 24 void Copy(TObject &obj) const 25 { 26 MArrivalTimePix &pix = static_cast<MArrivalTimePix&>(obj); 27 28 pix.fArrivalTimeHiGain = fArrivalTimeHiGain; 29 pix.fArrivalTimeHiGainError = fArrivalTimeHiGainError; 30 pix.fArrivalTimeLoGain = fArrivalTimeLoGain; 31 pix.fArrivalTimeLoGainError = fArrivalTimeLoGainError; 32 33 pix.fNumHiGainSaturated = fNumHiGainSaturated; 34 pix.fNumLoGainSaturated = fNumLoGainSaturated; 35 } 24 36 25 37 // Setter -
trunk/MagicSoft/Mars/msignal/MExtractedSignalPix.cc
r7810 r7829 62 62 63 63 Clear(); 64 65 64 } 66 65 … … 81 80 } 82 81 83 void MExtractedSignalPix::SetExtractedSignal(Float_t sig, Float_t sigerr) 82 void MExtractedSignalPix::SetExtractedSignal(Float_t sig, Float_t sigerr) 84 83 { 85 84 fExtractedSignalHiGain = sig; -
trunk/MagicSoft/Mars/msignal/MSignalPix.cc
r7355 r7829 88 88 void MSignalPix::Clear(Option_t *o) 89 89 { 90 fIsCore = kFALSE; 91 fRing = 1; 92 fIdxIsland = -1; 93 fPhot = 0; 94 fErrPhot = 0; 90 fIsCore = kFALSE; 91 fRing = 1; 92 fIdxIsland = -1; 93 fPhot = 0; 94 fErrPhot = 0; 95 fLoGainUsed = kFALSE; 95 96 } 96 97 -
trunk/MagicSoft/Mars/msignal/MSignalPix.h
r7354 r7829 20 20 Float_t fArrivalTime; // Calibrated Arrival Time 21 21 22 Bool_t fLoGainUsed; //! Is lo gain used 23 22 24 public: 23 25 MSignalPix(Float_t phot=0, Float_t errphot=0); … … 32 34 pix.fPhot = fPhot; 33 35 pix.fErrPhot = fErrPhot; 36 pix.fLoGainUsed = fLoGainUsed; 34 37 } 35 38 36 Float_t GetNumPhotons() const { return fPhot; } 37 Float_t GetErrorPhot() const { return fErrPhot; } 38 Float_t GetArrivalTime() const { return fArrivalTime; } 39 40 Bool_t IsPixelUsed() const { return fRing>0; } 41 Bool_t IsPixelUnmapped() const { return fRing==-1; } 42 void SetPixelUnused() { fRing=0; } 43 void SetPixelUsed() { fRing=1; } 44 void SetPixelUnmapped() { fRing=-1; } 45 void SetIdxIsland(Short_t num) { fIdxIsland=num; } 46 Short_t GetIdxIsland() const { return fIdxIsland; } 39 Float_t GetNumPhotons() const { return fPhot; } 40 Float_t GetErrorPhot() const { return fErrPhot; } 41 Float_t GetArrivalTime() const { return fArrivalTime; } 47 42 48 void SetRing(UShort_t r) { fRing = r; } 49 Short_t GetRing() const { return fRing;} 43 Bool_t IsPixelUsed() const { return fRing>0; } 44 Bool_t IsPixelUnmapped() const { return fRing==-1; } 45 void SetPixelUnused() { fRing=0; } 46 void SetPixelUsed() { fRing=1; } 47 void SetPixelUnmapped() { fRing=-1; } 48 void SetIdxIsland(Short_t num) { fIdxIsland=num; } 49 Short_t GetIdxIsland() const { return fIdxIsland; } 50 50 51 void Set PixelCore(Bool_t b=kTRUE){ fIsCore = b;}52 Bool_t IsPixelCore() const { return fIsCore;}51 void SetRing(UShort_t r) { fRing = r; } 52 Short_t GetRing() const { return fRing;} 53 53 54 void SetNumPhotons(Float_t f) { MMath::ReducePrecision(f); fPhot = f; } 55 void SetErrorPhot(Float_t f) { MMath::ReducePrecision(f); fErrPhot = f; } 56 void Set(Float_t np, Float_t ep) { MMath::ReducePrecision(np); MMath::ReducePrecision(ep); fPhot = np; fErrPhot = ep; } 57 void SetArrivalTime(Float_t tm) { MMath::ReducePrecision(tm); fArrivalTime = tm; } 54 void SetPixelCore(Bool_t b=kTRUE) { fIsCore = b; } 55 Bool_t IsPixelCore() const { return fIsCore; } 58 56 59 void AddNumPhotons(Float_t f) { fPhot += f; } 57 void SetNumPhotons(Float_t f) { MMath::ReducePrecision(f); fPhot = f; } 58 void SetErrorPhot(Float_t f) { MMath::ReducePrecision(f); fErrPhot = f; } 59 void Set(Float_t np, Float_t ep) { MMath::ReducePrecision(np); MMath::ReducePrecision(ep); fPhot = np; fErrPhot = ep; } 60 void SetArrivalTime(Float_t tm) { MMath::ReducePrecision(tm); fArrivalTime = tm; } 60 61 61 void Scale(Float_t f) { fPhot/=f; } 62 void SetLoGainUsed(Bool_t b=kTRUE) { fLoGainUsed=b; } 63 Bool_t IsLoGainUsed() const { return fLoGainUsed; } 64 65 void AddNumPhotons(Float_t f) { fPhot += f; } 66 void Scale(Float_t f) { fPhot /= f; } 62 67 63 68 void Print(Option_t *opt = NULL) const; 64 Bool_t IsSortable() const { return kTRUE; }65 69 66 70 ClassDef(MSignalPix, 7) // class containing information about the Cerenkov Photons in a pixel
Note:
See TracChangeset
for help on using the changeset viewer.