#include <CAENchain.h>
Public Methods | |
CAENchain (int first=0, int last=0, int crate=0) | |
Create a chain of contiguous modules. More... | |
CAENchain & | operator= (const CAENchain &chain) |
Reference counted copy constructor. More... | |
~CAENchain () | |
Reference counted destructor. | |
CAENcard | slot (int slotNum) |
Returns the CAENcard that references the module in the requested physical slot. More... | |
CAENcard | operator[] (int index) |
Returns the CAENcard in the chain at zero-based position index. More... | |
int | length () |
Returns the number of cards in the chain. More... | |
void | setCrate (int crateNum) |
Uses crateNum to set the crate value present in the header of each event. More... | |
void | clearData () |
Empties the event buffer in all of the cards in the chain. More... | |
void | reset () |
Resets every card in the chain. See CAENcard::reset() for details of its effects. More... | |
int | readEvent (void *buf) |
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(void*) on each card. More... | |
int | readEvent (DAQWordBuffer &wbuf, int start) |
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQWordBuffer, int) on each card. More... | |
int | readEvent (DAQWordBufferPtr &wp) |
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQWordBufferPtr) on each card. More... | |
int | readEvent (DAQDWordBuffer &dwbuf, int start) |
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQDWordBuffer, int) on each card. More... | |
int | readEvent (DAQDWordBufferPtr &dwp) |
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQDWordBufferPtr) on each card. More... |
Any cards that you wish to treat as a chain must be contiguous in the crate, ie: no empty slots or other types of cards in the middle of the chain. The chain may, however, contain any combination of the cards supported by CAENcard.
If you have a specific question or request email Chris Maurice at <maurice@nscl.msu.edu> and I will do my best to help.
|
Create a chain of contiguous modules.
The first and last card must be different (in other words the chain must have at least two cards in it) or an empty chain will be returned. |
|
Empties the event buffer in all of the cards in the chain. Equivalent to calling CAENcard::clearData() on each card in the chain. |
|
Returns the number of cards in the chain.
|
|
Reference counted copy constructor.
|
|
Returns the CAENcard in the chain at zero-based position index.
|
|
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQDWordBufferPtr) on each card.
Under normal conditions the readEvent(DAQDWordBuffer& wbuf, int offset) fuction is much easier and intuitive to use. |
|
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQDWordBuffer, int) on each card.
|
|
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQWordBufferPtr) on each card.
Under normal conditions the readEvent(DAQWordBuffer& wbuf, int offset) fuction is much easier and intuitive to use. |
|
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(DAQWordBuffer, int) on each card.
|
|
Reads one event from the buffer of each card. Equivalent to calling CAENcard::readEvent(void*) on each card.
|
|
Resets every card in the chain. See CAENcard::reset() for details of its effects. Equivalent to calling CAENcard::reset() on each card in the chain. |
|
Uses crateNum to set the crate value present in the header of each event. /param crateNum This number will appear in the header of every event in the chain. You may also change the settings on individual cards in the chain, although this is not very useful since the data is tagged with the slot number of the card. This eight-bit value is set when the boards are initialized (default value is zero). The value appears in the header of each event sent back from the card and is only useful to differentiate between the data from different cards. This value is cleared by a call to reset(). |
|
Returns the CAENcard that references the module in the requested physical slot.
|