Changeset 6820 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 03/15/05 11:10:55 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r6798 r6820 85 85 using namespace std; 86 86 87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = - 2.8;87 const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -4.0; 88 88 const Byte_t MExtractTimeAndCharge::fgLoGainSwitch = 120; 89 89 // -------------------------------------------------------------------------- … … 217 217 fLoGainFirstSave = fLoGainFirst; 218 218 const Byte_t logainstart = sathi 219 ? (sathi > (Int_t) fLoGainStartShift? sathi + (Int_t)fLoGainStartShift : fLoGainFirst)220 : ( Byte_t)(timehi + fLoGainStartShift);219 ? (sathi > (Int_t)(-fLoGainStartShift) ? sathi + (Int_t)fLoGainStartShift : fLoGainFirst) 220 : (timehi+fLoGainStartShift > 0. ? (Byte_t)(timehi + fLoGainStartShift) : fLoGainFirst); 221 221 fLoGainFirst = logainstart > fLoGainFirstSave ? logainstart : fLoGainFirstSave; 222 222 -
trunk/MagicSoft/Mars/msignal/MExtractor.cc
r6254 r6820 133 133 void MExtractor::SetRange(Byte_t hifirst, Byte_t hilast, Byte_t lofirst, Byte_t lolast) 134 134 { 135 fHiGainFirst = hifirst; 136 fHiGainLast = hilast; 137 138 fLoGainFirst = lofirst; 139 fLoGainLast = lolast; 135 136 Clear(); 137 138 fHiGainFirst = hifirst; 139 fHiGainLast = hilast; 140 141 fLoGainFirst = lofirst; 142 fLoGainLast = lolast; 140 143 } 141 144 -
trunk/MagicSoft/Mars/msignal/MExtractor.h
r5976 r6820 72 72 MExtractor(const char *name=NULL, const char *title=NULL); 73 73 74 void Clear(Option_t *o="") 75 { 76 fHiGainFirst = fHiGainLast = fLoGainFirst = fLoGainLast = fHiLoLast = 0; 77 } 78 74 79 Byte_t GetHiGainFirst() const { return fHiGainFirst; } 75 80 Byte_t GetHiGainLast () const { return fHiGainLast ; }
Note:
See TracChangeset
for help on using the changeset viewer.