slsDetector::sharedSlsDetector Struct Reference

Structure allocated in shared memory to store detector settings and be accessed in parallel by several applications (take care of possible conflicts!). More...

#include <slsDetector.h>

List of all members.

Public Attributes

int alreadyExisting
char hostname [MAX_STR_LENGTH]
int controlPort
int stopPort
int dataPort
detectorType myDetectorType
char trimDir [MAX_STR_LENGTH]
char calDir [MAX_STR_LENGTH]
int nTrimEn
int trimEnergies [100]
int fileIndex
char filePath [MAX_STR_LENGTH]
char fileName [MAX_STR_LENGTH]
int nMod [2]
int nMods
int nModMax [2]
int nModsMax
int nChans
int nChips
int nDacs
int nAdcs
int dynamicRange
int dataBytes
int correctionMask
float tDead
int nBadChans
char badChanFile [MAX_STR_LENGTH]
int badChansList [MAX_BADCHANS]
int nBadFF
int badFFList [MAX_BADCHANS]
char angConvFile [MAX_STR_LENGTH]
angleConversionConstant angOff [MAXMODS]
int angDirection
float fineOffset
float globalOffset
int numberOfPositions
float detPositions [MAXPOS]
float binSize
int nROI
ROI roiLimits [MAX_ROIS]
readOutFlags roFlags
detectorSettings currentSettings
int currentThresholdEV
int64_t timerValue [MAX_TIMERS]
int clkDiv
int ffoff
int fferroff
int modoff
int dacoff
int adcoff
int chipoff
int chanoff


Detailed Description

Structure allocated in shared memory to store detector settings and be accessed in parallel by several applications (take care of possible conflicts!).


Member Data Documentation

int slsDetector::sharedSlsDetector::adcoff

memory offsets for the adc arrays

int slsDetector::sharedSlsDetector::alreadyExisting

already existing flag. If the detector does not yet exist (alreadyExisting=0) the sharedMemory will be created, otherwise it will simly be linked

char slsDetector::sharedSlsDetector::angConvFile[MAX_STR_LENGTH]

file with the angular conversion factors

int slsDetector::sharedSlsDetector::angDirection

angular direction (1 if it corresponds to the encoder direction i.e. channel 0 is 0, maxchan is positive high angle, 0 otherwise

angleConversionConstant slsDetector::sharedSlsDetector::angOff[MAXMODS]

array of angular conversion constants for each module

See also:
angleConversionConstant

char slsDetector::sharedSlsDetector::badChanFile[MAX_STR_LENGTH]

file with the bad channels

int slsDetector::sharedSlsDetector::badChansList[MAX_BADCHANS]

list of bad channels

int slsDetector::sharedSlsDetector::badFFList[MAX_BADCHANS]

list of bad channels from flat field i.e. channels which read 0 in the flat field file

float slsDetector::sharedSlsDetector::binSize

bin size for data merging

char slsDetector::sharedSlsDetector::calDir[MAX_STR_LENGTH]

path of the calibration files

int slsDetector::sharedSlsDetector::chanoff

memory offsets for the channel register arrays

int slsDetector::sharedSlsDetector::chipoff

memory offsets for the chip register arrays

int slsDetector::sharedSlsDetector::clkDiv

clock divider

int slsDetector::sharedSlsDetector::controlPort

is the port used for control functions normally it should not be changed

int slsDetector::sharedSlsDetector::correctionMask

corrections to be applied to the data

See also:
correctionFlags

detectorSettings slsDetector::sharedSlsDetector::currentSettings

detector settings (standard, fast, etc.)

int slsDetector::sharedSlsDetector::currentThresholdEV

detector threshold (eV)

int slsDetector::sharedSlsDetector::dacoff

memory offsets for the dac arrays

int slsDetector::sharedSlsDetector::dataBytes

size of the data that are transfered from the detector

int slsDetector::sharedSlsDetector::dataPort

is the port used to acquire the data normally it should not be changed

float slsDetector::sharedSlsDetector::detPositions[MAXPOS]

list of encoder positions at which the detector should acquire

int slsDetector::sharedSlsDetector::dynamicRange

dynamic range of the detector data

int slsDetector::sharedSlsDetector::fferroff

memory offsets for the flat filed coefficient errors

int slsDetector::sharedSlsDetector::ffoff

memory offsets for the flat filed coefficients

int slsDetector::sharedSlsDetector::fileIndex

current index of the output file

char slsDetector::sharedSlsDetector::fileName[MAX_STR_LENGTH]

name root of the output files

char slsDetector::sharedSlsDetector::filePath[MAX_STR_LENGTH]

path of the output files

float slsDetector::sharedSlsDetector::fineOffset

beamline fine offset (of the order of mdeg, might be adjusted for each measurements)

float slsDetector::sharedSlsDetector::globalOffset

beamline offset (might be a few degrees beacuse of encoder offset - normally it is kept fixed for a long period of time)

char slsDetector::sharedSlsDetector::hostname[MAX_STR_LENGTH]

is the hostname (or IP address) of the detector. needs to be set before startin the communication

int slsDetector::sharedSlsDetector::modoff

memory offsets for the module structures

detectorType slsDetector::sharedSlsDetector::myDetectorType

detector type \ see :: detectorType

int slsDetector::sharedSlsDetector::nAdcs

number of adcs per module

int slsDetector::sharedSlsDetector::nBadChans

number of bad channels from bad channel list

int slsDetector::sharedSlsDetector::nBadFF

number of bad channels from flat field i.e. channels which read 0 in the flat field file

int slsDetector::sharedSlsDetector::nChans

number of channels per chip

int slsDetector::sharedSlsDetector::nChips

number of chips per module

int slsDetector::sharedSlsDetector::nDacs

number of dacs per module

int slsDetector::sharedSlsDetector::nMod[2]

number of installed modules of the detector (x and y directions)

int slsDetector::sharedSlsDetector::nModMax[2]

maximum number of modules of the detector (x and y directions)

int slsDetector::sharedSlsDetector::nMods

number of modules ( nMod[X]*nMod[Y])

See also:
nMod

int slsDetector::sharedSlsDetector::nModsMax

maximum number of modules (nModMax[X]*nModMax[Y])

See also:
nModMax

int slsDetector::sharedSlsDetector::nROI

number of rois defined

int slsDetector::sharedSlsDetector::nTrimEn

number of energies at which the detector has been trimmed (unused)

int slsDetector::sharedSlsDetector::numberOfPositions

number of positions at which the detector should acquire

readOutFlags slsDetector::sharedSlsDetector::roFlags

readout flags

ROI slsDetector::sharedSlsDetector::roiLimits[MAX_ROIS]

list of rois

int slsDetector::sharedSlsDetector::stopPort

is the port used to stop the acquisition normally it should not be changed

float slsDetector::sharedSlsDetector::tDead

dead time (in ns) for rate corrections

int64_t slsDetector::sharedSlsDetector::timerValue[MAX_TIMERS]

timer values

char slsDetector::sharedSlsDetector::trimDir[MAX_STR_LENGTH]

path of the trimbits files

int slsDetector::sharedSlsDetector::trimEnergies[100]

list of the energies at which the detector has been trimmed (unused)


The documentation for this struct was generated from the following file:
Generated on Tue Dec 1 15:31:44 2009 by  doxygen 1.4.7