194 : fNPedestalSamples(4)
196 , fPeakPedestalRatio(1.0*fNPeakSamples/fNPedestalSamples)
197 , fSubsampleToTimeFactor(0.0625)
198 , fSampThreshold(10.)
223 if (
this != &right) {
275 throw std::out_of_range(
276 "`THcRawAdcHit::SetData`: too many pulses!"
304 throw std::out_of_range(
305 "`THcRawAdcHit::SetSample`: too many samples!"
346 CheckSampBelowThres =
kTRUE;
350 if( CheckSampBelowThres ) {
357 if( ns_found ==
fNSAT ) {
367 if(
GetSample(nt) < PeakVal && PeakBin == 0 ) {
369 }
else if( PeakBin == 0 ) {
375 Int_t Time = NS * 64;
379 Time = 64 * nt + int(64 * (VMid -
GetSample(nt)) /
391 CheckSampBelowThres =
kTRUE;
412 throw std::out_of_range(
413 "`THcRawAdcHit::SetDataTimePedestalPeak`: too many pulses!"
425 if(
NSA < 0 ||
NSB < 0 || NPED < 0 ) {
427 "`THcRawAdcHit::SetF250Params`: One of the params is negative! NSA = %d NSB = %d NPED = %d",
430 throw std::invalid_argument(msg.
Data());
442 throw std::out_of_range(
Form(
"%s: Bad index %u %u", loc, i,
N));
448 throw std::out_of_range(
Form(
"%s: bad range %u %u %u", loc, lo,
hi,
N));
std::vector< uint32_t > peak
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
ClassImp(VDC::AnalyticTTDConv) using namespace std
char * Form(const char *fmt,...)
Class representing a single raw ADC hit.
void SetData(Int_t data)
Sets raw ADC value.
static void throw_bad_index(const char *loc, UInt_t i, UInt_t N)
Int_t fPulseTime[fMaxNPulses]
virtual ~THcRawAdcHit()
Destructor.
void SetSampNSAT(Int_t nsat)
void SetRefDiffTime(Int_t refDiffTime)
void SetDataTimePedestalPeak(Int_t data, Int_t time, Int_t pedestal, Int_t peak)
Sets various bits of ADC data.
THcRawAdcHit & operator=(const THcRawAdcHit &right)
Assignment operator.
void SetSampThreshold(Double_t thres)
Double_t GetSample(UInt_t iSample=0) const
static constexpr UInt_t fMaxNSamples
void SetSampIntTimePedestalPeak()
Int_t fSampPulseInt[fMaxNPulses]
Int_t fSample[fMaxNSamples]
Double_t fPeakPedestalRatio
static void throw_bad_range(const char *loc, UInt_t lo, UInt_t hi, UInt_t N)
Int_t fSampPulseAmp[fMaxNPulses]
static constexpr UInt_t fMaxNPulses
Int_t GetSampleRaw(UInt_t iSample=0) const
Gets raw sample. In channels.
Int_t fPulseInt[fMaxNPulses]
Int_t fPulseAmp[fMaxNPulses]
void SetSample(Int_t data)
Sets raw signal sample.
virtual void Clear(Option_t *opt="")
Clears variables before next event.
Int_t GetIntegral(UInt_t iSampleLow, UInt_t iSampleHigh) const
Gets integral of raw samples. In channels.
THcRawAdcHit()
Constructor.
void SetF250Params(Int_t NSA, Int_t NSB, Int_t NPED)
Sets F250 parameters used for pedestal subtraction.
void SetRefTime(Int_t refTime)
Sets reference time. In channels.
Int_t fSampPulseTime[fMaxNPulses]
virtual void Clear(Option_t *="")
TObject & operator=(const TObject &rhs)
const char * Data() const
Double_t Min(Double_t a, Double_t b)
Double_t Max(Double_t a, Double_t b)