- Adapted indenation to new agreed upon system
- Added support for second generation scriptcontext based counter
This commit is contained in:
75
hmdata.h
75
hmdata.h
@ -12,56 +12,51 @@
|
||||
#include "sics.h"
|
||||
#include "HistMem.h"
|
||||
#include "stringdict.h"
|
||||
#define MAXCHAN 16834
|
||||
#define MAXCHAN 16834
|
||||
#define MAXDIM 3
|
||||
|
||||
|
||||
typedef struct __hmdata{
|
||||
int rank;
|
||||
int iDim[MAXDIM];
|
||||
int nTimeChan;
|
||||
float timeBinning[MAXCHAN];
|
||||
int tofMode;
|
||||
time_t nextUpdate;
|
||||
int updateIntervall;
|
||||
int updateFlag;
|
||||
HistInt *localBuffer;
|
||||
struct __hmdata *timeslave;
|
||||
} HMdata, *pHMdata;
|
||||
typedef struct __hmdata {
|
||||
int rank;
|
||||
int iDim[MAXDIM];
|
||||
int nTimeChan;
|
||||
float timeBinning[MAXCHAN];
|
||||
int tofMode;
|
||||
time_t nextUpdate;
|
||||
int updateIntervall;
|
||||
int updateFlag;
|
||||
HistInt *localBuffer;
|
||||
struct __hmdata *timeslave;
|
||||
} HMdata, *pHMdata;
|
||||
|
||||
|
||||
|
||||
pHMdata makeHMData(void);
|
||||
void killHMData(pHMdata self);
|
||||
void clearHMData(pHMdata self);
|
||||
|
||||
int configureHMdata(pHMdata self, pStringDict pOpt,
|
||||
SConnection *pCon);
|
||||
int resizeBuffer(pHMdata self);
|
||||
int genTimeBinning(pHMdata self, float start, float step,
|
||||
int noSteps);
|
||||
int setTimeBin(pHMdata self, int index, float value);
|
||||
pHMdata makeHMData(void);
|
||||
void killHMData(pHMdata self);
|
||||
void clearHMData(pHMdata self);
|
||||
|
||||
int getNoOfTimebins(pHMdata self);
|
||||
float *getTimeBinning(pHMdata self);
|
||||
int isInTOFMode(pHMdata self);
|
||||
void clearTimeBinning(pHMdata self);
|
||||
int configureHMdata(pHMdata self, pStringDict pOpt, SConnection * pCon);
|
||||
int resizeBuffer(pHMdata self);
|
||||
int genTimeBinning(pHMdata self, float start, float step, int noSteps);
|
||||
int setTimeBin(pHMdata self, int index, float value);
|
||||
|
||||
void getHMDataDim(pHMdata self, int iDIM[MAXDIM], int *rank);
|
||||
long getHMDataLength(pHMdata self);
|
||||
int getNoOfTimebins(pHMdata self);
|
||||
float *getTimeBinning(pHMdata self);
|
||||
int isInTOFMode(pHMdata self);
|
||||
void clearTimeBinning(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);
|
||||
void getHMDataDim(pHMdata self, int iDIM[MAXDIM], int *rank);
|
||||
long getHMDataLength(pHMdata self);
|
||||
|
||||
long sumHMDataRectangle(pHistMem self, SConnection *pCon,
|
||||
int start[MAXDIM], int end[MAXDIM]);
|
||||
int loadHMData(pHMdata self, SConnection *pCon, char *filename);
|
||||
int getHMDataHistogram(pHistMem hist, SConnection * pCon,
|
||||
int bank, int start, int length, HistInt * lData);
|
||||
void updateHMData(pHMdata self);
|
||||
HistInt *getHMDataBufferPointer(pHistMem hist, SConnection * pCon);
|
||||
|
||||
HistInt *subSample(pHMdata self, char *command,
|
||||
char *error, int errLen);
|
||||
long sumHMDataRectangle(pHistMem self, SConnection * pCon,
|
||||
int start[MAXDIM], int end[MAXDIM]);
|
||||
int loadHMData(pHMdata self, SConnection * pCon, char *filename);
|
||||
|
||||
HistInt *subSample(pHMdata self, char *command, char *error, int errLen);
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user