#include <CCAENV830.h>
Public Types | |
typedef enum CCAENV830::_TriggerMode | TriggerMode |
typedef enum CCAENV830::_TriggerMode | TriggerMode |
enum | _TriggerMode { Disabled, Random, Periodic } |
enum | _TriggerMode { Disabled, Random, Periodic } |
Public Member Functions | |
CCAENV830 (int slot, int crate=0, bool geo=true, unsigned long base=0) throw (string) | |
~CCAENV830 () | |
int | getCrate () const |
int | getSlot () const |
int | getModuleType () const |
int | getFirmware () const |
int | getSerial () const |
void | setCrate (int crate) |
void | setSlot (int slot) |
void | setModuleType (int type) |
void | setFirmware (int fwRev) |
void | Enable (int nChannel) throw (string) |
void | Disable (int nChannel) throw (string) |
void | SetEnableMask (int nMask) |
void | SetDwellTime (int n400ns) |
void | SetTriggerMode (TriggerMode mode) throw (string) |
void | SetWide () |
void | SetNarrow () |
void | EnableHeader () |
void | DisableHeader () |
void | FPClearsMEB (bool state) |
void | EnableAutoReset () |
void | DisableAutoReset () |
bool | isDataReady () |
bool | isAlmostFull () |
bool | isFull () |
bool | isGlobalDready () |
bool | isGlobalBusy () |
void | Reset () |
void | Clear () |
void | Trigger () |
void | SetTriggerCounter (int n) |
void | SetAlmostFullLevel (int n) |
int | GetMEBEventCount () |
int | ReadEvent (void *pBuffer) |
int | ReadEvent (DAQWordBufferPtr &rBufferPtr) |
int | ReadEvent (DAQWordBuffer &rBuffer, int nOffset) |
int | ReadCounter (int nChannel) |
CCAENV830 (int slot, int crate=0, bool geo=true, unsigned long base=0) throw (string) | |
~CCAENV830 () | |
int | getCrate () const |
int | getSlot () const |
int | getModuleType () const |
int | getFirmware () const |
int | getSerial () const |
void | setCrate (int crate) |
void | setSlot (int slot) |
void | setModuleType (int type) |
void | setFirmware (int fwRev) |
void | Enable (int nChannel) throw (string) |
void | Disable (int nChannel) throw (string) |
void | SetEnableMask (int nMask) |
void | SetDwellTime (int n400ns) |
void | SetTriggerMode (TriggerMode mode) throw (string) |
void | SetWide () |
void | SetNarrow () |
void | EnableHeader () |
void | DisableHeader () |
void | FPClearsMEB (bool state) |
void | EnableAutoReset () |
void | DisableAutoReset () |
bool | isDataReady () |
bool | isAlmostFull () |
bool | isFull () |
bool | isGlobalDready () |
bool | isGlobalBusy () |
void | Reset () |
void | Clear () |
void | Trigger () |
void | SetTriggerCounter (int n) |
void | SetAlmostFullLevel (int n) |
int | GetMEBEventCount () |
int | ReadEvent (void *pBuffer) |
int | ReadEvent (DAQWordBufferPtr &rBufferPtr) |
int | ReadEvent (DAQWordBuffer &rBuffer, int nOffset) |
int | ReadCounter (int nChannel) |
Protected Member Functions | |
void | ComputeEventSize () |
void | MapModule () throw (string) |
void | InitModule () |
void | UnmapModule () |
void | ComputeEventSize () |
void | MapModule () throw (string) |
void | InitModule () |
void | UnmapModule () |
Private Member Functions | |
CCAENV830 (const CCAENV830 &rhs) | |
CCAENV830 & | operator= (const CCAENV830 &rhs) |
int | operator== (const CCAENV830 &rhs) const |
int | operator!= (const CCAENV830 &rhs) const |
CCAENV830 (const CCAENV830 &rhs) | |
CCAENV830 & | operator= (const CCAENV830 &rhs) |
int | operator== (const CCAENV830 &rhs) const |
int | operator!= (const CCAENV830 &rhs) const |
Private Attributes | |
int | m_nCrate |
int | m_nSlot |
int | m_nEventLength |
int | m_nBase |
CVmeModule * | m_pModule |
int | m_nModuleType |
int | m_nSerialno |
int | m_nFirmware |
bool | m_fGeo |
CVmeModule * | m_pModule |
Definition at line 310 of file CCAENV830.h.
|
|
|
Referenced by CCAENV830Module::Initialize(), and SetTriggerMode(). |
|
Definition at line 314 of file include/CCAENV830.h. |
|
Definition at line 314 of file CCAENV830.h. |
|
Make a new CCAENV830 module. This involves:
Definition at line 338 of file CCAENV830.cpp. |
|
Destroy a VME module: Definition at line 360 of file CCAENV830.cpp. References UnmapModule(). |
|
|
|
|
|
|
|
|
|
|
|
Peforms a software clear:
Definition at line 669 of file CCAENV830.cpp. References PutShort. Referenced by CCAENV830Module::Initialize(), InitModule(), and CCAENV830Module::Read(). |
|
|
|
Figure out how many longwords are in an event. This value is the sum of:
Definition at line 847 of file CCAENV830.cpp. References CSRHeader, GetLong, GetShort, and m_nEventLength. Referenced by DisableHeader(), EnableHeader(), and SetEnableMask(). |
|
|
|
Disable an individual channel of the module:
Definition at line 391 of file CCAENV830.cpp. References GetLong, and ThrowIfBadChannel(). |
|
|
|
Disables automatic reset of scalers on trigger. When this mode is set, triggers do not clear scalers after latching them. Definition at line 551 of file CCAENV830.cpp. References CSRAutoClr, and PutShort. Referenced by CCAENV830Module::Initialize(). |
|
|
|
Disable the inclusion of a scaler header. When this feature is turned off, only the bare scaler channels will be read. Definition at line 510 of file CCAENV830.cpp. References ComputeEventSize(), CSRHeader, and PutShort. Referenced by CCAENV830Module::Initialize(). |
|
|
|
Enable an individual channel of the module:
Definition at line 377 of file CCAENV830.cpp. References GetLong, and ThrowIfBadChannel(). |
|
|
|
Enables automatic reset of the scalers on trigger. When this mode is set, each trigger clears the scalers after latching them. Definition at line 541 of file CCAENV830.cpp. References CSRAutoClr, and PutShort. Referenced by CCAENV830Module::Initialize(), and InitModule(). |
|
|
|
Enable the inclusion of a scaler header. When this feature is turned on, the scaler will include header information that includes:
Definition at line 500 of file CCAENV830.cpp. References ComputeEventSize(), CSRHeader, and PutShort. Referenced by CCAENV830Module::Initialize(), and InitModule(). |
|
|
|
Controls the action of the front panel clear depending on the parameter:
Definition at line 525 of file CCAENV830.cpp. References CSRFPClear, and PutShort. Referenced by CCAENV830Module::Initialize(), and InitModule(). |
|
Definition at line 355 of file include/CCAENV830.h. References m_nCrate. |
|
Definition at line 355 of file CCAENV830.h. References m_nCrate. |
|
Definition at line 364 of file include/CCAENV830.h. References m_nFirmware. |
|
Definition at line 364 of file CCAENV830.h. References m_nFirmware. |
|
|
|
Get the total number of events in the MEB. This only means something if the module is not busy!!!! Definition at line 710 of file CCAENV830.cpp. References GetShort. |
|
Definition at line 361 of file include/CCAENV830.h. References m_nModuleType. |
|
Definition at line 361 of file CCAENV830.h. References m_nModuleType. |
|
Definition at line 368 of file include/CCAENV830.h. References m_nSerialno. |
|
Definition at line 368 of file CCAENV830.h. References m_nSerialno. |
|
Definition at line 358 of file include/CCAENV830.h. References m_nSlot. |
|
Definition at line 358 of file CCAENV830.h. References m_nSlot. |
|
|
|
Setup a module. The default setup is:
Definition at line 821 of file CCAENV830.cpp. References Clear(), EnableAutoReset(), EnableHeader(), FPClearsMEB(), Random, Reset(), SetEnableMask(), SetNarrow(), and SetTriggerMode(). |
|
|
|
Checks the almost full bit in the module status register. This bit is normally used if the scaler is used in multi-event mode.
Definition at line 589 of file CCAENV830.cpp. References GetShort, and STATUSAFull. |
|
|
|
Checks the data ready bit in the status register.
Definition at line 572 of file CCAENV830.cpp. References GetShort, and STATUSDready. Referenced by CCAENV830Module::Read(), and ReadEvent(). |
|
|
|
Checks the full bit in the status register. This bit is set when there is insufficient space in the MEB to allow the storage of the module's worst case event (33 longs). When the full bit is set, the module will no longer accept triggers until this condition is cleared either by reading data from the MEB or by clearing the MEB.
Definition at line 607 of file CCAENV830.cpp. References GetShort, and STATUSFull. |
|
|
|
Checks the Global busy bit. The use of the global busy bit depends on whether or not the front panel control connector is bussed with other modules.
Definition at line 641 of file CCAENV830.cpp. References GetShort, and STATUSGBusy. |
|
|
|
Checks the global data ready bit. This is bit is set when the front panel control connector is bussed with other modules and at least one module on the bus has it's Dready set. In pure CAEN module systems, this can be used as a trigger condition.
Definition at line 624 of file CCAENV830.cpp. References GetShort, and STATUSGDready. |
|
|
|
Map the vme module. This involves:
The CAEN Modules use the addressing convention that the Geographical VME address is slot << 19. We use the convention that these modules are then remapped to slot << 24. Definition at line 731 of file CCAENV830.cpp. References ADEREnable, CAENV830_PROMBASE, CAENV830Registers, CAENV830ROM, GetProm, GetShort, PutShort, and ThrowIntString(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Read an individual instantaneous scaler channel.
Definition at line 972 of file CCAENV830.cpp. References GetLong. |
|
|
|
|
|
|
|
Read an event: A local buffer is created into which the event is read using the ReadEvent(void*) member. THis is then transferred into a DAQBuffer via a DAQWordBuffer and an offest.
Definition at line 948 of file CCAENV830.cpp. References m_nEventLength, and ReadEvent(). |
|
Read an event: A local buffer is created into which the event is read using the ReadEvent(void* pBuffer) member. This is then transferred into a DAQWordBuffer via a DAQWordBufferPtr.
Definition at line 918 of file CCAENV830.cpp. References m_nEventLength, and ReadEvent(). |
|
Read Event: Reads the next event from the MEB. To do this we must:
Definition at line 888 of file CCAENV830.cpp. References GetLong, isDataReady(), m_nBase, m_nEventLength, and m_pModule. Referenced by CCAENV830Module::Read(), and ReadEvent(). |
|
|
|
Resets the module. A reset restores the power up configuration of the module with the exception of:
Definition at line 657 of file CCAENV830.cpp. References PutShort. Referenced by InitModule(). |
|
|
|
Set the current almost full value.
Definition at line 701 of file CCAENV830.cpp. References PutShort. |
|
Definition at line 374 of file include/CCAENV830.h. References m_nCrate. |
|
Definition at line 374 of file CCAENV830.h. References m_nCrate. |
|
|
|
Set the dwell time. In periodic trigger mode, this is the length of time the module counts between latching triggers.
Definition at line 425 of file CCAENV830.cpp. References PutLong. |
|
|
|
Set the module enable register. This sets the state of all the channel enables according to the mask parameter.
Definition at line 406 of file CCAENV830.cpp. References ComputeEventSize(), and PutLong. Referenced by CCAENV830Module::Initialize(), and InitModule(). |
|
Definition at line 383 of file include/CCAENV830.h. References m_nFirmware. |
|
Definition at line 383 of file CCAENV830.h. References m_nFirmware. |
|
Definition at line 380 of file include/CCAENV830.h. References m_nModuleType. |
|
Definition at line 380 of file CCAENV830.h. References m_nModuleType. |
|
|
|
Set the scaler readout format to narrow mode. This adds channel labelling information to each channel. It is best used when you have enabled a noncontiguous set of channels and the counts range of 26 bits is adequate for your application. Note that 26 bits gives somewhat more than 64Million counts before overflowing. Definition at line 486 of file CCAENV830.cpp. References CSRFormat, and PutShort. Referenced by CCAENV830Module::Initialize(), and InitModule(). |
|
Definition at line 377 of file include/CCAENV830.h. References m_nSlot. |
|
Definition at line 377 of file CCAENV830.h. References m_nSlot. |
|
|
|
Sets the current value of the trigger counter. When the header is enabled, the trigger counter appears in each event header.
Definition at line 690 of file CCAENV830.cpp. References PutLong. |
|
|
|
Set the trigger mode:
Definition at line 443 of file CCAENV830.cpp. References CSRAcqDisable, CSRAcqMode, CSRAcqPeriodic, CSRAcqRandom, GetShort, PutShort, ThrowIntString(), and TriggerMode. Referenced by CCAENV830Module::Initialize(), and InitModule(). |
|
|
|
Set the scaler readout format to wide mode. This drops channel labelling information off the event... it then becomes the user's responsibility to know which channel is which in the otput stream. Use with caution, and only if 26 bits of scaler information is not sufficient. Definition at line 474 of file CCAENV830.cpp. References CSRFormat, and PutShort. Referenced by CCAENV830Module::Initialize(). |
|
|
|
Provides a vme trigger fo the module Note that for this to have any effect, the module must be in random trigger mode. Definition at line 678 of file CCAENV830.cpp. References PutShort. Referenced by CCAENV830Module::Read(). |
|
|
|
Destroy any memory map held on the module: Definition at line 862 of file CCAENV830.cpp. References m_pModule. Referenced by ~CCAENV830(). |
|
Definition at line 330 of file include/CCAENV830.h. |
|
Definition at line 325 of file include/CCAENV830.h. Referenced by ReadEvent(). |
|
Definition at line 322 of file include/CCAENV830.h. Referenced by getCrate(), and setCrate(). |
|
Definition at line 324 of file include/CCAENV830.h. Referenced by ComputeEventSize(), and ReadEvent(). |
|
Definition at line 329 of file include/CCAENV830.h. Referenced by getFirmware(), and setFirmware(). |
|
Definition at line 327 of file include/CCAENV830.h. Referenced by getModuleType(), and setModuleType(). |
|
Definition at line 328 of file include/CCAENV830.h. Referenced by getSerial(). |
|
Definition at line 323 of file include/CCAENV830.h. |
|
Definition at line 326 of file include/CCAENV830.h. |
|
Definition at line 326 of file CCAENV830.h. Referenced by ReadEvent(), and UnmapModule(). |