AliFMDAltroIO Class Reference
[Basic classes]

#include <FMD/AliFMDAltroIO.h>

Inheritance diagram for AliFMDAltroIO:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for ALTRO Input/Output classes.

Definition at line 18 of file AliFMDAltroIO.h.

Public Types

typedef long long W40_t
typedef Int_t W10_t
enum  {
  kNoError, kBadFile, kBadBits, kBadRead,
  kBadWrite, kBadSeek, kBadTell, kBadTrailer,
  kBadFill
}

Public Member Functions

 AliFMDAltroIO ()
virtual ~AliFMDAltroIO ()
const char * ErrorString (Int_t err) const

Static Public Attributes

static const W40_t fgkTrailerMask

Protected Member Functions

virtual W40_t ConcatW40 (size_t n, const W10_t &w) const
virtual W10_t ExtractW10 (size_t n, const W40_t w) const
 ClassDef (AliFMDAltroIO, 0)

Protected Attributes

W40_t fBuffer
Int_t fIBuffer


Member Typedef Documentation

typedef Int_t AliFMDAltroIO::W10_t
 

Type of 10 bit words (signed)

Definition at line 24 of file AliFMDAltroIO.h.

typedef long long AliFMDAltroIO::W40_t
 

Type of 40 bit words (signed)

Definition at line 22 of file AliFMDAltroIO.h.


Member Enumeration Documentation

anonymous enum
 

Error states

Enumerator:
kNoError  No error
kBadFile  Bad state after open/close file
kBadBits  Bad bit offset specified
kBadRead  Bad state after reading from file
kBadWrite  Bad state after writing to file
kBadSeek  Bad state after seeking in file
kBadTell  Could not tell position in file
kBadTrailer  Bad trailer 40 bit word in file
kBadFill  Bad fill word in file

Definition at line 30 of file AliFMDAltroIO.h.


Constructor & Destructor Documentation

AliFMDAltroIO::AliFMDAltroIO  ) 
 

Constructor

virtual AliFMDAltroIO::~AliFMDAltroIO  )  [inline, virtual]
 

Destructor

Definition at line 28 of file AliFMDAltroIO.h.


Member Function Documentation

AliFMDAltroIO::ClassDef AliFMDAltroIO  ,
[protected]
 

virtual W40_t AliFMDAltroIO::ConcatW40 size_t  n,
const W10_t w
const [protected, virtual]
 

Concatenate a 10 bit word into a 40 bit word.

Parameters:
n Offset (0-3)
w 10 bit word
Returns:
w at offset n in a 40 bit word on success, a negative error code on failure.

const char* AliFMDAltroIO::ErrorString Int_t  err  )  const
 

Get error string

virtual W10_t AliFMDAltroIO::ExtractW10 size_t  n,
const W40_t  w
const [protected, virtual]
 

Extract a 10 bit word from a 40 bit word

Parameters:
n The number 10bit word to extract (0-3)
w 40 bit word to extract from.
Returns:
The 10 bit word at n of w on success, or a negative error code otherwise.


Member Data Documentation

W40_t AliFMDAltroIO::fBuffer [protected]
 

I/O Buffer

Definition at line 56 of file AliFMDAltroIO.h.

const W40_t AliFMDAltroIO::fgkTrailerMask [static]
 

Trailer mask

Definition at line 51 of file AliFMDAltroIO.h.

Int_t AliFMDAltroIO::fIBuffer [protected]
 

Pointer into buffer

Definition at line 58 of file AliFMDAltroIO.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 24 17:11:22 2006 for ALICE FMD Off-line by  doxygen 1.4.6