Changeset 2055
- Timestamp:
- 05/02/03 12:59:21 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MCerPhotPix.h
r2048 r2055 10 10 private: 11 11 12 Int_t fPixId;// the pixel Id12 Int_t fPixId; // the pixel Id 13 13 14 UShort_t fRing; 15 Bool_t fIsCore; 14 UShort_t fRing; // NT: number of analyzed rings around the core pixels 15 Bool_t fIsCore; // the pixel is a Core pixel --> kTRUE 16 16 17 Float_t fPhot; // The number of Cerenkov photons 18 Float_t fErrPhot; // the error of fPhot 17 UShort_t fRing; // NT: number of analyzed rings around the core pixels 18 Float_t fPhot; // The number of Cerenkov photons 19 Float_t fErrPhot; // the error of fPhot 19 20 20 21 // FIXME: arrival time t, and it's error sigma t 21 22 22 23 public: 23 24 24 MCerPhotPix(Int_t pix=-1, Float_t phot=0, Float_t errphot=0); 25 25 26 Int_t GetPixId() const{ return fPixId; }27 Float_t GetNumPhotons() const{ return fPhot; }28 Float_t GetErrorPhot() const{ return fErrPhot; }26 Int_t GetPixId() const { return fPixId; } 27 Float_t GetNumPhotons() const { return fPhot; } 28 Float_t GetErrorPhot() const { return fErrPhot; } 29 29 30 void SetPixelContent(Int_t pix, Float_t phot, Float_t errphot); 30 Bool_t IsPixelUsed() const { return fRing>0; } 31 void SetPixelUnused() { fRing=0; } 32 void SetPixelUsed() { fRing=1; } 31 33 32 Bool_t IsPixelUsed() const { return fRing>0; } 33 void SetPixelUnused() { fRing=0; } 34 void SetPixelUsed() { fRing=1; } 34 void SetRing(UShort_t r) { fRing = r; } 35 Short_t GetRing() const { return fRing;} 35 36 36 void SetRing(UShort_t r) { fRing = r;}37 Short_t GetRing() const { return fRing;}37 void SetPixelCore() { fIsCore = kTRUE; } 38 Bool_t IsPixelCore() const { return fIsCore; } 38 39 39 void SetPixelCore() { fIsCore = kTRUE; } 40 Bool_t IsPixelCore() const { return fIsCore; } 40 void SetNumPhotons(Float_t f) { fPhot = f; } 41 void SetErrorPhot(Float_t f) { fErrPhot = f; } 42 void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; } 41 43 42 void SetNumPhotons(Float_t f) { fPhot = f; } 43 void SetErrorPhot(Float_t f) { fErrPhot = f; } 44 void Set(Float_t np, Float_t ep) { fPhot = np; fErrPhot = ep; } 44 void AddNumPhotons(Float_t f) { fPhot += f; } 45 45 46 void AddNumPhotons(Float_t f) { fPhot +=f; }46 void Scale(Float_t f) { fPhot/=f; } 47 47 48 void Scale(Float_t f) { fPhot/=f; } 49 50 void Print(Option_t *opt = NULL) const; 48 void Print(Option_t *opt = NULL) const; 51 49 52 50 ClassDef(MCerPhotPix, 1) // class containing information about the Cerenkov Photons in a pixel
Note:
See TracChangeset
for help on using the changeset viewer.