ICP  1
Public Types | Public Member Functions | List of all members
EventModeRegister< DetCardPolicy > Struct Template Reference

bit assignmments for DAE2DetCardPolicy::DCEVNTMD More...

#include <detector_card.h>

Inheritance diagram for EventModeRegister< DetCardPolicy >:
Inheritance graph

Public Types

enum  Mask {
  EventMode = (1 << 0), EventSize64 = (1 << 1), HeaderType = ((1<<8) + (1<<9) + (1<<10) + (1<<11)), StoreVetoedData = (1 << 12),
  AllVetosInHeader = (1 << 13)
}
 
enum  EventHeaderType { NormalEventHeader = 0x3 }
 

Public Member Functions

 EventModeRegister (DAE2Card< DetCardPolicy > *card)
 
int eventMode (DAEstatus &status)
 
int eventMode (bool choice, DAEstatus &status)
 
int enable32bitEvents (DAEstatus &status)
 
int enable64bitEvents (DAEstatus &status)
 
int storeVetodData (bool choice, DAEstatus &status)
 
int allVetoesInHeader (bool choice, DAEstatus &status)
 
unsigned setHeaderType (unsigned val, DAEstatus &status)
 
unsigned getHeaderType (DAEstatus &status)
 
- Public Member Functions inherited from DAE2Register< DetCardPolicy >
 DAE2Register (MyDAE2Card *card, isisU32_t address)
 
virtual ~DAE2Register ()
 
int setBits (isisU32_t mask, bool preserve, DAEstatus &status, bool little_endian=false)
 
int clearBits (isisU32_t mask, DAEstatus &status, bool little_endian=false)
 
int enable (bool choice, isisU32_t mask, DAEstatus &status, bool little_endian=false)
 
isisU32_t read (DAEstatus &status, bool little_endian=false, bool retry=true)
 

Additional Inherited Members

- Protected Types inherited from DAE2Register< DetCardPolicy >
typedef DAE2Card< DetCardPolicy > MyDAE2Card
 
- Protected Attributes inherited from DAE2Register< DetCardPolicy >
MyDAE2Cardm_card
 
isisU32_t m_address
 

Detailed Description

template<class DetCardPolicy>
struct EventModeRegister< DetCardPolicy >

bit assignmments for DAE2DetCardPolicy::DCEVNTMD

Definition at line 21 of file detector_card.h.

Member Enumeration Documentation

template<class DetCardPolicy>
enum EventModeRegister::EventHeaderType
Enumerator
NormalEventHeader 
Todo:
user defined

Definition at line 31 of file detector_card.h.

template<class DetCardPolicy>
enum EventModeRegister::Mask
Enumerator
EventMode 

set for event mode, clear for histogram mode

EventSize64 

set to enable 64bit events, clear to enable 32 bit events

HeaderType 

frame header type

StoreVetoedData 

set to store events for all frames, clear to only store events for good frames

AllVetosInHeader 

set to store all received vetos in header, clear to only store enabled vetos in header

Definition at line 23 of file detector_card.h.

Constructor & Destructor Documentation

template<class DetCardPolicy>
EventModeRegister< DetCardPolicy >::EventModeRegister ( DAE2Card< DetCardPolicy > *  card)
inline

Definition at line 35 of file detector_card.h.

Member Function Documentation

template<class DetCardPolicy>
int EventModeRegister< DetCardPolicy >::allVetoesInHeader ( bool  choice,
DAEstatus status 
)
inline

Definition at line 41 of file detector_card.h.

template<class DetCardPolicy>
int EventModeRegister< DetCardPolicy >::enable32bitEvents ( DAEstatus status)
inline

Definition at line 38 of file detector_card.h.

template<class DetCardPolicy>
int EventModeRegister< DetCardPolicy >::enable64bitEvents ( DAEstatus status)
inline

Definition at line 39 of file detector_card.h.

template<class DetCardPolicy>
int EventModeRegister< DetCardPolicy >::eventMode ( DAEstatus status)
inline

Definition at line 36 of file detector_card.h.

template<class DetCardPolicy>
int EventModeRegister< DetCardPolicy >::eventMode ( bool  choice,
DAEstatus status 
)
inline

Definition at line 37 of file detector_card.h.

template<class DetCardPolicy>
unsigned EventModeRegister< DetCardPolicy >::getHeaderType ( DAEstatus status)
inline

Definition at line 43 of file detector_card.h.

template<class DetCardPolicy>
unsigned EventModeRegister< DetCardPolicy >::setHeaderType ( unsigned  val,
DAEstatus status 
)
inline

Definition at line 42 of file detector_card.h.

template<class DetCardPolicy>
int EventModeRegister< DetCardPolicy >::storeVetodData ( bool  choice,
DAEstatus status 
)
inline

Definition at line 40 of file detector_card.h.


The documentation for this struct was generated from the following file: