Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

AcdDigi Class Reference

Digitizations for ACD. More...

#include <AcdDigi.h>

Inheritance diagram for AcdDigi:

ContainedObject List of all members.

Public Methods

 AcdDigi ()
 AcdDigi (idents::AcdId id, int pulseHeight, bool veto, bool lowThresh, bool highThresh)
virtual ~AcdDigi ()
 Destructor. More...

virtual const CLID& clID () const
 Retrieve reference to class definition structure. More...

const idents::AcdId ID () const
 Retrieve digi identifier. More...

int PulseHeight () const
 Retrieve pulse height. More...

bool Veto () const
bool LowThreshold () const
bool HighThreshold () const
virtual StreamBuffer& serialize ( StreamBuffer& s ) const
 Serialize the object for writing. More...

virtual StreamBuffer& serialize ( StreamBuffer& s )
 Serialize the object for reading. More...

virtual std::ostream& fillStream ( std::ostream& s ) const
 Fill the ASCII output stream. More...


Static Public Methods

const CLID& classID ()

Private Types

enum  {
  ADC_K_VETO = 1, ADC_V_VETO = 12, ADC_M_VETO = ((1 << ADC_K_VETO) - 1), ADC_K_LOWTHRESH = 1,
  ADC_V_LOWTHRESH = 13, ADC_M_LOWTHRESH = ((1 << ADC_K_LOWTHRESH) - 1), ADC_K_HIGHTHRESH = 1, ADC_V_HIGHTHRESH = 14,
  ADC_M_HIGHTHRESH = ((1 << ADC_K_HIGHTHRESH) - 1)
}

Private Attributes

idents::AcdId m_ID
 Acd ID. More...

unsigned short m_pulseHeight
 pulse height. More...

bool m_veto
 nominal Acd veto signal. More...

bool m_lowThreshold
 1 bit Low threshold discriminator - enables the PHA. More...

bool m_highThreshold
 1 bit High threshold discriminator - used for calibration of the CAL. More...

unsigned short m_packedPHA
 packed PHA word, containing status bits and PHA for PDS. More...


Detailed Description

Digitizations for ACD.

------------------------------------------------------------------------------

Initial Implementation by Richard Dubois Additions by Heather Kelly

Note the usage of AcdId, this will be replaced by the new AcdId class under development.

There are no set methods in this class, users are expected to fill the data members through the constructor.

ACDDigi represents the output from one phototube. The bits are organized as follows: __________________________________________________________ |15 | 14 | 13 | 12 |11| | | | | | | | | | |00| |__ |_____ |__ ___|____|__|__|__|__|__|__|__|__|__|__|__|__| | | HI | LOW |VETO| PHA Value | |___|THRESH|THRESH|____|___________________________________|

Low Threshold enables the PHA value Veto Threshold nominal ACD veto signal High Threshold is for CAL calibration - CNO

------------------------------------------------------------------------------

Definition at line 48 of file AcdDigi.h.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
ADC_K_VETO  
ADC_V_VETO  
ADC_M_VETO  
ADC_K_LOWTHRESH  
ADC_V_LOWTHRESH  
ADC_M_LOWTHRESH  
ADC_K_HIGHTHRESH  
ADC_V_HIGHTHRESH  
ADC_M_HIGHTHRESH  

Definition at line 100 of file AcdDigi.h.


Constructor & Destructor Documentation

AcdDigi::AcdDigi ( ) [inline]
 

Definition at line 51 of file AcdDigi.h.

AcdDigi::AcdDigi ( idents::AcdId id,
int pulseHeight,
bool veto,
bool lowThresh,
bool highThresh ) [inline]
 

Definition at line 53 of file AcdDigi.h.

AcdDigi::~AcdDigi ( ) [inline, virtual]
 

Destructor.

Definition at line 69 of file AcdDigi.h.


Member Function Documentation

bool AcdDigi::HighThreshold ( ) const [inline]
 

Definition at line 85 of file AcdDigi.h.

const idents::AcdId AcdDigi::ID ( ) const [inline]
 

Retrieve digi identifier.

Definition at line 76 of file AcdDigi.h.

bool AcdDigi::LowThreshold ( ) const [inline]
 

Definition at line 83 of file AcdDigi.h.

int AcdDigi::PulseHeight ( ) const [inline]
 

Retrieve pulse height.

Definition at line 79 of file AcdDigi.h.

bool AcdDigi::Veto ( ) const [inline]
 

Definition at line 81 of file AcdDigi.h.

const CLID & AcdDigi::clID ( ) const [inline, virtual]
 

Retrieve reference to class definition structure.

Definition at line 72 of file AcdDigi.h.

const CLID & AcdDigi::classID ( ) [inline, static]
 

Definition at line 73 of file AcdDigi.h.

Referenced by clID().

std::ostream & AcdDigi::fillStream ( std::ostream & s ) const [inline, virtual]
 

Fill the ASCII output stream.

Definition at line 171 of file AcdDigi.h.

StreamBuffer & AcdDigi::serialize ( StreamBuffer & s ) [inline, virtual]
 

Serialize the object for reading.

Definition at line 149 of file AcdDigi.h.

StreamBuffer & AcdDigi::serialize ( StreamBuffer & s ) const [inline, virtual]
 

Serialize the object for writing.

Definition at line 139 of file AcdDigi.h.


Member Data Documentation

idents::AcdId AcdDigi::m_ID [private]
 

Acd ID.

Definition at line 117 of file AcdDigi.h.

bool AcdDigi::m_highThreshold [private]
 

1 bit High threshold discriminator - used for calibration of the CAL.

Definition at line 125 of file AcdDigi.h.

bool AcdDigi::m_lowThreshold [private]
 

1 bit Low threshold discriminator - enables the PHA.

Definition at line 123 of file AcdDigi.h.

unsigned short AcdDigi::m_packedPHA [private]
 

packed PHA word, containing status bits and PHA for PDS.

Definition at line 127 of file AcdDigi.h.

unsigned short AcdDigi::m_pulseHeight [private]
 

pulse height.

Definition at line 119 of file AcdDigi.h.

bool AcdDigi::m_veto [private]
 

nominal Acd veto signal.

Definition at line 121 of file AcdDigi.h.


The documentation for this class was generated from the following file:
Generated at Wed Nov 21 12:22:51 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000