- Timestamp:
- 12/06/05 16:12:48 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcamera/MCameraTD.cc
r7445 r7446 67 67 // Return the discrimintaor delays 68 68 // 69 UShort_t MCameraTD::GetMin() const69 Byte_t MCameraTD::GetMin() const 70 70 { 71 UShort_t val = (UShort_t)-1;71 Byte_t val = 0xff; 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 UShort_t MCameraTD::GetMax() const81 Byte_t MCameraTD::GetMax() const 82 82 { 83 UShort_t val = 0;83 Byte_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
r7445 r7446 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 SfTD; // [au] discriminator delays19 TArrayC 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 UShort_t operator[](Int_t i) { return (UShort_t)fTD[i]; }24 Byte_t operator[](Int_t i) { return fTD[i]; } 25 25 26 UShort_t GetMin() const;27 UShort_t GetMax() const;26 Byte_t GetMin() const; 27 Byte_t GetMax() const; 28 28 29 29 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mcamera/MCameraTH.cc
r7445 r7446 67 67 // Return the discriminator thresholds 68 68 // 69 UShort_t MCameraTH::GetMin() const69 Byte_t MCameraTH::GetMin() const 70 70 { 71 UShort_t val = (UShort_t)-1;71 Byte_t val = 0xff; 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 UShort_t MCameraTH::GetMax() const81 Byte_t MCameraTH::GetMax() const 82 82 { 83 UShort_t val = 0;83 Byte_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
r7445 r7446 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 UShort_t operator[](Int_t i) { return (UShort_t)fTH[i]; }24 Byte_t operator[](Int_t i) { return fTH[i]; } 25 25 26 UShort_t GetMin() const;27 UShort_t GetMax() const;26 Byte_t GetMin() const; 27 Byte_t GetMax() const; 28 28 29 29 void Print(Option_t *opt=NULL) const; -
trunk/MagicSoft/Mars/mreport/MReportCC.cc
r7430 r7446 150 150 pos += 2; 151 151 152 const Int_t n=sscanf(hex, "%2h x", &fTH->fTH[i++]);152 const Int_t n=sscanf(hex, "%2hhx", &fTH->fTH[i++]); 153 153 if (n==1) 154 154 continue;
Note:
See TracChangeset
for help on using the changeset viewer.