fdhwlib  2.0.25
SltMultiplicity Class Reference

#include <sltmultiplicity.h>

Inheritance diagram for SltMultiplicity:
SltMemory Pbus

List of all members.

Public Member Functions


Detailed Description

The stores trigger information with a high time resolution but low spatial resolution.

Every long word of the memory block contains 4 bytes with 4 multiplicity values each of 6 bit length.

Definition at line 30 of file sltmultiplicity.h.


Constructor & Destructor Documentation

SltMultiplicity::SltMultiplicity ( const char *  name,
int  slotID,
unsigned long  regID,
int  len 
)
SltMultiplicity::~SltMultiplicity ( )

Member Function Documentation

void SltMultiplicity::clear ( int  page,
unsigned long  data = 0 
)

Write a constant value (default 0) to the multiplicity memory.

Reimplemented from SltMemory.

int SltMultiplicity::getLength ( )

Number of long words required for one page of multiplicity data.

Reimplemented from SltMemory.

char* SltMultiplicity::getName ( )

Name of the muliplicity memory.

Reimplemented from SltMemory.

void SltMultiplicity::read ( int  page,
unsigned long *  data 
)

Read one page of multiplicity data.

Parameters:
pagePages number (0..SLT_PAGES-1)
dataArray to store the multiplicity values The size of the array has to equal the length of the memory (use SltMultiplicity::getLength).

Reimplemented from SltMemory.

void SltMultiplicity::read ( int  page,
int  start,
unsigned long *  data 
)

Read one page of multiplicity data with a arbitrary start point.

Parameters:
pagePage number
start0...999 (Use SltTime::fltAddr)
dataArray with the returned data

Reimplemented from SltMemory.

void SltMultiplicity::read ( int  page,
int  start,
unsigned long *  data,
int  n 
)

Read a portion of multiplicity data with a arbitrary start point.

Parameters:
pagePage number
start0...999 (Use SltTime::fltAddr)
dataArray with the returned data. The array has be at least of length n
n0..1000 Number of the requested multiplicity data

Reimplemented from SltMemory.

unsigned long SltMultiplicity::read ( int  page,
unsigned long  addr 
)

Read a single long word from the multiplicity memory.

Reimplemented from SltMemory.

void SltMultiplicity::read ( int  page,
unsigned char *  data 
)

Read the multiplicity and store it directly in an array with characters.

void SltMultiplicity::read ( int  page,
int  start,
unsigned char *  data 
)

Read the multiplicity and store it directly in an array with characters.

Parameters:
pagePage number
start0...999 (Use SltTime::fltAddr)
dataArray with the returned data
void SltMultiplicity::read ( int  page,
int  start,
unsigned char *  data,
int  n 
)

Read the multiplicity and store it directly in an array with characters.

Note: This function will read the whole array but the resulting array can be smaller.

Parameters:
pagePage number
start0...999 (Use SltTime::fltAddr)
dataArray with the returned data. The array has to be at least of length n
nNumber of requested multiplicity data
void SltMultiplicity::write ( int  page,
unsigned long *  data 
)

Write to the multiplicity memory of a page.

Reimplemented from SltMemory.

void SltMultiplicity::write ( int  page,
unsigned long  addr,
unsigned long  data 
)

Write a single long word - this contains four multiplicity values.

Reimplemented from SltMemory.


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