- Added bridge functions to histmemsec to make it look more like histmem
- Modifed many modules using histmem to work also with histmemsec - Extended tasker with task names and task groups - There is a new taskobj which allows to list tasks and to interact with them. - Task now supports running Tcl functions as tasks - There is a new experimental sctcomtask module which allows to define communication tasks against a scriptcontext. This is a new feature which should facilitate writing sequential scripts using asynchronous communication. - A fix to make spss7 work when there are no switches - ORION support for single X. TRICS measures crystals hanging down, ORION standing up SKIPPED: psi/ease.c psi/faverage.c psi/jvlprot.c psi/make_gen psi/pardef.c psi/polterwrite.c psi/psi.c psi/sinq.c psi/spss7.c
This commit is contained in:
13
fomerge.c
13
fomerge.c
@ -19,6 +19,9 @@
|
||||
extended to support nxscripted file writing: Mark Koennecke, May 2004
|
||||
|
||||
extended to support GTSE, Mark Koennecke, May 2008
|
||||
|
||||
modifed to support second generation HM's via the bridge,
|
||||
Mark Koennecke, December 2012
|
||||
--------------------------------------------------------------------------*/
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
@ -428,20 +431,20 @@ static int updateHMFMData(SicsInterp * pSics, SConnection * pCon)
|
||||
HistInt *data = NULL;
|
||||
pHistMem pMem = NULL;
|
||||
|
||||
pMem = (pHistMem) FindCommandData(pSics, "hm2", "HistMem");
|
||||
pMem = (pHistMem) FindHM(pSics, "hm2");
|
||||
if (pMem == NULL) {
|
||||
return 0;
|
||||
}
|
||||
fTimeBin = GetHistTimeBin(pMem, &iTime);
|
||||
setFMDataPointer(GetHistogramPointer(pMem, pCon), iTime, MIDDLE);
|
||||
|
||||
pMem = (pHistMem) FindCommandData(pSics, "hm1", "HistMem");
|
||||
pMem = (pHistMem) FindHM(pSics, "hm1");
|
||||
if (pMem == NULL) {
|
||||
return 0;
|
||||
}
|
||||
setFMDataPointer(GetHistogramPointer(pMem, pCon), iTime, LOWER);
|
||||
|
||||
pMem = (pHistMem) FindCommandData(pSics, "hm3", "HistMem");
|
||||
pMem = (pHistMem) FindHM(pSics, "hm3");
|
||||
if (pMem == NULL) {
|
||||
return 0;
|
||||
}
|
||||
@ -567,7 +570,7 @@ static int TOFLambda(SicsInterp * pSics, SConnection * pCon,
|
||||
float fCenter, fFWHM, fStdDev, fVal;
|
||||
float fMon, fData, distMonoDet, distFermiDet, tdiff, lambda;
|
||||
|
||||
pMem = (pHistMem) FindCommandData(pSics, "hm1", "HistMem");
|
||||
pMem = (pHistMem) FindHM(pSics, "hm1");
|
||||
if (pMem == NULL) {
|
||||
SCWrite(pCon,
|
||||
"ERROR: need lower detector bank for lambda calculation",
|
||||
@ -650,7 +653,7 @@ static float calcElastic(SicsInterp * pSics, SConnection * pCon)
|
||||
pHistMem pMem = NULL;
|
||||
float fCenter, fFWHM, fStdDev, fVal;
|
||||
|
||||
pMem = (pHistMem) FindCommandData(pSics, "hm2", "HistMem");
|
||||
pMem = (pHistMem) FindHM(pSics, "hm2");
|
||||
if (pMem == NULL) {
|
||||
SCWrite(pCon,
|
||||
"ERROR: need middle detector bank for elastic peak calculation",
|
||||
|
Reference in New Issue
Block a user