- Refactored histogram memory code a little
- motor driver for ECB now fully working - Fixed an anticollider bug - Untested version of a driver for the Risoe TDC histogram memory
This commit is contained in:
61
hmdata.h
Normal file
61
hmdata.h
Normal file
@ -0,0 +1,61 @@
|
||||
|
||||
/*-----------------------------------------------------------------------
|
||||
This is a data handling class for histogram memory data.
|
||||
For more information see hmdata.tex.
|
||||
|
||||
copyright: see file COPYRIGHT
|
||||
|
||||
Mark Koennecke, January 2003
|
||||
-------------------------------------------------------------------------*/
|
||||
#ifndef SICSHMDATA
|
||||
#define SICSHMDATA
|
||||
#include "sics.h"
|
||||
#include "HistMem.h"
|
||||
#include "stringdict.h"
|
||||
#define MAXCHAN 16834
|
||||
#define MAXDIM 3
|
||||
|
||||
|
||||
typedef struct {
|
||||
int rank;
|
||||
int iDim[MAXDIM];
|
||||
int nTimeChan;
|
||||
float timeBinning[MAXCHAN];
|
||||
int tofMode;
|
||||
time_t nextUpdate;
|
||||
int updateIntervall;
|
||||
int updateFlag;
|
||||
HistInt *localBuffer;
|
||||
} HMdata, *pHMdata;
|
||||
|
||||
|
||||
|
||||
pHMdata makeHMData(void);
|
||||
void killHMData(pHMdata self);
|
||||
|
||||
int configureHMdata(pHMdata self, pStringDict pOpt,
|
||||
SConnection *pCon);
|
||||
int genTimeBinning(pHMdata self, float start, float step,
|
||||
int noSteps);
|
||||
int setTimeBin(pHMdata self, int index, float value);
|
||||
|
||||
int getNoOfTimebins(pHMdata self);
|
||||
float *getTimeBinning(pHMdata self);
|
||||
int isInTOFMode(pHMdata self);
|
||||
void clearTimeBinning(pHMdata self);
|
||||
|
||||
void getHMDataDim(pHMdata self, int iDIM[MAXDIM], int *rank);
|
||||
long getHMDataLength(pHMdata self);
|
||||
|
||||
int getHMDataHistogram(pHistMem hist, SConnection *pCon,
|
||||
int bank, int start, int length,
|
||||
HistInt *lData);
|
||||
void updateHMData(pHMdata self);
|
||||
HistInt *getHMDataBufferPointer(pHistMem hist, SConnection *pCon);
|
||||
|
||||
long sumHMDataRectangle(pHistMem self, SConnection *pCon,
|
||||
int start[MAXDIM], int end[MAXDIM]);
|
||||
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user