readWDpp
Read binary files from DRS and WDB
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
WDBEvent Class Reference

Specialization of DAQEvent to a WaveDREAM board. More...

#include <readWD.hh>

Inheritance diagram for WDBEvent:
DAQEvent

Static Public Attributes

static const std::string type_ = "WDB"
 

Additional Inherited Members

- Public Member Functions inherited from DAQEvent
DAQEventGetChannel (const int &, const int &)
 Select the channel to analyze.
 
void SetPedInterval (int, int)
 Function to set the interval where to perform pedestal evaluation.
 
void SetPeakThr (float)
 Set the threshold in volt by the user.
 
void SetIntWindow (int, int)
 Set the integration window passing two indices that go from 0 to SAMPLES_PER_WAVEFORM.
 
void SetIntWindow (float, float)
 Set the integration window passing time values in seconds.
 
void MakeConfig (DAQFile &file)
 Method to simply call DAQConfig::MakeConfig().
 
void ShowConfig ()
 Simple method to call DAQConfig::ShowConfig().
 
bool IsSaturated ()
 Check if in the selected channel there is (or not) saturation.
 
float GetCharge ()
 Method to evaluate charge in the integration region.
 
float GetAmplitude ()
 Method to evaluate amplitude in the integration region.
 
float GetTime (float)
 Find the time at which the waveform goes under a given threshold level.
 
float GetTimeCF (float)
 Find the time at which the waveform goes under a given percentage of the waveform peak value.
 
float GetRiseTime ()
 Evaluate the risetime of the waveform.
 
const std::pair< float, float > & GetPedestal ()
 Getter method read-only for the attribute DAQEvent::ped_.
 
const std::vector< float > & GetVolts ()
 Getter method read-only for the waveform's voltages selected.
 
const std::vector< float > & GetTimes ()
 Getter method read-only for the waveform's times selected.
 
const std::vector< int > & GetPeakIndices ()
 
const std::pair< int, int > & GetIntegrationBounds ()
 
const EventHeaderGetEH ()
 
const MAPGetVoltMap ()
 
const MAPGetTimeMap ()
 
- Protected Member Functions inherited from DAQEvent
 DAQEvent ()
 Construct a new DAQEvent() object.
 
DAQEventTimeCalibration (const unsigned short &, const std::vector< float > &, int, int)
 Function to perform the time calibration.
 
DAQEventEvalPedestal ()
 Method to evaluate the pedestal of the currently selected waveform.
 
DAQEventEvalIntegrationBounds ()
 Method to evaluate the integration window of the currently selected waveform.
 
DAQEventFindPeaks ()
 Method to find peaks in the integration window.
 
- Protected Attributes inherited from DAQEvent
MAP times_
 Structure to hold integrated times values of all boards and channels.
 
MAP volts_
 Structure to hold voltage values of all boards and channels.
 
EventHeader eh_
 
DAQConfig config_
 Class to hold settings about pedestal and integration window intervals.
 
std::pair< float, float > ped_
 Pair to hold pedestal mean and pedestal std.dev..
 
std::pair< float, float > peak_
 Pair to hold value of voltage and time at the peak.
 
std::pair< int, int > ped_interval_
 Pair to hold indices as boundary edges where pedestal is evaluated.
 
std::pair< int, int > iw_
 Pair to hold indices as boundary edges where integration is performed by DAQEvent::GetCharge().
 
std::pair< int, int > ch_
 Pair to hold indices of board and channel selected;.
 
std::vector< int > indexMin_
 Indices of local minima found.
 
bool is_init_
 Flag to check if the file is initialised.
 
bool is_getch_
 Flag to check if the method DAQEvent::GetChannel() has been called.
 
bool is_iw_
 Flag to check if integration window has been evaluated once.
 
bool is_ped_
 Flag to check if pedestal has been evaluated once.
 
bool is_peak_
 Flag to check if peaks have been found once.
 
float peak_threshold_
 Value to store the threshold in volts passed by the user.
 
unsigned int evtserial_old_
 Value to store last event read.
 
std::pair< int, int > ch_old_
 Pair to store last channel on which routines were made.
 
std::vector< bool > routine_
 

Detailed Description

Specialization of DAQEvent to a WaveDREAM board.

Examples
main3.cc.

Definition at line 202 of file readWD.hh.

Constructor & Destructor Documentation

◆ WDBEvent()

WDBEvent::WDBEvent ( )

Definition at line 769 of file readWD.cc.

Member Data Documentation

◆ type_

const string WDBEvent::type_ = "WDB"
static

Definition at line 206 of file readWD.hh.


The documentation for this class was generated from the following files: