Rcuxx::AltroDPCFG Struct Reference
[ALTRO interface classes]

#include <rcuxx/Altro.h>

Inheritance diagram for Rcuxx::AltroDPCFG:

Inheritance graph
Collaboration diagram for Rcuxx::AltroDPCFG:

Collaboration graph

List of all members.


Detailed Description

Interface to ALTRO register DPCFG - data path configuration.

Register containing configuration parameters for the BSU, MAU and ZSU. The table below shows in detail the function of each bit.

Public Member Functions

 AltroDPCFG (Rcu &rcu)
void Get ()
void Set ()
unsigned int FirstBMode () const
void SetFirstBMode (unsigned int val)
bool IsFirstBPol () const
void SetFirstBPol (bool on=true)
unsigned int SecondBPre () const
void SetSecondBPre (unsigned int val)
unsigned int SecondBPost () const
void SetSecondBPost (unsigned int val)
bool IsSecondBEnable () const
void SetSecondBEnable (bool on=true)
unsigned int ZSPre () const
void SetZSPre (unsigned int val)
unsigned int ZSPost () const
void SetZSPost (unsigned int val)
unsigned int ZSGlitch () const
void SetZSGlitch (unsigned int val)
bool IsZSEnable () const
void SetZSEnable (bool on=true)
virtual void Print () const

Protected Attributes

unsigned int f1stBMode
bool f1stBPol
unsigned int f2ndBPre
unsigned int f2ndBPost
bool f2ndBEnable
unsigned int fZSPre
unsigned int fZSPost
unsigned int fZSGlitch
bool fZSEnable


Constructor & Destructor Documentation

Rcuxx::AltroDPCFG::AltroDPCFG ( Rcu rcu  )  [inline]

Constructor.

Parameters:
imem Intstruction memory
rmem Result memory


Member Function Documentation

void Rcuxx::AltroDPCFG::Get (  )  [inline, virtual]

Get the values from internal cache after update.

Reimplemented from Rcuxx::AltroRegister.

References f1stBMode, f1stBPol, f2ndBEnable, f2ndBPost, f2ndBPre, Rcuxx::AltroRegister::fData, fZSEnable, fZSGlitch, fZSPost, and fZSPre.

void Rcuxx::AltroDPCFG::Set (  )  [inline, virtual]

Set the internal cache before commit.

Reimplemented from Rcuxx::AltroRegister.

References f1stBMode, f1stBPol, f2ndBEnable, f2ndBPost, f2ndBPre, Rcuxx::AltroRegister::fData, fZSEnable, fZSGlitch, fZSPost, and fZSPre.

unsigned int Rcuxx::AltroDPCFG::FirstBMode (  )  const [inline]

1st baseline mode

References f1stBMode.

void Rcuxx::AltroDPCFG::SetFirstBMode ( unsigned int  val  )  [inline]

1st baseline mode Valid modes are

bitshexMeaning
00000x0din-fpd
00010x1din-f(t)
00100x2din-f(din)
00110x3din-f(din-vpd)
01000x4din-vpd-fpd
01010x5din-vpd-f(t)
01100x6din-vpd-f(din)
01110x7din-vpd-f(din-vpd)
10000x8f(din)-fpd
10010x9f(din-vpd)-fpd
10100xAf(t)-fpd
10110xBf(t)-f(t)
11000xCf(din)-f(din)
11010xDf(din-vpd)-f(din-vpd)
11100xEdin-fpd
11110xFdin-fpd
The abbrivations have the following meaning:

  • din stands for the data stream coming from the ADC.
  • fpd stands for the fixed pedestal, a constant value stored in register VFPED that is to be subtracted from the ADC data stream (see AltroVFPED).
  • vpd stands for the self-calibrated pedestal value, that is, the average DC level that the ADC sees outside the acquisition window (i.e. when there is no signal from the gas chamber) (see AltroVFPED)
  • $ f(x)$ Look-up in pedestal memory with index $ x$. That is, for example
  • f(t) stands for the data of the Pedestal Memory, played back as a function of time for the duration of the acquisition after a L1 trigger is received. (Pattern Generator Mode).
  • f(din) stands for the data of the Pedestal Memory, played back a function of the ADC data at any time. (Look-up Table Mode).

References f1stBMode.

bool Rcuxx::AltroDPCFG::IsFirstBPol (  )  const [inline]

1's compliment

References f1stBPol.

void Rcuxx::AltroDPCFG::SetFirstBPol ( bool  on = true  )  [inline]

Parameters:
on Set 1's compliment to on or off

References f1stBPol.

unsigned int Rcuxx::AltroDPCFG::SecondBPre (  )  const [inline]

2nd baseline pre excl.

References f2ndBPre.

void Rcuxx::AltroDPCFG::SetSecondBPre ( unsigned int  val  )  [inline]

2nd baseline pre excl.

References f2ndBPre.

unsigned int Rcuxx::AltroDPCFG::SecondBPost (  )  const [inline]

2nd baseline post exclude

References f2ndBPost.

void Rcuxx::AltroDPCFG::SetSecondBPost ( unsigned int  val  )  [inline]

2nd baseline post exclude

References f2ndBPost.

bool Rcuxx::AltroDPCFG::IsSecondBEnable (  )  const [inline]

Is 2nd baseline correction enabled.

References f2ndBEnable.

void Rcuxx::AltroDPCFG::SetSecondBEnable ( bool  on = true  )  [inline]

Parameters:
on Set 2nd baseline correction to on or off

References f2ndBEnable.

unsigned int Rcuxx::AltroDPCFG::ZSPre (  )  const [inline]

Zero suppression pre samples.

References fZSPre.

void Rcuxx::AltroDPCFG::SetZSPre ( unsigned int  val  )  [inline]

Zero suppression pre samples.

References fZSPre.

unsigned int Rcuxx::AltroDPCFG::ZSPost (  )  const [inline]

Zero suppression post samples.

References fZSPost.

void Rcuxx::AltroDPCFG::SetZSPost ( unsigned int  val  )  [inline]

Zero suppression post samples.

References fZSPost.

unsigned int Rcuxx::AltroDPCFG::ZSGlitch (  )  const [inline]

Zero suppression glitch mode.

References fZSGlitch.

void Rcuxx::AltroDPCFG::SetZSGlitch ( unsigned int  val  )  [inline]

Zero suppression glitch mode Mode can be one of.

bitshexMeaning
000x0din-fpd
010x1din-f(t)
100x2din-f(din)
110x3din-f(din-vpd)
See the member function AltroDPCG::SetFirstBMode for the meaning of the abbriviations.

References fZSGlitch.

bool Rcuxx::AltroDPCFG::IsZSEnable (  )  const [inline]

Is zero suppression enabled.

References fZSEnable.

void Rcuxx::AltroDPCFG::SetZSEnable ( bool  on = true  )  [inline]

Parameters:
on Set zero suppression to on or off

References fZSEnable.

virtual void Rcuxx::AltroDPCFG::Print (  )  const [inline, virtual]

Print contents of this register.

Reimplemented from Rcuxx::AltroRegister.

References f1stBMode, f1stBPol, f2ndBEnable, f2ndBPost, f2ndBPre, fZSEnable, fZSGlitch, fZSPost, fZSPre, and Rcuxx::AltroRegister::Print().


Member Data Documentation

unsigned int Rcuxx::AltroDPCFG::f1stBMode [protected]

Mode.

Referenced by FirstBMode(), Get(), Print(), Set(), and SetFirstBMode().

bool Rcuxx::AltroDPCFG::f1stBPol [protected]

1's compliment

Referenced by Get(), IsFirstBPol(), Print(), Set(), and SetFirstBPol().

unsigned int Rcuxx::AltroDPCFG::f2ndBPre [protected]

Pre excl.

Referenced by Get(), Print(), SecondBPre(), Set(), and SetSecondBPre().

unsigned int Rcuxx::AltroDPCFG::f2ndBPost [protected]

Post excl.

Referenced by Get(), Print(), SecondBPost(), Set(), and SetSecondBPost().

Enable 2nd baseline correction.

Referenced by Get(), IsSecondBEnable(), Print(), Set(), and SetSecondBEnable().

unsigned int Rcuxx::AltroDPCFG::fZSPre [protected]

pre samples

Referenced by Get(), Print(), Set(), SetZSPre(), and ZSPre().

unsigned int Rcuxx::AltroDPCFG::fZSPost [protected]

post samples

Referenced by Get(), Print(), Set(), SetZSPost(), and ZSPost().

unsigned int Rcuxx::AltroDPCFG::fZSGlitch [protected]

Glitch moe.

Referenced by Get(), Print(), Set(), SetZSGlitch(), and ZSGlitch().

bool Rcuxx::AltroDPCFG::fZSEnable [protected]

enable

Referenced by Get(), IsZSEnable(), Print(), Set(), and SetZSEnable().


The documentation for this struct was generated from the following file:
Top of page Last update Wed Jun 4 00:47:15 2008
Copyright © 2004 Christian Holm Created by DoxyGen 1.5.6