1 #ifndef HADAQ_ADCPROCESSOR_H
2 #define HADAQ_ADCPROCESSOR_H
4 #include "hadaq/SubProcessor.h"
6 #include "hadaq/AdcMessage.h"
7 #include "hadaq/AdcSubEvent.h"
52 std::vector<ChannelRec>
fCh;
62 double samplingPeriod = 1000.0e-9/80);
Memory management class.
Definition: Buffer.h:49
Event - collection of several subevents.
Definition: Event.h:17
This is specialized sub-processor for ADC addon.
Definition: AdcProcessor.h:21
const double fSamplingPeriod
ADC sampling period in seconds.
Definition: AdcProcessor.h:46
AdcProcessor(TrbProcessor *trb, unsigned subid, unsigned numchannels=48, double samplingPeriod=1000.0e-9/80)
constructor
Definition: AdcProcessor.cxx:21
virtual bool SecondBufferScan(const base::Buffer &buf)
Scan buffer for selecting messages inside trigger window.
Definition: AdcProcessor.cxx:67
virtual void CreateBranch(TTree *)
create branch
Definition: AdcProcessor.cxx:197
virtual bool FirstBufferScan(const base::Buffer &buf)
Scan all messages, find reference signals if returned false, buffer has error and must be discarded.
Definition: AdcProcessor.cxx:56
static std::vector< double > storage
storage
Definition: AdcProcessor.h:48
std::vector< ChannelRec > fCh
! histogram for individual channels
Definition: AdcProcessor.h:52
virtual ~AdcProcessor()
desructor
Definition: AdcProcessor.cxx:50
virtual void ResetStore()
reset store
Definition: AdcProcessor.cxx:223
virtual void Store(base::Event *)
store
Definition: AdcProcessor.cxx:206
base::H1handle fKinds
! kinds of messages
Definition: AdcProcessor.h:50
std::vector< hadaq::AdcMessage > * pStoreVect
! pointer on store vector
Definition: AdcProcessor.h:55
std::vector< hadaq::AdcMessage > fStoreVect
! dummy empty vector
Definition: AdcProcessor.h:54
base::H1handle fChannels
! histogram with messages per channel
Definition: AdcProcessor.h:51
unsigned NumChannels() const
number of channels
Definition: AdcProcessor.h:66
Abstract processor of HADAQ sub-sub-event.
Definition: SubProcessor.h:26
TRB processor.
Definition: TrbProcessor.h:46
Channel record.
Definition: AdcProcessor.h:28
base::H1handle fHCoarseTiming
! ADC samples since trigger detected
Definition: AdcProcessor.h:42
base::H2handle fHWaveform
! histogram of integrated raw waveform of channel (debug)
Definition: AdcProcessor.h:39
base::H1handle fHFineTiming
! histogram of timing of single channel to trigger
Definition: AdcProcessor.h:43
base::H1handle fHIntegral
! histogram of integrals from CFD feature extraction
Definition: AdcProcessor.h:40
base::H1handle fHValues
! histogram of values distribution in channel
Definition: AdcProcessor.h:38
base::H2handle fHSamples
! histogram of fine timings from CFD feature extraction
Definition: AdcProcessor.h:41