Newer
Older
#ifndef ROOT_THcRawAdcHit
#define ROOT_THcRawAdcHit
#include "TObject.h"
class THcRawAdcHit : public TObject {
public:
THcRawAdcHit();
THcRawAdcHit& operator=(const THcRawAdcHit& right);
virtual ~THcRawAdcHit();
virtual void Clear(Option_t* opt="");
void SetData(Int_t data);
void SetSample(Int_t data);
void SetRefTime(Int_t refTime);
void SetDataTimePedestalPeak(
Int_t data, Int_t time, Int_t pedestal, Int_t peak
);
Int_t GetRawData(UInt_t iPulse=0) const;
Double_t GetF250_PeakPedestalRatio() {return fPeakPedestalRatio;};
Double_t GetAverage(UInt_t iSampleLow, UInt_t iSampleHigh) const;
Int_t GetIntegral(UInt_t iSampleLow, UInt_t iSampleHigh) const;
Double_t GetData(
UInt_t iPedLow, UInt_t iPedHigh, UInt_t iIntLow, UInt_t iIntHigh
UInt_t GetNPulses() const;
UInt_t GetNSamples() const;
Bool_t HasMulti() const;
Int_t GetPedRaw() const;
Int_t GetPulseIntRaw(UInt_t iPulse=0) const;
Int_t GetPulseAmpRaw(UInt_t iPulse=0) const;
Int_t GetPulseTimeRaw(UInt_t iPulse=0) const;
Double_t GetPed() const;
Double_t GetPulseInt(UInt_t iPulse=0) const;
Double_t GetPulseAmp(UInt_t iPulse=0) const;
Double_t GetPulseTime(UInt_t iPulse=0) const;
Double_t GetSampleInt() const;
Double_t GetAdcTomV() const;
Double_t GetAdcTopC() const;
Double_t GetAdcTons() const;
void SetF250Params(Int_t NSA, Int_t NSB, Int_t NPED);
static const Double_t fNAdcChan; // Number of FADC channels in units of ADC channels
static const Double_t fAdcRange; // Dynamic range of FADCs in units of V, // TO-DO: Get fAdcRange from pre-start event
static const Double_t fAdcImpedence; // FADC input impedence in units of Ohms
static const Double_t fAdcTimeSample; // Length of FADC time sample in units of ps
static const Double_t fAdcTimeRes; // FADC time resolution in units of ns
Int_t fNPedestalSamples; // TODO: Get this from prestart event...
Int_t fNPeakSamples;
Double_t fPeakPedestalRatio;
Int_t fPed;
Int_t fPulseInt[fMaxNPulses];
Int_t fPulseAmp[fMaxNPulses];
Int_t fPulseTime[fMaxNPulses];
Int_t fSample[fMaxNSamples];
Bool_t fHasMulti;