ICP  1
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SIMDetectorCard< DetCardPolicy > Class Template Reference

#include <QxtrmSimulation.h>

Inheritance diagram for SIMDetectorCard< DetCardPolicy >:
Inheritance graph

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)
 

Protected Attributes

isisU32_t m_tcgAccessRegister
 
isisU32_t m_descriptorTimeBinLimitRegister
 
isisU32_tm_poslutMemory
 
isisU32_tm_tcglutMemory
 
isisU32_t m_tcgTimeBinLimitRegister
 
isisU32_t m_vetoEnableRegister
 
isisU32_t m_vetoFlagRegister
 
isisU32_t m_periodSizeLow
 
isisU32_t m_periodSizeHigh
 
isisU32_t m_periodCounterLow
 
isisU32_t m_periodCounterHigh
 
isisU32_t m_totalCounts
 
isisU32_tm_detMemory
 
isisU32_t m_fsdelay0
 
isisU32_t m_fsdelay1
 
isisU32_t m_nextFrameMarker
 
isisU32_t m_nextMemoryWrite
 
isisU32_t m_numMemoryWraps
 
isisU32_t m_lastReadAddr
 
isisU32_t m_eventModeReg
 
isisU32_t m_dcopmode
 
isisU32_t m_dcmuonstep
 
isisU32_t m_runMemoryClear
 
bool m_end_sent
 
bool m_neutron_data
 
- Protected Attributes inherited from SIMDAE2Card< DetCardPolicy >
int m_position
 
CardType m_type
 
VMESimulationIfacem_vme
 
bool m_veto_raised
 
bool m_is_running
 
std::vector< sim_mappingm_mapping
 
isisU32_t m_firmware
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Static Protected Attributes

static isisU32_tm_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)
 

Detailed Description

template<class DetCardPolicy>
class SIMDetectorCard< DetCardPolicy >

Definition at line 19 of file QxtrmSimulation.h.

Constructor & Destructor Documentation

template<class DetCardPolicy >
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.

template<class DetCardPolicy >
SIMDetectorCard< DetCardPolicy >::~SIMDetectorCard ( )
virtual

Definition at line 101 of file sim_detector_card.cpp.

Member Function Documentation

template<class DetCardPolicy >
unsigned SIMDetectorCard< DetCardPolicy >::getTimeChannelIndex ( float  tof)
protected

tof in microseconds

Definition at line 132 of file sim_detector_card.cpp.

template<class DetCardPolicy >
int SIMDetectorCard< DetCardPolicy >::incrementPeriod ( )

Definition at line 81 of file sim_detector_card.cpp.

template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::printStatus ( std::ostream &  os)
virtual

Implements SIMDAE2Card< DetCardPolicy >.

Reimplemented in SIMMuonDetectorCard< DetCardPolicy >.

Definition at line 95 of file sim_detector_card.cpp.

template<class DetCardPolicy >
int SIMDetectorCard< DetCardPolicy >::resetPeriod ( )

Definition at line 88 of file sim_detector_card.cpp.

template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::simulate ( int  delay)
virtual

Implements SIMDAE2Card< DetCardPolicy >.

Reimplemented in SIMMuonDetectorCard< DetCardPolicy >.

Definition at line 112 of file sim_detector_card.cpp.

template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::simulateEventMode ( int  delay,
bool  simspec0,
bool  simbin0 
)
protectedvirtual
template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::simulateEventModeDataDae ( DAEEventHeader header,
bool  simspec0,
bool  simbin0 
)
protectedvirtual
template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::simulateEventModeDetector ( DAEEventHeader header,
bool  simspec0,
bool  simbin0 
)
protectedvirtual
template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::simulateHistogramMode ( int  delay,
bool  simspec0,
bool  simbin0 
)
protectedvirtual

Definition at line 147 of file sim_detector_card.cpp.

References DET_MEM_LEN.

template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::updateCardAfterRead ( DAEstatus status)
virtual

Implements SIMDAE2Card< DetCardPolicy >.

Definition at line 383 of file sim_detector_card.cpp.

template<class DetCardPolicy >
void SIMDetectorCard< DetCardPolicy >::updateCardAfterWrite ( DAEstatus status)
virtual

Implements SIMDAE2Card< DetCardPolicy >.

Definition at line 360 of file sim_detector_card.cpp.

References DET_MEM_LEN, and isRegisterUsed().

template<class DetCardPolicy >
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.

Member Data Documentation

template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_dcmuonstep
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_dcopmode
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_descriptorTimeBinLimitRegister
protected
template<class DetCardPolicy >
isisU32_t* SIMDetectorCard< DetCardPolicy >::m_detMemory
protected
template<class DetCardPolicy >
bool SIMDetectorCard< DetCardPolicy >::m_end_sent
protected

Definition at line 52 of file sim_detector_card.h.

template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_eventModeReg
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_fsdelay0
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_fsdelay1
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_lastReadAddr
protected
template<class DetCardPolicy >
bool SIMDetectorCard< DetCardPolicy >::m_neutron_data
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_nextFrameMarker
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_nextMemoryWrite
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_numMemoryWraps
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_periodCounterHigh
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_periodCounterLow
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_periodSizeHigh
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_periodSizeLow
protected
template<class DetCardPolicy >
isisU32_t* SIMDetectorCard< DetCardPolicy >::m_poslutMemory
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_runMemoryClear
protected
template<class DetCardPolicy >
isisU32_t * SIMDetectorCard< DetCardPolicy >::m_shared_detMemory = NULL
staticprotected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_tcgAccessRegister
protected
template<class DetCardPolicy >
isisU32_t* SIMDetectorCard< DetCardPolicy >::m_tcglutMemory
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_tcgTimeBinLimitRegister
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_totalCounts
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_vetoEnableRegister
protected
template<class DetCardPolicy >
isisU32_t SIMDetectorCard< DetCardPolicy >::m_vetoFlagRegister
protected

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