Main Page   Class Hierarchy   Compound List   File List   Compound Members  

CalLog Class Reference

The CalLog class contains the information about a single calorimeter log. This class can handle either ADC values for all 4 digitizations, or a readout that has one "best" range. This class implements a LogId member which provides access to information on the position of the log within the calorimeter. More...

#include <CalLog.h>

Inheritance diagram for CalLog::

List of all members.

Public Types

enum  AdcRange { LowEnX4 = 0, LowEnX1, HiEnX8, HiEnX1 }
enum  LogFace { POS = 0, NEG }
enum  CalTrigMode { BESTRANGE = 0, ALLRANGE = 2 }

Public Methods

 CalLog ()
 CalLog (LogId &id)
virtual ~CalLog ()
Int_t Compare (const TObject *obj) const
 Root >= 3.0 is now const correct for the Compare function.

Bool_t IsSortable () const
UShort_t getAdc (LogFace face, short index) const
UShort_t getAdcSelectedRange (LogFace face, AdcRange range=LowEnX4) const
 Get ADC value for selected face and energy range.

UShort_t getRange (LogFace face, short index) const
const CalTrigMode getMode () const
 Retrieve readout mode.

Bool_t setAdcValue (UShort_t newVal, LogFace face, AdcRange range=LowEnX4)
Bool_t setAdcId (UShort_t newVal, LogFace face, AdcRange range=LowEnX4)
Bool_t setAdcPinId (UShort_t newVal, LogFace face, AdcRange range=LowEnX4)
Bool_t setAdcRangeScale (UShort_t newVal, LogFace face, AdcRange range=LowEnX4)
void setAdcWord (UShort_t newVal, LogFace face, AdcRange range=LowEnX4)
void setTriggerMode (CalTrigMode val)
LogIdgetLogId ()

Private Types

enum  {
  ADC_K_RS = 1, ADC_V_RS = 0, ADC_M_RS = ((1 << ADC_K_RS) - 1), ADC_K_PIN = 1,
  ADC_V_PIN = (ADC_K_RS + ADC_V_RS), ADC_M_PIN = ((1 << ADC_K_PIN) - 1), ADC_K_ID = 2, ADC_V_ID = (ADC_K_PIN + ADC_V_PIN),
  ADC_M_ID = ((1 << ADC_K_ID) - 1), ADC_K_VAL = 12, ADC_V_VAL = (ADC_K_ID + ADC_V_ID), ADC_M_VAL = ((1 << ADC_K_VAL) - 1)
}

Static Private Methods

UShort_t getAdc (UShort_t adcWord)
UShort_t getAdcId (UShort_t adcWord)
UShort_t getAdcPinId (UShort_t adcWord)
UShort_t getAdcRangeScale (UShort_t adcWord)
UShort_t getAdcRange (UShort_t adcWord)

Private Attributes

LogId m_log
UShort_t m_AdcValues [8]

Static Private Attributes

CalTrigMode m_mode
 Cal readout mode is based on trigger type.


Detailed Description

The CalLog class contains the information about a single calorimeter log. This class can handle either ADC values for all 4 digitizations, or a readout that has one "best" range. This class implements a LogId member which provides access to information on the position of the log within the calorimeter.


Member Enumeration Documentation

anonymous enum [private]
 

ADC word layout (defined in following enum):

_____________________________________________________
|15|  |  |      |  |  |  |  |  |  |  |04|03|02|01|00|
|__|__|__|__|___|__|__|__|__|__|__|__|__|__|__|__|
|               ADC Value               |  ID |PN|RS|
|_______________________________________|_____|__|__|

NOTES: *****

PN == Pin RS == Range Scale

PN & RS = Range


The documentation for this class was generated from the following files:
Generated on Wed Oct 31 11:20:18 2001 for digiRootData by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001