Changeset 7445 for trunk/MagicSoft
- Timestamp:
- 12/06/05 16:08:41 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mcamera
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcamera/MCameraTD.cc
r7444 r7445 67 67 // Return the discrimintaor delays 68 68 // 69 Byte_t MCameraTD::GetMin() const69 UShort_t MCameraTD::GetMin() const 70 70 { 71 Byte_t val = 0xff;71 UShort_t val = (UShort_t)-1; 72 72 for (int i=0; i<fTD.GetSize(); i++) 73 73 val = TMath::Min(val, fTD[i]); … … 79 79 // Return the discrimintaor delays 80 80 // 81 Byte_t MCameraTD::GetMax() const81 UShort_t MCameraTD::GetMax() const 82 82 { 83 Byte_t val = 0;83 UShort_t val = 0; 84 84 for (int i=0; i<fTD.GetSize(); i++) 85 85 val = TMath::Max(val, fTD[i]); -
trunk/MagicSoft/Mars/mcamera/MCameraTD.h
r7444 r7445 9 9 #endif 10 10 11 #ifndef ROOT_TArray C12 #include <TArray C.h>11 #ifndef ROOT_TArrayS 12 #include <TArrayS.h> 13 13 #endif 14 14 … … 17 17 friend class MReportCC; 18 18 private: 19 TArray CfTD; // [au] discriminator delays19 TArrayS fTD; // [au] discriminator delays 20 20 21 21 public: 22 22 MCameraTD(Int_t size=577, const char *name=NULL, const char *title=NULL); 23 23 24 Byte_t operator[](Int_t i) { returnfTD[i]; }24 UShort_t operator[](Int_t i) { return (UShort_t)fTD[i]; } 25 25 26 Byte_t GetMin() const;27 Byte_t GetMax() const;26 UShort_t GetMin() const; 27 UShort_t GetMax() const; 28 28 29 29 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mcamera/MCameraTH.cc
r7444 r7445 67 67 // Return the discriminator thresholds 68 68 // 69 Byte_t MCameraTH::GetMin() const69 UShort_t MCameraTH::GetMin() const 70 70 { 71 Byte_t val = 0xff;71 UShort_t val = (UShort_t)-1; 72 72 for (int i=0; i<fTH.GetSize(); i++) 73 73 val = TMath::Min(val, fTH[i]); … … 79 79 // Return the discriminator thresholds 80 80 // 81 Byte_t MCameraTH::GetMax() const81 UShort_t MCameraTH::GetMax() const 82 82 { 83 Byte_t val = 0;83 UShort_t val = 0; 84 84 for (int i=0; i<fTH.GetSize(); i++) 85 85 val = TMath::Max(val, fTH[i]); -
trunk/MagicSoft/Mars/mcamera/MCameraTH.h
r7444 r7445 9 9 #endif 10 10 11 #ifndef ROOT_TArray C12 #include <TArray C.h>11 #ifndef ROOT_TArrayS 12 #include <TArrayS.h> 13 13 #endif 14 14 … … 17 17 friend class MReportCC; 18 18 private: 19 TArray CfTH; // [au] discriminator thresholds19 TArrayS 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 Byte_t operator[](Int_t i) { returnfTH[i]; }24 UShort_t operator[](Int_t i) { return (UShort_t)fTH[i]; } 25 25 26 Byte_t GetMin() const;27 Byte_t GetMax() const;26 UShort_t GetMin() const; 27 UShort_t GetMax() const; 28 28 29 29 void Print(Option_t *opt=NULL) const;
Note:
See TracChangeset
for help on using the changeset viewer.