Changeset 7444 for trunk/MagicSoft/Mars/mcamera/MCameraTH.h
- Timestamp:
- 12/06/05 14:24:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcamera/MCameraTH.h
r7430 r7444 9 9 #endif 10 10 11 #ifndef ROOT_TArray S12 #include <TArray S.h>11 #ifndef ROOT_TArrayC 12 #include <TArrayC.h> 13 13 #endif 14 14 … … 17 17 friend class MReportCC; 18 18 private: 19 TArray SfTH; // [au] discriminator thresholds19 TArrayC fTH; // [au] discriminator thresholds 20 20 21 21 public: 22 22 MCameraTH(Int_t size=577, const char *name=NULL, const char *title=NULL); 23 23 24 void SetThreshold(Int_t i, Float_t val) { fTH[i] = (Int_t)val; } 25 Float_t GetThreshold(Int_t i) const { return (*this)[i]; } 26 Float_t &operator[](Int_t i) { return (Float_t&)fTH[i]; } 27 const Float_t &operator[](Int_t i) const { return (*const_cast<MCameraTH*>(this))[i]; } 24 Byte_t operator[](Int_t i) { return fTH[i]; } 28 25 29 Float_t GetMin() const;30 Float_t GetMax() const;26 Byte_t GetMin() const; 27 Byte_t GetMax() const; 31 28 32 29 void Print(Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.