#include <CCAENV830Module.h>
Inheritance diagram for CCAENV830Module:
Public Member Functions | |
CCAENV830Module (const string &rName, CTCLInterpreter &rInterp) | |
virtual | ~CCAENV830Module () |
virtual void | Initialize () |
virtual void | Prepare () |
virtual void | Read (DAQWordBufferPtr &rBuffer) |
virtual int | Read (void *pBuffer) |
virtual void | Clear () |
virtual string | getType () const |
Return module type string (pure virt). | |
CCAENV830Module (const string &rName, CTCLInterpreter &rInterp) | |
virtual | ~CCAENV830Module () |
virtual void | Initialize () |
Initialize the readable (pure virt.). | |
virtual void | Prepare () |
Prepare module for readout (pure virt.). | |
virtual void | Read (DAQWordBufferPtr &rBuffer) |
Read to DAQ buf. | |
virtual int | Read (void *pBuffer) |
Read to ordinary buf. | |
virtual void | Clear () |
Clear (after read e.g.).(Pure virt). | |
virtual string | getType () const |
Return module type string (pure virt). | |
Private Member Functions | |
CCAENV830Module (const CCAENV830Module &rhs) | |
CCAENV830Module & | operator= (const CCAENV830Module &rhs) |
int | operator!= (const CCAENV830Module &rhs) |
int | operator== (const CCAENV830Module &rhs) |
CCAENV830Module (const CCAENV830Module &rhs) | |
CCAENV830Module & | operator= (const CCAENV830Module &rhs) |
int | operator!= (const CCAENV830Module &rhs) |
int | operator== (const CCAENV830Module &rhs) |
Private Attributes | |
CCAENV830 * | m_pModule |
The module hardware driver. | |
int | m_nId |
Packet id. | |
bool | m_fHeader |
True if headers enabled. | |
bool | m_fWide |
True if module reads are wide. | |
bool | m_fManualClear |
True if manual clear needed. | |
bool | m_fPacketize |
True if should add packet info. | |
bool | m_fVmeTrigger |
True if trigger via VME. | |
unsigned long | m_lEnables |
Channel enables mask. | |
int | m_nCrate |
Crate of module. | |
int | m_nSlot |
Slot of module. | |
CCAENV830 * | m_pModule |
The module hardware driver. |
Since the module has modes in which it is not possible to mechanically decode it, if packetize is true, Read will insert additional information into the event stream:
+--------------------------------+ |H|W| Slot (5) |X| Crate (8) | +-+-+-----------+-+--------------+ ^ ^ ^ ^ ^ | | | | +--------- 8 bits of module crate num. | | | +--------------- 1 unused bit. | | +----------------------- 5 bits of Geographical addr. | +----------------------------- 1 bit set if wide readout. +------------------------------- 1 bit set if header enabled.
Definition at line 364 of file CCAENV830Module.h.
|
Construct a scaler module reader. This does not actually construct the underlying CCAENV830 module. Instead it constructs the configuration parameters for the module and defines them to the base class. The module driver itself will be constructed as a result of the Initialize() call.
Definition at line 302 of file CCAENV830Module.cpp. References CConfigurableObject::AddBoolParam(), CDigitizerModule::AddIntArrayParam(), CDigitizerModule::AddIntParam(), CDigitizerModule::AddStringArrayParam(), CDigitizerModule::end(), CDigitizerModule::Find(), CDigitizerModule::ParameterIterator, CIntArrayParam::setRange(), and CIntConfigParam::setRange(). |
|
Destruction of the module implies destruction of the card driver. Definition at line 371 of file CCAENV830Module.cpp. References m_pModule. |
|
|
|
|
|
|
|
|
|
Clear (after read e.g.).(Pure virt).
Implements CDigitizerModule. |
|
Clear is not required on an event by event basis since it's done in read to minimize dropped counts. Implements CDigitizerModule. Definition at line 609 of file CCAENV830Module.cpp. |
|
Return module type string (pure virt).
Implements CDigitizerModule. Definition at line 400 of file include/CCAENV830Module.h. |
|
Return module type string (pure virt).
Implements CDigitizerModule. Definition at line 400 of file CCAENV830Module.h. |
|
Initialize the readable (pure virt.).
Implements CDigitizerModule. |
|
Initialize the module. This means:
Implements CDigitizerModule. Definition at line 385 of file CCAENV830Module.cpp. References CCAENV830::Clear(), CCAENV830::DisableAutoReset(), CCAENV830::Disabled, CCAENV830::DisableHeader(), CCAENV830::EnableAutoReset(), CCAENV830::EnableHeader(), CDigitizerModule::Find(), CCAENV830::FPClearsMEB(), CBoolConfigParam::getOptionValue(), CIntConfigParam::getOptionValue(), m_fHeader, m_fManualClear, m_fPacketize, m_fVmeTrigger, m_fWide, m_lEnables, m_nCrate, m_nId, m_nSlot, m_pModule, CDigitizerModule::ParameterIterator, CCAENV830::Periodic, CCAENV830::Random, CCAENV830::SetEnableMask(), CCAENV830::SetNarrow(), CCAENV830::SetTriggerMode(), CCAENV830::SetWide(), and CCAENV830::TriggerMode. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Prepare module for readout (pure virt.).
Implements CDigitizerModule. |
|
Prepare to read an event (first or after the prior one). This is a NO-OP as the module does not need any resetting etc. Implements CDigitizerModule. Definition at line 522 of file CCAENV830Module.cpp. |
|
Read to ordinary buf.
Implements CDigitizerModule. |
|
Read to DAQ buf.
Implements CDigitizerModule. |
|
Read the module into an ordinary buffer. Implements CDigitizerModule. Definition at line 556 of file CCAENV830Module.cpp. References CCAENV830::Clear(), CCAENV830::isDataReady(), m_fHeader, m_fManualClear, m_fPacketize, m_fVmeTrigger, m_fWide, m_lEnables, m_nCrate, m_nId, m_nSlot, m_pModule, CCAENV830::ReadEvent(), and CCAENV830::Trigger(). |
|
Read an Event from the module. See the class documentation for the data format.
Implements CDigitizerModule. Definition at line 536 of file CCAENV830Module.cpp. |
|
True if headers enabled.
Definition at line 370 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
True if manual clear needed.
Definition at line 372 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
True if should add packet info.
Definition at line 373 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
True if trigger via VME.
Definition at line 374 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
True if module reads are wide.
Definition at line 371 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
Channel enables mask.
Definition at line 375 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
Crate of module.
Definition at line 376 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
Packet id.
Definition at line 369 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
Slot of module.
Definition at line 377 of file include/CCAENV830Module.h. Referenced by Initialize(), and Read(). |
|
The module hardware driver.
Definition at line 368 of file include/CCAENV830Module.h. |
|
The module hardware driver.
Definition at line 368 of file CCAENV830Module.h. Referenced by Initialize(), Read(), and ~CCAENV830Module(). |