ChannelMeasurement Class Reference

#include <TV1730DppData.hxx>

Collaboration diagram for ChannelMeasurement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool GetDualTraceEnabled ()
 See CAEN DPP manual for definition of all these variables.
bool GetChargeEnabled ()
bool GetTimeEnabled ()
bool GetBaselineEnabled ()
bool GetSamplesEnabled ()
int GetNSamples ()
int GetChannel ()
uint32_t GetSample (int i)
 Get Errors.
void AddSamples (std::vector< uint32_t > Samples)

Private Member Functions

 ChannelMeasurement (int chan, uint32_t iheader0, uint32_t iheader1)
 Constructor; need to pass in header and measurement.

Private Attributes

int fChan
uint32_t header0
uint32_t header1
std::vector< uint32_t > fSamples

Friends

class TV1730DppData

Detailed Description

Class for each channel measurement For the definition of obscure variables see the CAEN V1730 manual (for DPP readout).

Definition at line 10 of file TV1730DppData.hxx.


Constructor & Destructor Documentation

ChannelMeasurement::ChannelMeasurement ( int  chan,
uint32_t  iheader0,
uint32_t  iheader1 
) [inline, private]

Constructor; need to pass in header and measurement.

Definition at line 50 of file TV1730DppData.hxx.

References fChan, header0, and header1.

00050                                                                     {
00051                 fChan = chan;
00052                 header0 = iheader0;
00053                 header1 = iheader1;
00054         }


Member Function Documentation

void ChannelMeasurement::AddSamples ( std::vector< uint32_t >  Samples  )  [inline]

Definition at line 39 of file TV1730DppData.hxx.

References fSamples.

Referenced by TV1730DppData::TV1730DppData().

00039                                                     {
00040                 fSamples = Samples;
00041         }

Here is the caller graph for this function:

bool ChannelMeasurement::GetBaselineEnabled (  )  [inline]

Definition at line 20 of file TV1730DppData.hxx.

References header1.

00020 {return (header1 & 0x10000000) >> 28;}

int ChannelMeasurement::GetChannel (  )  [inline]

Definition at line 30 of file TV1730DppData.hxx.

References fChan.

00030 { return fChan;}

bool ChannelMeasurement::GetChargeEnabled (  )  [inline]

Definition at line 18 of file TV1730DppData.hxx.

References header1.

00018 {return (header1 & 0x40000000) >> 30;}

bool ChannelMeasurement::GetDualTraceEnabled (  )  [inline]

See CAEN DPP manual for definition of all these variables.

Definition at line 17 of file TV1730DppData.hxx.

References header1.

00017 {return (header1 & 0x80000000) >> 31;}

int ChannelMeasurement::GetNSamples (  )  [inline]

Definition at line 22 of file TV1730DppData.hxx.

References fSamples, and header1.

00022                          {
00023                 int header_size = (header1 & 0xfff)*8;
00024                 if(header_size != fSamples.size())
00025                         std::cerr << "v17390::ChannelMeasurement N samples doesn't match!!" 
00026                                                                 << header_size << " " << fSamples.size() <<std::endl;
00027                 return header_size;
00028         }

uint32_t ChannelMeasurement::GetSample ( int  i  )  [inline]

Get Errors.

Definition at line 33 of file TV1730DppData.hxx.

References fSamples.

00033                            {
00034                 if(i >= 0 && i < fSamples.size())
00035                         return fSamples[i];
00036                 return 9999999;
00037         }

bool ChannelMeasurement::GetSamplesEnabled (  )  [inline]

Definition at line 21 of file TV1730DppData.hxx.

References header1.

00021 {return (header1 & 0x08000000) >> 27;}

bool ChannelMeasurement::GetTimeEnabled (  )  [inline]

Definition at line 19 of file TV1730DppData.hxx.

References header1.

00019 {return (header1 & 0x20000000) >> 29;}


Friends And Related Function Documentation

friend class TV1730DppData [friend]

Definition at line 12 of file TV1730DppData.hxx.


Member Data Documentation

Definition at line 45 of file TV1730DppData.hxx.

Referenced by ChannelMeasurement(), and GetChannel().

std::vector<uint32_t> ChannelMeasurement::fSamples [private]

Definition at line 56 of file TV1730DppData.hxx.

Referenced by AddSamples(), GetNSamples(), and GetSample().

uint32_t ChannelMeasurement::header0 [private]

Definition at line 46 of file TV1730DppData.hxx.

Referenced by ChannelMeasurement().

uint32_t ChannelMeasurement::header1 [private]

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

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1