ICP  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ISISRAWEventSource Class Reference

#include <event_store.h>

Inheritance diagram for ISISRAWEventSource:
Inheritance graph

Public Member Functions

 ISISRAWEventSource (ISISRAW *iraw, int source_id, time_t run_start)
 
virtual ~ISISRAWEventSource ()
 
uint32_t getNewEvents (isisU32_t *buffer, uint32_t maxlen, uint64_t &num_unread, bool &run_ended, DAEstatus &status)
 
uint64_t nNewEventWords (DAEstatus &status)
 
void updateDAEEventLastRead (DAEstatus &status)
 
int eventSourceID () const
 
const int * getDAE2SpecMap ()
 
void setLastAddressRead (isisU32_t addr)
 
isisU32_t getLastAddressRead ()
 
void readInfo (EventStore::FileEventSourceInfo &info)
 
- Public Member Functions inherited from FileEventSourceBase
virtual ~FileEventSourceBase ()
 

Private Member Functions

int readEvents (isisU32_t *buffer, uint32_t max_num_to_read, uint64_t &num_unread)
 
int getFrame (uint32_t event_count)
 find out what frame to put event number event_count into - first frame is 0 More...
 
int sendHeader (isisU32_t *buffer, int current_frame)
 
std::string loggingPrefix () const
 

Private Attributes

uint32_t m_events
 total events to send More...
 
int m_source_id
 
ISISRAWm_file
 
int * m_spec_lookup
 
int * m_card_lookup
 
uint32_t m_events_sent
 events sent to date More...
 
uint32_t m_pos
 current location in raw data More...
 
uint32_t m_pos_sent
 number of events sent from pos More...
 
float m_good_ua
 
int m_good_frames
 
int m_last_frame
 
time_t m_run_start
 
std::vector< int > m_frame_events
 

Additional Inherited Members

- Protected Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
void setThisLoggerLevel (int level)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Detailed Description

Definition at line 268 of file event_store.h.

Constructor & Destructor Documentation

ISISRAWEventSource::ISISRAWEventSource ( ISISRAW iraw,
int  source_id,
time_t  run_start 
)
ISISRAWEventSource::~ISISRAWEventSource ( )
virtual

Definition at line 955 of file event_store.cpp.

Member Function Documentation

int ISISRAWEventSource::eventSourceID ( ) const
virtual

Implements DAEEventSource.

Definition at line 984 of file event_store.cpp.

References m_source_id.

const int * ISISRAWEventSource::getDAE2SpecMap ( )
virtual

Implements DAEEventSource.

Definition at line 989 of file event_store.cpp.

int ISISRAWEventSource::getFrame ( uint32_t  event_count)
private

find out what frame to put event number event_count into - first frame is 0

Definition at line 1076 of file event_store.cpp.

References m_events, and m_good_frames.

Referenced by ISISRAWEventSource(), and readEvents().

isisU32_t ISISRAWEventSource::getLastAddressRead ( )
virtual

Implements DAEEventSource.

Definition at line 994 of file event_store.cpp.

uint32_t ISISRAWEventSource::getNewEvents ( isisU32_t buffer,
uint32_t  maxlen,
uint64_t &  num_unread,
bool &  run_ended,
DAEstatus status 
)
virtual

Implements DAEEventSource.

Definition at line 959 of file event_store.cpp.

References nNewEventWords(), and readEvents().

std::string ISISRAWEventSource::loggingPrefix ( ) const
inlineprivatevirtual

Reimplemented from ISIS::Base.

Definition at line 300 of file event_store.h.

References m_source_id.

uint64_t ISISRAWEventSource::nNewEventWords ( DAEstatus status)
virtual

Implements DAEEventSource.

Definition at line 975 of file event_store.cpp.

References m_events, and m_events_sent.

Referenced by getNewEvents().

int ISISRAWEventSource::readEvents ( isisU32_t buffer,
uint32_t  max_num_to_read,
uint64_t &  num_unread 
)
private
void ISISRAWEventSource::readInfo ( EventStore::FileEventSourceInfo info)
int ISISRAWEventSource::sendHeader ( isisU32_t buffer,
int  current_frame 
)
private
void ISISRAWEventSource::setLastAddressRead ( isisU32_t  addr)
virtual

Implements DAEEventSource.

Definition at line 999 of file event_store.cpp.

void ISISRAWEventSource::updateDAEEventLastRead ( DAEstatus status)
virtual

Implements DAEEventSource.

Definition at line 980 of file event_store.cpp.

Member Data Documentation

int* ISISRAWEventSource::m_card_lookup
private

Definition at line 274 of file event_store.h.

Referenced by ISISRAWEventSource(), and readEvents().

uint32_t ISISRAWEventSource::m_events
private

total events to send

Definition at line 270 of file event_store.h.

Referenced by getFrame(), ISISRAWEventSource(), nNewEventWords(), readEvents(), and readInfo().

uint32_t ISISRAWEventSource::m_events_sent
private

events sent to date

Definition at line 275 of file event_store.h.

Referenced by nNewEventWords(), and readEvents().

ISISRAW* ISISRAWEventSource::m_file
private

Definition at line 272 of file event_store.h.

Referenced by ISISRAWEventSource(), and readEvents().

std::vector<int> ISISRAWEventSource::m_frame_events
private

Definition at line 282 of file event_store.h.

Referenced by ISISRAWEventSource(), and sendHeader().

int ISISRAWEventSource::m_good_frames
private

Definition at line 279 of file event_store.h.

Referenced by getFrame(), ISISRAWEventSource(), readInfo(), and sendHeader().

float ISISRAWEventSource::m_good_ua
private

Definition at line 278 of file event_store.h.

Referenced by ISISRAWEventSource(), and sendHeader().

int ISISRAWEventSource::m_last_frame
private

Definition at line 280 of file event_store.h.

Referenced by readEvents().

uint32_t ISISRAWEventSource::m_pos
private

current location in raw data

Definition at line 276 of file event_store.h.

Referenced by readEvents().

uint32_t ISISRAWEventSource::m_pos_sent
private

number of events sent from pos

Definition at line 277 of file event_store.h.

Referenced by readEvents().

time_t ISISRAWEventSource::m_run_start
private

Definition at line 281 of file event_store.h.

Referenced by ISISRAWEventSource(), and sendHeader().

int ISISRAWEventSource::m_source_id
private

Definition at line 271 of file event_store.h.

Referenced by eventSourceID(), ISISRAWEventSource(), loggingPrefix(), and readEvents().

int* ISISRAWEventSource::m_spec_lookup
private

Definition at line 273 of file event_store.h.

Referenced by ISISRAWEventSource(), and readEvents().


The documentation for this class was generated from the following files: