qmca
0.0.20
|
#include <bm12controller.h>
Public Member Functions | |
BM12Controller (MCAController *ctrl, QwtPlot *graph, QObject *parent=0) | |
virtual | ~BM12Controller () |
EpicsMCA * | mca () |
EpicsA2DConverter * | a2d () |
EpicsPulseAnalyser * | pulseAnalyser (int chan) |
EpicsPowerSupply * | powerSupply () |
double | calibratedValue (int bin) |
void | selectSCA (int ch, int win) |
void | save (int ch, int mem) |
void | clear (int ch, int mem) |
void | count (int ch, int win) |
void | updateGraph () |
void | saveData (int ch) |
void | saveEnergyWindows (int ch) |
void | loadEnergyWindows (int ch) |
Private Slots | |
void | mcaValueChanged () |
Private Attributes | |
int | m_NChannels |
EpicsMCA | m_MCA |
EpicsA2DConverter | m_ADC |
EpicsPowerSupply | m_HVPS |
QList< EpicsPulseAnalyser * > | m_TCA |
QList< BM12Waveforms * > | m_Waveforms |
MCAController * | m_Controller |
QwtPlot * | m_Graph |
int | m_CurrentChannel |
int | m_CurrentWindow |
QString | m_SaveDataPath |
QString | m_SaveWindowsPath |
Definition at line 15 of file bm12controller.h.
BM12Controller::BM12Controller | ( | MCAController * | ctrl, |
QwtPlot * | graph, | ||
QObject * | parent = 0 |
||
) |
Definition at line 11 of file bm12controller.cpp.
References m_ADC, m_HVPS, m_MCA, m_NChannels, m_TCA, m_Waveforms, mcaValueChanged(), EpicsA2DConverter::setGain(), EpicsPowerSupply::setLimit(), EpicsA2DConverter::setLowerLevelDiscrim(), EpicsA2DConverter::setOffset(), EpicsA2DConverter::setRange(), EpicsA2DConverter::setUpperLevelDiscrim(), and EpicsPowerSupply::setVoltage().
|
virtual |
EpicsA2DConverter * BM12Controller::a2d | ( | ) |
double BM12Controller::calibratedValue | ( | int | bin | ) |
Definition at line 215 of file bm12controller.cpp.
Referenced by saveData(), and updateGraph().
void BM12Controller::clear | ( | int | ch, |
int | mem | ||
) |
Definition at line 108 of file bm12controller.cpp.
References EpicsMCA::erase(), m_MCA, m_Waveforms, and updateGraph().
Referenced by BM12ControlPanel::clear1(), BM12ControlPanel::clear2(), BM12ControlPanel::clear3(), and BM12ControlPanel::clearTotal().
void BM12Controller::count | ( | int | ch, |
int | win | ||
) |
Definition at line 168 of file bm12controller.cpp.
References EpicsMCA::eraseAndStart(), m_CurrentChannel, m_CurrentWindow, m_MCA, and mcaValueChanged().
Referenced by BM12ControlPanel::countMCA().
void BM12Controller::loadEnergyWindows | ( | int | ch | ) |
Definition at line 379 of file bm12controller.cpp.
References m_SaveWindowsPath, pulseAnalyser(), EpicsPulseAnalyser::setLowerLevel(), and EpicsPulseAnalyser::setUpperLevel().
Referenced by BM12ControlPanel::loadEnergyWindows().
EpicsMCA * BM12Controller::mca | ( | ) |
Definition at line 54 of file bm12controller.cpp.
References m_MCA.
Referenced by BM12ControlPanel::BM12ControlPanel().
|
privateslot |
Definition at line 180 of file bm12controller.cpp.
References m_CurrentChannel, m_CurrentWindow, m_MCA, m_Waveforms, updateGraph(), and EpicsArray::value().
Referenced by BM12Controller(), and count().
EpicsPowerSupply * BM12Controller::powerSupply | ( | ) |
Definition at line 69 of file bm12controller.cpp.
References m_HVPS.
Referenced by BM12ControlPanel::BM12ControlPanel().
EpicsPulseAnalyser * BM12Controller::pulseAnalyser | ( | int | chan | ) |
Definition at line 64 of file bm12controller.cpp.
References m_TCA.
Referenced by BM12ControlPanel::BM12ControlPanel(), loadEnergyWindows(), and selectSCA().
void BM12Controller::save | ( | int | ch, |
int | mem | ||
) |
Definition at line 138 of file bm12controller.cpp.
References m_Waveforms, and updateGraph().
Referenced by BM12ControlPanel::save1(), BM12ControlPanel::save2(), and BM12ControlPanel::save3().
void BM12Controller::saveData | ( | int | ch | ) |
Definition at line 316 of file bm12controller.cpp.
References calibratedValue(), m_SaveDataPath, m_Waveforms, max(), BM12Waveforms::YData(), BM12Waveforms::YDataSaved1(), BM12Waveforms::YDataSaved2(), BM12Waveforms::YDataSaved3(), BM12Waveforms::YDataSCA1(), BM12Waveforms::YDataSCA2(), and BM12Waveforms::YDataSCA3().
Referenced by BM12ControlPanel::saveData().
void BM12Controller::saveEnergyWindows | ( | int | ch | ) |
Definition at line 417 of file bm12controller.cpp.
References EpicsPulseAnalyser::channelCount(), EpicsPulseAnalyser::lowerLevel(), m_SaveWindowsPath, m_TCA, EpicsObject::pvName(), EpicsPulseAnalyser::upperLevel(), and EpicsDouble::value().
Referenced by BM12ControlPanel::saveEnergyWindows().
void BM12Controller::selectSCA | ( | int | ch, |
int | win | ||
) |
Definition at line 74 of file bm12controller.cpp.
References EpicsPulseAnalyser::channelCount(), m_ADC, m_CurrentChannel, m_CurrentWindow, m_NChannels, pulseAnalyser(), EpicsA2DConverter::setCoincidence(), EpicsPulseAnalyser::setGated(), EpicsPulseAnalyser::setSelected(), EpicsObject::settle(), and updateGraph().
Referenced by BM12ControlPanel::selectSCA(), and BM12ControlPanel::setChannel().
void BM12Controller::updateGraph | ( | ) |
Definition at line 220 of file bm12controller.cpp.
References calibratedValue(), m_Controller, m_CurrentChannel, m_Graph, m_Waveforms, BM12Waveforms::XData(), BM12Waveforms::YData(), BM12Waveforms::YDataSaved1(), BM12Waveforms::YDataSaved2(), BM12Waveforms::YDataSaved3(), BM12Waveforms::YDataSCA1(), BM12Waveforms::YDataSCA2(), and BM12Waveforms::YDataSCA3().
Referenced by clear(), mcaValueChanged(), save(), and selectSCA().
|
private |
Definition at line 47 of file bm12controller.h.
Referenced by a2d(), BM12Controller(), and selectSCA().
|
private |
Definition at line 51 of file bm12controller.h.
Referenced by updateGraph().
|
private |
Definition at line 53 of file bm12controller.h.
Referenced by count(), mcaValueChanged(), selectSCA(), and updateGraph().
|
private |
Definition at line 54 of file bm12controller.h.
Referenced by count(), mcaValueChanged(), and selectSCA().
|
private |
Definition at line 52 of file bm12controller.h.
Referenced by updateGraph().
|
private |
Definition at line 48 of file bm12controller.h.
Referenced by BM12Controller(), and powerSupply().
|
private |
Definition at line 46 of file bm12controller.h.
Referenced by BM12Controller(), clear(), count(), mca(), and mcaValueChanged().
|
private |
Definition at line 45 of file bm12controller.h.
Referenced by BM12Controller(), and selectSCA().
|
private |
Definition at line 55 of file bm12controller.h.
Referenced by saveData().
|
private |
Definition at line 56 of file bm12controller.h.
Referenced by loadEnergyWindows(), and saveEnergyWindows().
|
private |
Definition at line 49 of file bm12controller.h.
Referenced by BM12Controller(), pulseAnalyser(), saveEnergyWindows(), and ~BM12Controller().
|
private |
Definition at line 50 of file bm12controller.h.
Referenced by BM12Controller(), clear(), mcaValueChanged(), save(), saveData(), updateGraph(), and ~BM12Controller().