6 #ifdef HAVE_PERKIN_ELMER
14 #ifdef HAVE_AREADETECTOR
15 #include "qxrddetectorepicsarea.h"
26 int detType,
int detNum,
38 printf(
"QxrdDetectorThread::QxrdDetectorThread(%p)\n",
this);
50 expt->printMessage(
"QxrdDetectorThread::~QxrdDetectorThread");
57 printf(
"QxrdDetectorThread::~QxrdDetectorThread(%p)\n",
this);
68 QString res =
"unknown";
69 switch (detectorType) {
75 res =
"Simulated Detector";
79 res =
"Perkin Elmer Detector";
83 res =
"Pilatus Detector";
87 res =
"Epics Area Detector";
114 QString res =
"unknown";
116 switch (detectorSubType) {
118 res =
"PCI/PCIe Interface";
122 res =
"Gigabit Ethernet by IP Address";
126 res =
"Gigabit Ethernet by MAC Address";
130 res =
"Gigabit Ethernet by device name";
134 res =
"Gigabit Ethernet by Auto Scan";
158 res.append(
"0.25 pF (High)");
159 res.append(
"0.5 pF");
163 res.append(
"8 pF (Low)");
170 QString res =
"Unkown Binning";
172 switch (binningMode) {
178 res =
"2x2 Averaged Binning";
182 res =
"2x2 Summed Binning";
203 printf(
"Detector Thread Started\n");
214 setObjectName(
"simulatedDetector");
222 #ifdef HAVE_PERKIN_ELMER
224 setObjectName(
"perkinElmerDetector");
235 setObjectName(
"pilatusDetector");
244 #ifdef HAVE_AREADETECTOR
246 setObjectName(
"epicsAreaDetector");
256 setObjectName(
"fileWatcherDetector");
268 setObjectName(
"simulatedDetector");
295 printf(
"Detector Thread Terminated with rc %d\n", rc);
301 while (isRunning()) {
324 switch (detectorType) {
334 #ifdef HAVE_PERKIN_ELMER
344 #ifdef HAVE_AREADETECTOR
346 QxrdDetectorEpicsArea::pushDefaultsToProxy(proxy);
QSharedPointer< QxrdExperiment > QxrdExperimentPtr
QSharedPointer< QxrdDetectorProxy > QxrdDetectorProxyPtr
qint64 qcepDebug(int cond)
QcepSettingsSaverWPtr m_Saver
static QStringList binningModeNamesPE()
QxrdDetectorPtr detector() const
QWeakPointer< QxrdExperiment > QxrdExperimentWPtr
virtual ~QxrdDetectorThread()
static QString binningModeNamePE(int binningMode)
static QStringList gainModeNamesPE()
QxrdDetectorPtr m_Detector
QxrdExperimentWPtr m_Experiment
static void pushDefaultsToProxy(QxrdDetectorProxyPtr proxy)
QxrdDetectorThread(QcepSettingsSaverWPtr saver, QxrdExperimentWPtr expt, QxrdAcquisitionWPtr acq, int detType, int detNum, QcepObject *parent)
static void pushDefaultsToProxy(QxrdDetectorProxyPtr proxy)
static void pushDefaultsToProxy(int detectorType, QxrdDetectorProxyPtr proxy)
QWeakPointer< QxrdAcquisition > QxrdAcquisitionWPtr
static QStringList detectorSubTypeNamesPE()
static QString detectorSubTypeNamePE(int detectorSubType)
static void pushDefaultsToProxy(QxrdDetectorProxyPtr proxy, int detType)
static void pushDefaultsToProxy(QxrdDetectorProxyPtr proxy)
QSharedPointer< QxrdDetector > QxrdDetectorPtr
static int detectorTypeCount()
static QString detectorTypeName(int detectorType)
static void pushDefaultsToProxy(QxrdDetectorProxyPtr proxy)
QxrdAcquisitionWPtr m_Acquisition
QWeakPointer< QcepSettingsSaver > QcepSettingsSaverWPtr
static QStringList detectorTypeNames()