ICP  1
Public Types | Public Member Functions | Static Public Attributes | List of all members
DetectorCardIntf Class Referenceabstract

#include <detector_card.h>

Inheritance diagram for DetectorCardIntf:
Inheritance graph

Public Types

enum  DetectorCardMode { ModeUnknown =0x0, ModeNeutronData =0x1, ModeSEData =0x2 }
 
enum  DetectorCardVeto { FrameOverflowVeto =0x1, MemoryFullVeto =0x2, FIFOLateVeto =0x4 }
 
- Public Types inherited from DAE2CardIntf
enum  CardType {
  EmptySlot = 0, UnknownCard = 1, EnvCard = 2, EnvPeriodCard = 3,
  NeutronDetectorCard = 4, MuonDetectorCard = 5, MuonPeriodCard = 6
}
 

Public Member Functions

virtual int readHistogramMemory (unsigned long start, isisU32_t *buffer, int len, DAEstatus &status)=0
 
virtual bool readHistogramMemoryWrapped (unsigned long start, isisU32_t *buffer, uint32_t len, DAEstatus &status)=0
 
virtual int writeHistogramMemory (unsigned long start, isisU32_t *buffer, int len, DAEstatus &status)=0
 
virtual isisU32_t sumHistogramMemory (DAEstatus &status)=0
 
virtual int clearHistogramMemoryStart (DAEstatus &status)=0
 
virtual bool isClearHistogramMemoryComplete (DAEstatus &status)=0
 
virtual int readPOSLUTMemory (unsigned long start, isisU32_t *buffer, int len, DAEstatus &status)=0
 
virtual int writePOSLUTMemory (unsigned long start, isisU32_t *buffer, int len, DAEstatus &status)=0
 
virtual int clearPOSLUTMemory (DAEstatus &status, unsigned long start=0, int len=65536)=0
 
virtual int readTCGLUTMemory (unsigned long start, isisU32_t *buffer, int len, DAEstatus &status)=0
 
virtual int writeTCGLUTMemory (unsigned long start, isisU32_t *buffer, int len, DAEstatus &status)=0
 
virtual int readDescriptorTimeBinLimitRegister (isisU32_t *value, DAEstatus &status)=0
 
virtual int writeDescriptorTimeBinLimitRegister (isisU32_t value, DAEstatus &status)=0
 
virtual int readTCGTimeBinLimitRegister (isisU32_t *value, DAEstatus &status)=0
 
virtual int writeTCGTimeBinLimitRegister (isisU32_t value, DAEstatus &status)=0
 
 DetectorCardIntf ()
 
virtual int getNTimeChannels (isisU32_t *ntc, DAEstatus &status)=0
 
virtual int setNTimeChannels (isisU32_t ntc, DAEstatus &status)=0
 
virtual int getSpectrumSize (isisU32_t *value, DAEstatus &status)=0
 
virtual int readSpectrum (int spec, isisU32_t *buffer, int nbuffer, DAEstatus &status)=0
 
virtual int readDAE1Spectrum (int dae1_spec, isisU32_t *buffer, int nbuffer, DAEstatus &status)=0
 
virtual int readDAE1Spectra (isisU32_t *buffer, int nbuffer, const int spec_to_crpt_offset[], int spec_start, int nspec, int period, int persize, DAEstatus &status)=0
 
virtual int setTimeChannels (isisU32_t *tcb, int ntc, DAEstatus &status)=0
 
virtual int getTimeChannels (isisU32_t *tcb, int ntc, DAEstatus &status)=0
 
virtual ~DetectorCardIntf ()
 
virtual int programDAE1POSLUT (int crat[], int modn[], int mpos[], int spec[], int ndet, int nperiods, int dae1persize, DAEstatus &status)=0
 
virtual int findDAE1Spectrum (int dae1_spectrum, DAEstatus &) const =0
 
virtual int findDAE2Spectrum (int dae2_spectrum, DAEstatus &) const =0
 
virtual const int * getDAE2SpecMap ()=0
 
virtual int readAllDAE1Spectra (isisU32_t *buffer, int nbuffer, const int spec_to_crpt_offset[], int persize, DAEstatus &status)=0
 
virtual int programPOSLUT (int cards[], int dims[], int pos_start[], int npos[], int spec[], int spec_step[], int nblocks, int nperiods, int dae1persize, DAEstatus &status)=0
 
virtual int fillAddmap (Addmap *addmap, int len, DAEstatus &status)=0
 
virtual void printStatus (std::ostream &os, DAEstatus &status)=0
 
virtual void printSpecmap (std::ostream &os)=0
 
virtual void printTimeChannels (std::ostream &os, int start=0, int end=-1)=0
 
virtual void printPOSLUT (std::ostream &os, DAEstatus &status)=0
 
virtual int readPOSLUT (DAEstatus &status)=0
 
virtual unsigned long memorySize ()=0
 
virtual int loadDAE2SpecmapFromArray (int *array, int len, DAEstatus &status)=0
 
virtual int saveDAE2SpecmapToArray (int *array, int offset, int len, DAEstatus &status)=0
 
virtual int changePeriod (int period, DAEstatus &status)=0
 
virtual int changeNumberOfPeriods (int nperiod, DAEstatus &status)=0
 
virtual int setPeriodType (bool hardware_periods, bool single_daq_period, DAEstatus &status)=0
 
virtual int enableDIMVetos (isisU16_t dim_mask, DAEstatus &status)=0
 
virtual int getDIMVetos (isisU16_t *dim_mask, DAEstatus &status)=0
 
virtual int disableDIMVetos (DAEstatus &status)=0
 
virtual int clearVetoOccurredFlag (DAEstatus &status)=0
 
virtual int readDIMVetoOccurredFlag (isisU16_t *dim_mask, DAEstatus &status)=0
 
virtual int getCurrentHardwarePeriod (isisU32_t *period, DAEstatus &status)=0
 
virtual int getTotalCounts (isisU32_t *counts, DAEstatus &status)=0
 
virtual int clearTotalCountsRegister (DAEstatus &status)=0
 
virtual int getFrameSyncDelay (isisU32_t *value, DAEstatus &status)=0
 
virtual int setFrameSyncDelay (isisU32_t value, DAEstatus &status)=0
 
virtual int fillWithTestPattern (unsigned long pattern, DAEstatus &status)=0
 
virtual int checkTestPattern (unsigned long pattern, DAEstatus &status)=0
 
virtual int whichVeto (std::ostream &os, DAEstatus &status)=0
 
virtual int setEventCollectionMode (bool enable, DAEstatus &status)=0
 
virtual uint32_t getNewEvents (isisU32_t *buffer, uint32_t maxlen, uint64_t &num_unread, bool &run_ended, DAEstatus &status)=0
 
virtual uint64_t nNewEventWords (DAEstatus &status)=0
 
virtual void updateDAEEventLastRead (DAEstatus &status)=0
 
virtual isisU32_t getLastAddressRead ()=0
 
virtual void setLastAddressRead (isisU32_t addr)=0
 
virtual int eventSourceID () const =0
 
virtual int highspec () const =0
 
virtual int enableVeto (DetectorCardVeto veto, DAEstatus &status)=0
 
virtual int disableVeto (DetectorCardVeto veto, DAEstatus &status)=0
 
virtual bool isVetoEnabled (DetectorCardVeto veto, DAEstatus &status)=0
 
virtual bool hasVetoOccurred (DetectorCardVeto veto, DAEstatus &status)=0
 
virtual int printVetoStatus (std::ostream &os, bool triggered_only, DAEstatus &status)=0
 
virtual int resetCardState (DAEstatus &status)=0
 
virtual void setCardMode (DetectorCardMode mode)=0
 
- Public Member Functions inherited from DAE2CardIntf
 DAE2CardIntf ()
 
virtual ~DAE2CardIntf ()
 
virtual int position () const =0
 
virtual std::string daeDevice () const =0
 

Static Public Attributes

static const int NOSPECTRUM = -1
 
static const int SPECTRUM_PLACEHOLDER = -2
 

Detailed Description

Definition at line 53 of file detector_card.h.

Member Enumeration Documentation

Enumerator
ModeUnknown 
ModeNeutronData 
ModeSEData 

Definition at line 56 of file detector_card.h.

Enumerator
FrameOverflowVeto 
MemoryFullVeto 
FIFOLateVeto 

Definition at line 131 of file detector_card.h.

Constructor & Destructor Documentation

DetectorCardIntf::DetectorCardIntf ( )
inline

Definition at line 72 of file detector_card.h.

virtual DetectorCardIntf::~DetectorCardIntf ( )
inlinevirtual

Definition at line 81 of file detector_card.h.

Member Function Documentation

virtual int DetectorCardIntf::changeNumberOfPeriods ( int  nperiod,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::changePeriod ( int  period,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::checkTestPattern ( unsigned long  pattern,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::clearHistogramMemoryStart ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::clearPOSLUTMemory ( DAEstatus status,
unsigned long  start = 0,
int  len = 65536 
)
pure virtual
virtual int DetectorCardIntf::clearTotalCountsRegister ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::clearVetoOccurredFlag ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::disableDIMVetos ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::disableVeto ( DetectorCardVeto  veto,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::enableDIMVetos ( isisU16_t  dim_mask,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::enableVeto ( DetectorCardVeto  veto,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::eventSourceID ( ) const
pure virtual
virtual int DetectorCardIntf::fillAddmap ( Addmap addmap,
int  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::fillWithTestPattern ( unsigned long  pattern,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::findDAE1Spectrum ( int  dae1_spectrum,
DAEstatus  
) const
pure virtual
virtual int DetectorCardIntf::findDAE2Spectrum ( int  dae2_spectrum,
DAEstatus  
) const
pure virtual
virtual int DetectorCardIntf::getCurrentHardwarePeriod ( isisU32_t period,
DAEstatus status 
)
pure virtual
virtual const int* DetectorCardIntf::getDAE2SpecMap ( )
pure virtual
virtual int DetectorCardIntf::getDIMVetos ( isisU16_t dim_mask,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::getFrameSyncDelay ( isisU32_t value,
DAEstatus status 
)
pure virtual
virtual isisU32_t DetectorCardIntf::getLastAddressRead ( )
pure virtual
virtual uint32_t DetectorCardIntf::getNewEvents ( isisU32_t buffer,
uint32_t  maxlen,
uint64_t &  num_unread,
bool &  run_ended,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::getNTimeChannels ( isisU32_t ntc,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::getSpectrumSize ( isisU32_t value,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::getTimeChannels ( isisU32_t tcb,
int  ntc,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::getTotalCounts ( isisU32_t counts,
DAEstatus status 
)
pure virtual
virtual bool DetectorCardIntf::hasVetoOccurred ( DetectorCardVeto  veto,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::highspec ( ) const
pure virtual
virtual bool DetectorCardIntf::isClearHistogramMemoryComplete ( DAEstatus status)
pure virtual
virtual bool DetectorCardIntf::isVetoEnabled ( DetectorCardVeto  veto,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::loadDAE2SpecmapFromArray ( int *  array,
int  len,
DAEstatus status 
)
pure virtual
virtual unsigned long DetectorCardIntf::memorySize ( )
pure virtual
virtual uint64_t DetectorCardIntf::nNewEventWords ( DAEstatus status)
pure virtual
virtual void DetectorCardIntf::printPOSLUT ( std::ostream &  os,
DAEstatus status 
)
pure virtual
virtual void DetectorCardIntf::printSpecmap ( std::ostream &  os)
pure virtual
virtual void DetectorCardIntf::printStatus ( std::ostream &  os,
DAEstatus status 
)
pure virtual
virtual void DetectorCardIntf::printTimeChannels ( std::ostream &  os,
int  start = 0,
int  end = -1 
)
pure virtual
virtual int DetectorCardIntf::printVetoStatus ( std::ostream &  os,
bool  triggered_only,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::programDAE1POSLUT ( int  crat[],
int  modn[],
int  mpos[],
int  spec[],
int  ndet,
int  nperiods,
int  dae1persize,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::programPOSLUT ( int  cards[],
int  dims[],
int  pos_start[],
int  npos[],
int  spec[],
int  spec_step[],
int  nblocks,
int  nperiods,
int  dae1persize,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readAllDAE1Spectra ( isisU32_t buffer,
int  nbuffer,
const int  spec_to_crpt_offset[],
int  persize,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readDAE1Spectra ( isisU32_t buffer,
int  nbuffer,
const int  spec_to_crpt_offset[],
int  spec_start,
int  nspec,
int  period,
int  persize,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readDAE1Spectrum ( int  dae1_spec,
isisU32_t buffer,
int  nbuffer,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readDescriptorTimeBinLimitRegister ( isisU32_t value,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readDIMVetoOccurredFlag ( isisU16_t dim_mask,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readHistogramMemory ( unsigned long  start,
isisU32_t buffer,
int  len,
DAEstatus status 
)
pure virtual
virtual bool DetectorCardIntf::readHistogramMemoryWrapped ( unsigned long  start,
isisU32_t buffer,
uint32_t  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readPOSLUT ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::readPOSLUTMemory ( unsigned long  start,
isisU32_t buffer,
int  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readSpectrum ( int  spec,
isisU32_t buffer,
int  nbuffer,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readTCGLUTMemory ( unsigned long  start,
isisU32_t buffer,
int  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::readTCGTimeBinLimitRegister ( isisU32_t value,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::resetCardState ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::saveDAE2SpecmapToArray ( int *  array,
int  offset,
int  len,
DAEstatus status 
)
pure virtual
virtual void DetectorCardIntf::setCardMode ( DetectorCardMode  mode)
pure virtual

Referenced by ISISDAE::setDCCardMode().

virtual int DetectorCardIntf::setEventCollectionMode ( bool  enable,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::setFrameSyncDelay ( isisU32_t  value,
DAEstatus status 
)
pure virtual
virtual void DetectorCardIntf::setLastAddressRead ( isisU32_t  addr)
pure virtual
virtual int DetectorCardIntf::setNTimeChannels ( isisU32_t  ntc,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::setPeriodType ( bool  hardware_periods,
bool  single_daq_period,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::setTimeChannels ( isisU32_t tcb,
int  ntc,
DAEstatus status 
)
pure virtual
virtual isisU32_t DetectorCardIntf::sumHistogramMemory ( DAEstatus status)
pure virtual
virtual void DetectorCardIntf::updateDAEEventLastRead ( DAEstatus status)
pure virtual
virtual int DetectorCardIntf::whichVeto ( std::ostream &  os,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::writeDescriptorTimeBinLimitRegister ( isisU32_t  value,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::writeHistogramMemory ( unsigned long  start,
isisU32_t buffer,
int  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::writePOSLUTMemory ( unsigned long  start,
isisU32_t buffer,
int  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::writeTCGLUTMemory ( unsigned long  start,
isisU32_t buffer,
int  len,
DAEstatus status 
)
pure virtual
virtual int DetectorCardIntf::writeTCGTimeBinLimitRegister ( isisU32_t  value,
DAEstatus status 
)
pure virtual

Member Data Documentation

const int DetectorCardIntf::NOSPECTRUM = -1
static
const int DetectorCardIntf::SPECTRUM_PLACEHOLDER = -2
static

Definition at line 129 of file detector_card.h.

Referenced by MuonDetectorCard::programDAE1POSLUT().


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