/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Private Member Functions | Private Attributes
DybDaq::DaqRomData Class Reference

#include <DaqRawEvent.h>

List of all members.

Public Member Functions

 DaqRomData (const uint32_t *rom, int cbltFix)
virtual ~DaqRomData ()
bool is_fec ()
bool is_rtm ()
bool is_ltb ()
bool is_fadc ()
int rom_size ()
const uint32_t * next_fec ()
const uint32_t * next_rtm ()
const uint32_t * next_ltb ()

Private Member Functions

 DaqRomData ()

Private Attributes

const uint32_t * m_rom
int m_romSize
int m_cbltFix
int m_iFrag

Detailed Description

Definition at line 8 of file DaqRawEvent.h.


Constructor & Destructor Documentation

DaqRomData::DaqRomData ( const uint32_t *  rom,
int  cbltFix 
)

Definition at line 8 of file DaqRawEvent.cc.

    : m_rom(rom),
      m_cbltFix(0),
      m_iFrag(ROM_HEADER_SIZE)
{
    m_romSize = (m_rom[1]&0xFFFFFF);
    if ( cbltFix || ((m_romSize > 3) && ((m_rom[3]>>28) == 2)) ) {
        m_cbltFix = 1;
        m_iFrag  += 1;
    }
    if ( is_ltb() ) m_iFrag += RawRecordPoolUtil::LTB_HEAD_SIZE;
}
DaqRomData::~DaqRomData ( ) [virtual]

Definition at line 21 of file DaqRawEvent.cc.

{
}
DybDaq::DaqRomData::DaqRomData ( ) [private]

Member Function Documentation

bool DaqRomData::is_fec ( )

Definition at line 35 of file DaqRawEvent.cc.

{
    return ((m_rom[2]&0xFF00) == 0x400);
}
bool DaqRomData::is_rtm ( )

Definition at line 40 of file DaqRawEvent.cc.

{
    return ((m_rom[2]&0xFF00) == 0x500);
}
bool DaqRomData::is_ltb ( )

Definition at line 30 of file DaqRawEvent.cc.

{
    return ((m_rom[2]&0xFF00) == 0x300);
}
bool DaqRomData::is_fadc ( )

Definition at line 25 of file DaqRawEvent.cc.

{
    return ((m_rom[2]&0xFF00) == 0x200);
}
int DaqRomData::rom_size ( )

Definition at line 45 of file DaqRawEvent.cc.

{
    return m_romSize;
}
const uint32_t * DaqRomData::next_fec ( )

Definition at line 60 of file DaqRawEvent.cc.

{
    const uint32_t* result = 0;
    if ( (m_romSize-m_cbltFix-m_iFrag) >= RawRecordPoolUtil::FEC_DATA_SIZE ) {
        result = m_rom + m_iFrag;
        m_iFrag += RawRecordPoolUtil::FEC_DATA_SIZE;
    }
    return result;
}
const uint32_t * DaqRomData::next_rtm ( )

Definition at line 70 of file DaqRawEvent.cc.

{
    const uint32_t* result = 0;
    if ( (m_romSize-m_cbltFix-m_iFrag) >= RawRecordPoolUtil::RTM_DATA_SIZE ) {
        result = m_rom + m_iFrag;
        m_iFrag += RawRecordPoolUtil::RTM_DATA_SIZE;
    }
    return result;
}
const uint32_t * DaqRomData::next_ltb ( )

Definition at line 50 of file DaqRawEvent.cc.

{
    const uint32_t* result = 0;
    if ( (m_romSize-m_cbltFix-m_iFrag) >= RawRecordPoolUtil::LTB_DATA_SIZE ) {
        result = m_rom + m_iFrag;
        m_iFrag += RawRecordPoolUtil::LTB_DATA_SIZE;
    }
    return result;
}

Member Data Documentation

const uint32_t* DybDaq::DaqRomData::m_rom [private]

Definition at line 27 of file DaqRawEvent.h.

Definition at line 29 of file DaqRawEvent.h.

Definition at line 30 of file DaqRawEvent.h.

Definition at line 31 of file DaqRawEvent.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:52:46 for RawRecordPool by doxygen 1.7.4