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

CalDigi Class Reference

Digitizations for Cal. More...

#include <CalDigi.h>

Inheritance diagram for CalDigi:

ContainedObject List of all members.

Public Types

enum  AdcRange { LEX8 = 0, LEX1, HEX8, HEX1 }
 each log end can report four energy ranges. More...

enum  CalTrigMode { BESTRANGE = 0, ALLRANGE = 2 }
 readout can be either best-of-four energy ranges or all energy ranges. More...

enum  { POS_OFFSET = 14, RANGE_OFFSET = 12, RANGE_MASK = 0x3000, ADC_VAL_MASK = 0xfff }
 shifts and masks for packed readout of energy range and Adc value. More...


Public Methods

 CalDigi ()
 CalDigi (CalTrigMode mode, idents::CalLogId CalLogId, ObjectVector<CalLogReadout> readout)
virtual ~CalDigi ()
 Destructor. More...

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

const CalTrigMode getMode () const
 Retrieve readout mode. More...

const idents::CalLogId getPackedId () const
 Retrieve log identifier. More...

char getRange (short readoutIndex, CalLogReadout::LogFace face) const
 Retrieve energy range for selected face and readout. More...

short getAdc (short readoutIndex, CalLogReadout::LogFace face) const
 Retrieve pulse height for selected face and readout. More...

const CalLogReadoutgetLogReadout (short readoutIndex)
 Retrieve ranges and pulse heights from both ends of selected readout. More...

short getAdcSelectedRange (char range, CalLogReadout::LogFace face) const
 Retrieve pulse height from selected range. More...

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 Attributes

CalTrigMode m_mode
 Cal readout mode is based on trigger type. More...

idents::CalLogId m_logId
 Cal ID. More...

ObjectVector<CalLogReadoutm_readout
 ranges and pulse heights. More...


Detailed Description

Digitizations for Cal.

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

Author: J. Eric Grove, 23 Feb 2001

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

Definition at line 99 of file CalDigi.h.


Member Enumeration Documentation

anonymous enum
 

shifts and masks for packed readout of energy range and Adc value.

Enumeration values:
POS_OFFSET  
RANGE_OFFSET  
RANGE_MASK  
ADC_VAL_MASK  

Definition at line 119 of file CalDigi.h.

enum CalDigi::AdcRange
 

each log end can report four energy ranges.

Enumeration values:
LEX8  
LEX1  
HEX8  
HEX1  

Definition at line 103 of file CalDigi.h.

enum CalDigi::CalTrigMode
 

readout can be either best-of-four energy ranges or all energy ranges.

Enumeration values:
BESTRANGE  
ALLRANGE  

Definition at line 112 of file CalDigi.h.


Constructor & Destructor Documentation

CalDigi::CalDigi ( ) [inline]
 

Definition at line 123 of file CalDigi.h.

CalDigi::CalDigi ( CalTrigMode mode,
idents::CalLogId CalLogId,
ObjectVector< CalLogReadout > readout ) [inline]
 

Definition at line 125 of file CalDigi.h.

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

Destructor.

Definition at line 132 of file CalDigi.h.


Member Function Documentation

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

Retrieve reference to class definition structure.

Definition at line 135 of file CalDigi.h.

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

Definition at line 136 of file CalDigi.h.

Referenced by clID().

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

Fill the ASCII output stream.

Definition at line 230 of file CalDigi.h.

short CalDigi::getAdc ( short readoutIndex,
CalLogReadout::LogFace face ) const [inline]
 

Retrieve pulse height for selected face and readout.

Definition at line 151 of file CalDigi.h.

Referenced by fillStream().

short CalDigi::getAdcSelectedRange ( char range,
CalLogReadout::LogFace face ) const [inline]
 

Retrieve pulse height from selected range.

Definition at line 163 of file CalDigi.h.

const CalLogReadout * CalDigi::getLogReadout ( short readoutIndex ) [inline]
 

Retrieve ranges and pulse heights from both ends of selected readout.

Definition at line 157 of file CalDigi.h.

const CalTrigMode CalDigi::getMode ( ) const [inline]
 

Retrieve readout mode.

Definition at line 139 of file CalDigi.h.

const idents::CalLogId CalDigi::getPackedId ( ) const [inline]
 

Retrieve log identifier.

Definition at line 142 of file CalDigi.h.

char CalDigi::getRange ( short readoutIndex,
CalLogReadout::LogFace face ) const [inline]
 

Retrieve energy range for selected face and readout.

Definition at line 145 of file CalDigi.h.

Referenced by fillStream().

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

Serialize the object for reading.

Definition at line 212 of file CalDigi.h.

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

Serialize the object for writing.

Definition at line 197 of file CalDigi.h.


Member Data Documentation

idents::CalLogId CalDigi::m_logId [private]
 

Cal ID.

Definition at line 184 of file CalDigi.h.

CalTrigMode CalDigi::m_mode [private]
 

Cal readout mode is based on trigger type.

Definition at line 182 of file CalDigi.h.

ObjectVector< CalLogReadout > CalDigi::m_readout [private]
 

ranges and pulse heights.

Definition at line 186 of file CalDigi.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