ICP
1
|
#include <QxtrmSimulation.h>
Public Member Functions | |
SIMDetectorCard (int position, VMESimulationIface *vme, bool shared, FaultMode fault_mode, bool neutron_data, DAEstatus &status) | |
virtual | ~SIMDetectorCard () |
virtual void | printStatus (std::ostream &os) |
virtual void | updateCardAfterWrite (DAEstatus &status) |
virtual void | updateCardAfterRead (DAEstatus &status) |
virtual void | simulate (int delay) |
void | writeToMemoryWrapped (isisU32_t *data, int len) |
int | incrementPeriod () |
int | resetPeriod () |
Public Member Functions inherited from SIMDAE2Card< DetCardPolicy > | |
SIMDAE2Card (int position, VMESimulationIface *vme, isisU32_t firmware, bool fw32, FaultMode fault_mode, DAEstatus &status) | |
int | position () |
virtual | ~SIMDAE2Card () |
int | read16 (ISISVME::TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | read32 (ISISVME::TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
int | write16 (ISISVME::TransferProps props, unsigned long address, isisU16_t *data16, long nitems, DAEstatus &status) |
int | write32 (ISISVME::TransferProps props, unsigned long address, isisU32_t *data32, long nitems, DAEstatus &status) |
std::vector< sim_mapping > & | mapping () |
int | addMapping (ISISVME::TransferProps props, isisU32_t address, int n, isisU32_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, isisU32_t address, int n, uint64_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, const unused_t &address, int n, isisU32_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
int | addMapping (ISISVME::TransferProps props, const unused_t &address, int n, uint64_t *var, const char *name, bool readable, bool writable, isisU32_t *access_reg, unsigned access_bit, bool wrap, bool sixteen_bit_access, FaultMode fault_mode) |
bool | isVetoing () |
bool | isRunning () |
CardType | type () |
Protected Member Functions | |
virtual void | simulateHistogramMode (int delay, bool simspec0, bool simbin0) |
virtual void | simulateEventMode (int delay, bool simspec0, bool simbin0) |
virtual void | simulateEventModeDetector (DAEEventHeader &header, bool simspec0, bool simbin0) |
virtual void | simulateEventModeDataDae (DAEEventHeader &header, bool simspec0, bool simbin0) |
unsigned | getTimeChannelIndex (float tof) |
tof in microseconds More... | |
Protected Member Functions inherited from SIMDAE2Card< DetCardPolicy > | |
std::string | loggingPrefix () const |
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 Attributes | |
static isisU32_t * | m_shared_detMemory = NULL |
Additional Inherited Members | |
Public Types inherited from SIMDAE2Card< DetCardPolicy > | |
enum | CardType |
Static Public Member Functions inherited from SIMDAE2Card< DetCardPolicy > | |
static void | increment (int value, isisU32_t &low) |
static void | increment2 (int value, isisU32_t &low, isisU32_t &high) |
static void | increment3 (int value, isisU32_t &low, isisU32_t &middle, isisU32_t &high) |
static void | increment32 (int value, isisU32_t &low, isisU32_t &high) |
static void | increment32 (int value, uint64_t &low, isisU32_t &high) |
Static Protected Member Functions inherited from ISIS::Base | |
static void | setAllLoggerLevel (int level) |
Definition at line 19 of file QxtrmSimulation.h.
SIMDetectorCard< DetCardPolicy >::SIMDetectorCard | ( | int | position, |
VMESimulationIface * | vme, | ||
bool | shared, | ||
FaultMode | fault_mode, | ||
bool | neutron_data, | ||
DAEstatus & | status | ||
) |
Definition at line 15 of file sim_detector_card.cpp.
References SIMDAE2Card< DetCardPolicy >::addMapping(), DET_MEM_LEN, SIMDAE2Card< DetCardPolicy >::DetCard, isRegisterUsed(), LOGSTR_INFORMATION, SIMDetectorCard< DetCardPolicy >::m_dcmuonstep, SIMDetectorCard< DetCardPolicy >::m_dcopmode, SIMDetectorCard< DetCardPolicy >::m_descriptorTimeBinLimitRegister, SIMDetectorCard< DetCardPolicy >::m_detMemory, SIMDetectorCard< DetCardPolicy >::m_eventModeReg, SIMDetectorCard< DetCardPolicy >::m_fsdelay0, SIMDetectorCard< DetCardPolicy >::m_fsdelay1, SIMDetectorCard< DetCardPolicy >::m_lastReadAddr, SIMDetectorCard< DetCardPolicy >::m_neutron_data, SIMDetectorCard< DetCardPolicy >::m_nextFrameMarker, SIMDetectorCard< DetCardPolicy >::m_nextMemoryWrite, SIMDetectorCard< DetCardPolicy >::m_numMemoryWraps, SIMDetectorCard< DetCardPolicy >::m_periodCounterHigh, SIMDetectorCard< DetCardPolicy >::m_periodCounterLow, SIMDetectorCard< DetCardPolicy >::m_periodSizeHigh, SIMDetectorCard< DetCardPolicy >::m_periodSizeLow, SIMDAE2Card< DetCardPolicy >::m_position, SIMDetectorCard< DetCardPolicy >::m_poslutMemory, SIMDetectorCard< DetCardPolicy >::m_runMemoryClear, SIMDetectorCard< DetCardPolicy >::m_shared_detMemory, SIMDetectorCard< DetCardPolicy >::m_tcgAccessRegister, SIMDetectorCard< DetCardPolicy >::m_tcglutMemory, SIMDetectorCard< DetCardPolicy >::m_tcgTimeBinLimitRegister, SIMDetectorCard< DetCardPolicy >::m_totalCounts, SIMDAE2Card< DetCardPolicy >::m_type, SIMDetectorCard< DetCardPolicy >::m_vetoEnableRegister, SIMDetectorCard< DetCardPolicy >::m_vetoFlagRegister, ISIS::Base::setLoggerName(), ISISVME::TransferIORegisterSpace, ISISVME::TransferLUTSpace, and ISISVME::TransferRunMemorySpace.
|
virtual |
Definition at line 101 of file sim_detector_card.cpp.
|
protected |
tof in microseconds
Definition at line 132 of file sim_detector_card.cpp.
int SIMDetectorCard< DetCardPolicy >::incrementPeriod | ( | ) |
Definition at line 81 of file sim_detector_card.cpp.
|
virtual |
Implements SIMDAE2Card< DetCardPolicy >.
Reimplemented in SIMMuonDetectorCard< DetCardPolicy >.
Definition at line 95 of file sim_detector_card.cpp.
int SIMDetectorCard< DetCardPolicy >::resetPeriod | ( | ) |
Definition at line 88 of file sim_detector_card.cpp.
|
virtual |
Implements SIMDAE2Card< DetCardPolicy >.
Reimplemented in SIMMuonDetectorCard< DetCardPolicy >.
Definition at line 112 of file sim_detector_card.cpp.
|
protectedvirtual |
Definition at line 251 of file sim_detector_card.cpp.
References AllValuesFilledInMarker, DAE_EVENT_HEADER_WORDS, DAEEventHeaderFixedMarker, EndOfRunMarker, DAEEventHeader::frame_number, DAEEventHeaderInfo::header_length, DAEEventHeaderInfo::header_type, DAEEventHeader::DAETime::high, DAEEventHeader::info, VMESimulationIface::isRunning(), VMESimulationIface::isVetoing(), LOGSTR_DEBUG, DAEEventHeader::DAETime::low, DAEEventHeader::marker0, DAEEventHeader::marker1, DAEEventHeader::num_events, DAEEventHeader::period, DAEEventHeader::protons, DAEEventList::SystemTimeToDAETime(), and DAEEventHeader::time.
|
protectedvirtual |
Definition at line 192 of file sim_detector_card.cpp.
References DAE_EVENT_HEADER_WORDS, DAEEventHeader::num_events, DetectorEvent32::spectrum, and DetectorEvent32::time_channel.
|
protectedvirtual |
Definition at line 218 of file sim_detector_card.cpp.
References DAE_EVENT_HEADER_WORDS, DAEEventHeader::num_events, DetectorEvent32::spectrum, and DetectorEvent32::time_channel.
|
protectedvirtual |
Definition at line 147 of file sim_detector_card.cpp.
References DET_MEM_LEN.
|
virtual |
Implements SIMDAE2Card< DetCardPolicy >.
Definition at line 383 of file sim_detector_card.cpp.
|
virtual |
Implements SIMDAE2Card< DetCardPolicy >.
Definition at line 360 of file sim_detector_card.cpp.
References DET_MEM_LEN, and isRegisterUsed().
void SIMDetectorCard< DetCardPolicy >::writeToMemoryWrapped | ( | isisU32_t * | data, |
int | len | ||
) |
Definition at line 314 of file sim_detector_card.cpp.
References DET_MEM_LEN, and LOGSTR_WARNING.
|
protected |
Definition at line 49 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 48 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 29 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 40 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 52 of file sim_detector_card.h.
|
protected |
Definition at line 47 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 41 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 42 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 46 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 53 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 43 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 44 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 45 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 38 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 37 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 36 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 35 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 30 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 50 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
staticprotected |
Definition at line 51 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 28 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 31 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 32 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 39 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 33 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().
|
protected |
Definition at line 34 of file sim_detector_card.h.
Referenced by SIMDetectorCard< DetCardPolicy >::SIMDetectorCard().