processed information for each channel and pointers to raw data More...
#include <ChannelData.hh>
Public Types | |
| enum | ID_TYPES { CH_INVALID = -1, CH_SUM = -2 } |
Define some 'fake' channel types. | |
Public Member Functions | |
| void | Clear () |
| TGraph * | GetTGraph (bool baseline_subtracted=false, int downsample=1) const |
| Get a TGraph for drawing. Needs to be deleted. | |
| void | Draw (bool baseline_subtracted=false, int downsample=1, bool autoscalex=true, bool autoscaley=true, double xmin=0, double xmax=0, double ymin=0, double ymax=0) |
| Draw the channel on the current canvas. | |
| void | Print (int verbosity) |
| Print the channel information. | |
| int | TimeToSample (double time, bool checkrange=false) |
| Convert a time in us to sample index. If checkrange, make sure that it is a valid sample number. | |
| double | SampleToTime (int sample) |
| Convert a sample index to time in us. | |
| const double * | GetWaveform () const |
| Get a pointer to the channel's waveform data, preserver const-ness. | |
| double * | GetWaveform () |
| Get a pointer to the channel's waveform data non-constly. | |
| const double * | GetBaselineSubtractedWaveform () const |
| Get a pointer to the waveform data after baseline subtraction constly. | |
| double * | GetBaselineSubtractedWaveform () |
| Get a pointer to the waveform data after baseline subtraction. | |
| const double * | GetIntegralWaveform () const |
| Get a pointer to the waveform data after integration. | |
| double * | GetIntegralWaveform () |
| Get a pointer to the waveform data after integration constly. | |
| double | GetVerticalRange () const |
| Get the maximum vertical range of the digitizer. | |
Public Attributes | |
| int | board_id |
| id of the board the channel is on | |
| int | board_num |
| number board is on in this event | |
| int | channel_num |
| number of the channel on the board | |
| int | channel_id |
| global unique channel id: 10*board_id + channel_num; | |
| std::string | label |
| helpful label for each channel | |
| uint64_t | timestamp |
| trigger time for this channel (ns since run start) | |
| int | sample_bits |
| digitizer resolution, needed for readout | |
| double | sample_rate |
| samples per microsecondf | |
| int | trigger_index |
| sample at which trigger occurred | |
| int | nsamps |
| number of samples in the waveform | |
| double | smoothed_min |
| global minimum of smoothed data | |
| double | smoothed_max |
| global maximum of smoothed data | |
| std::vector< double > | generic |
| vector for generic data for testing | |
| bool | saturated |
| Did the signal hit the max or min range of the digitizer? | |
| double | maximum |
| Maximum value obtained by channel over range. | |
| double | minimum |
| Minimum value obtained by channel over range. | |
| double | max_time |
| time in us at which signal first achieved max | |
| double | min_time |
| time in us at which signal first achieved min | |
| const char * | channel_start |
| pointer to start of waveform | |
| const char * | channel_end |
| pointer to end of waveform | |
| double | spe_mean |
| mean photoelectron response read from database | |
| double | spe_sigma |
| std::vector< double > | waveform |
| Raw waveform as a double array. | |
|
std::vector< std::pair< int, int > > | unsuppressed_regions |
| list of begin,end sample of non-zero-suppressed regions in the waveform | |
| Baseline | baseline |
| information about the channel's baseline | |
| std::vector< double > | subtracted_waveform |
| Channel waveform after baseline subtraction. | |
| int | npulses |
| number of pulses found | |
| std::vector< Pulse > | pulses |
| vector of individual pulses found | |
| std::vector< Roi > | regions |
| vector of ROIs for simple analysis | |
| TOF | tof |
| information about the channel's signal arrival | |
| std::vector< double > | derivative |
| Derivative of channel's waveform. | |
| std::vector< double > | smoothed_data |
| data smoothed over moving average | |
| std::vector< Spe > | single_pe |
| vector of single photoelectron responses | |
| std::vector< Unspikes > | unspikes |
| number rising edges found by eTrainFinder | |
| std::vector< double > | integral |
| Integral of the channel's waveform. | |
| double | integral_max |
| maximum value of integral along entire trigger | |
| double | integral_min |
| minimum value of integral along entire trigger | |
| int | integral_max_index |
| sample index at which max integral occurs | |
| int | integral_min_index |
| sample index at which min integral occurs | |
| double | integral_max_time |
| time at which max integral occurs | |
| double | integral_min_time |
| time at which min integral occurs | |
| double | s1_full |
| s1 for this chan evaluated over full pulse window | |
| double | s2_full |
| s2 for this chan evaluated over full pulse window | |
| double | s1_fixed |
| s1 for this chan evaluated over fixed window | |
| double | s2_fixed |
| s2 for this chan evaluated over fixed window | |
processed information for each channel and pointers to raw data
Definition at line 32 of file ChannelData.hh.
| void ChannelData::Clear | ( | ) | [inline] |
reset all members
Definition at line 136 of file ChannelData.hh.
1.6.1