From 0022bf57d1a99d7e91c77e5e08e27805cb45bbdc Mon Sep 17 00:00:00 2001 From: Jure Bericic <bericic@jlab.org> Date: Wed, 21 Dec 2016 11:01:04 -0500 Subject: [PATCH] Changed fMaxNSamplesADC to 511. The f250 modules can produce at most 511 samples (9 bit) so it seemed reasonable to increase the maximum number of samples in the raw hits to this value. --- src/THcRawAdcHit.h | 2 +- src/THcRawHodoHit.h | 2 +- src/THcTrigRawHit.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/THcRawAdcHit.h b/src/THcRawAdcHit.h index 5cf9012..f5a2a5c 100644 --- a/src/THcRawAdcHit.h +++ b/src/THcRawAdcHit.h @@ -37,7 +37,7 @@ class THcRawAdcHit : public TObject { protected: static const UInt_t fMaxNPulses = 4; - static const UInt_t fMaxNSamples = 160; + static const UInt_t fMaxNSamples = 511; Int_t fAdc[fMaxNPulses]; Int_t fAdcTime[fMaxNPulses]; diff --git a/src/THcRawHodoHit.h b/src/THcRawHodoHit.h index c14ac31..786bf28 100644 --- a/src/THcRawHodoHit.h +++ b/src/THcRawHodoHit.h @@ -68,7 +68,7 @@ class THcRawHodoHit : public THcRawHit { } protected: - static const UInt_t fMaxNSamplesADC = 160; + static const UInt_t fMaxNSamplesADC = 511; static const UInt_t fMaxNPulsesADC = 4; static const UInt_t fMaxNHitsTDC = 16; Int_t fADC_pos[fMaxNPulsesADC]; diff --git a/src/THcTrigRawHit.h b/src/THcTrigRawHit.h index 9c4dd0a..7774178 100644 --- a/src/THcTrigRawHit.h +++ b/src/THcTrigRawHit.h @@ -38,7 +38,7 @@ class THcTrigRawHit : public THcRawHit { protected: static const UInt_t fMaxNPulsesAdc = 4; - static const UInt_t fMaxNSamplesAdc = 160; + static const UInt_t fMaxNSamplesAdc = 511; static const UInt_t fMaxNHitsTdc = 16; static const UInt_t fNPlanes = 2; -- GitLab