TL2249Data Class Reference

Class for storing data from LeCroy 2249 module. More...

#include <TL2249Data.hxx>

Inheritance diagram for TL2249Data:
Inheritance graph
[legend]
Collaboration diagram for TL2249Data:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TL2249Data (int bklen, int bktype, const char *name, void *pdata)
 Constructor.
void Print ()
 Print the bank contents in a structured way.
std::vector< LADCMeasurement > & GetMeasurements ()
 Get the Vector of ADC Measurements.
const uint16_t * GetData16 () const
const uint32_t * GetData32 () const
const uint64_t * GetData64 () const
int GetSize () const
int GetType () const
std::string GetName () const
void Dump ()
 Dump the bank contents in an unstructured way.

Private Attributes

std::vector< LADCMeasurementfMeasurements
 Vector of ADC Measurements.

Detailed Description

Class for storing data from LeCroy 2249 module.

Definition at line 37 of file TL2249Data.hxx.


Constructor & Destructor Documentation

TL2249Data::TL2249Data ( int  bklen,
int  bktype,
const char *  name,
void *  pdata 
)

Constructor.

Definition at line 5 of file TL2249Data.cxx.

References fMeasurements, TGenericData::GetData16(), and TGenericData::GetSize().

00005                                                                           :
00006   TGenericData(bklen, bktype, name, pdata)
00007 {
00008   
00009   for(int i = 0; i < GetSize(); i++){
00010     
00011     uint32_t word = GetData16()[i];
00012     fMeasurements.push_back(LADCMeasurement(i,word));
00013 
00014   }    
00015 
00016 }

Here is the call graph for this function:


Member Function Documentation

void TGenericData::Dump (  )  [inline, inherited]

Dump the bank contents in an unstructured way.

Definition at line 39 of file TGenericData.hxx.

References TGenericData::GetData32(), TGenericData::GetName(), and TGenericData::GetSize().

Referenced by TGenericData::Print().

00039              {
00040 
00041     std::cout << "Generic decoder for bank named " <<  GetName().c_str() << std::endl;
00042     for(int i = 0; i < GetSize(); i++){
00043       std::cout << std::hex << "0x" << GetData32()[i] << std::dec << std::endl;
00044     }
00045 
00046   }

Here is the call graph for this function:

Here is the caller graph for this function:

const uint16_t* TGenericData::GetData16 (  )  const [inline, inherited]

Definition at line 24 of file TGenericData.hxx.

References TGenericData::fData.

Referenced by TL2249Data().

00024 { return reinterpret_cast<const uint16_t*>(fData); }

Here is the caller graph for this function:

const uint32_t* TGenericData::GetData32 (  )  const [inline, inherited]
const uint64_t* TGenericData::GetData64 (  )  const [inline, inherited]

Definition at line 30 of file TGenericData.hxx.

References TGenericData::fData.

Referenced by TAgilentHistograms::UpdateHistograms().

00030 { return reinterpret_cast<const uint64_t*>(fData); }

Here is the caller graph for this function:

std::vector<LADCMeasurement>& TL2249Data::GetMeasurements (  )  [inline]

Get the Vector of ADC Measurements.

Definition at line 49 of file TL2249Data.hxx.

References fMeasurements.

Referenced by TL2249Histograms::UpdateHistograms().

00049 {return fMeasurements;}

Here is the caller graph for this function:

std::string TGenericData::GetName (  )  const [inline, inherited]
int TGenericData::GetSize (  )  const [inline, inherited]

Definition at line 32 of file TGenericData.hxx.

References TGenericData::fSize.

Referenced by TGenericData::Dump(), TL2249Data(), TMesytecData::TMesytecData(), TV1190Data::TV1190Data(), and TV792Data::TV792Data().

00032 {return fSize;}

Here is the caller graph for this function:

int TGenericData::GetType (  )  const [inline, inherited]

Definition at line 34 of file TGenericData.hxx.

References TGenericData::fBankType.

00034 {return fBankType;}

void TL2249Data::Print (  )  [virtual]

Print the bank contents in a structured way.

Reimplemented from TGenericData.

Definition at line 18 of file TL2249Data.cxx.

References fMeasurements, and TGenericData::GetName().

00018                       {
00019 
00020   std::cout << "L2249 decoder for bank " << GetName().c_str() << std::endl;
00021   
00022   for(int i = 0; i < (int)fMeasurements.size(); i++){
00023     std::cout << "chan " << i  << " meas = " << fMeasurements[i].GetMeasurement() << " " ;
00024   }
00025   std::cout << std::endl;
00026 
00027 
00028 
00029 }

Here is the call graph for this function:


Member Data Documentation

Vector of ADC Measurements.

Definition at line 55 of file TL2249Data.hxx.

Referenced by GetMeasurements(), Print(), and TL2249Data().


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

Generated on 12 Feb 2016 for ROOT Analyzer by  doxygen 1.6.1