cDataVersion Class Reference

#include <dataVersion.h>

List of all members.

Public Types

 DATA_VERSION_RAW = 1
 DATA_VERSION_DETECTOR_CORRECTED = 2
 DATA_VERSION_DETECTOR_AND_PHOTON_CORRECTED = 4
 DATA_VERSION_NONE = 0
 DATA_VERSION_ALL = 1|2|4
 DATA_FORMAT_NON_ASSEMBLED = 1
 DATA_FORMAT_ASSEMBLED = 2
 DATA_FORMAT_ASSEMBLED_AND_DOWNSAMPLED = 4
 DATA_FORMAT_RADIAL_AVERAGE = 16
 DATA_FORMAT_NONE = 0
 DATA_FORMAT_ALL = 1|2|4|16
enum  dataVersion_t {
  DATA_VERSION_RAW = 1, DATA_VERSION_DETECTOR_CORRECTED = 2, DATA_VERSION_DETECTOR_AND_PHOTON_CORRECTED = 4, DATA_VERSION_NONE = 0,
  DATA_VERSION_ALL = 1|2|4
}
enum  dataFormat_t {
  DATA_FORMAT_NON_ASSEMBLED = 1, DATA_FORMAT_ASSEMBLED = 2, DATA_FORMAT_ASSEMBLED_AND_DOWNSAMPLED = 4, DATA_FORMAT_RADIAL_AVERAGE = 16,
  DATA_FORMAT_NONE = 0, DATA_FORMAT_ALL = 1|2|4|16
}

Public Member Functions

 cDataVersion (cPixelDetectorEvent *detectorEvent, cPixelDetectorCommon *detectorCommon, const dataVersion_t dataVersion, const dataFormat_t dataFormat)
bool next ()
float * getData ()
uint16_t * getPixelmask ()
double * getPowder (long powderClass)
double * getPowderSquared (long powderClass)
pthread_mutex_t * getPowderMutex (long powderClass)

Public Attributes

char name [1024]
char name_format [1024]
char name_version [1024]
int isMainDataset
int isMainVersion
long pix_nn
long pix_nx
long pix_ny

Static Public Attributes

static const dataFormat_t DATA_FORMATS [4]


Detailed Description

Definition at line 20 of file dataVersion.h.


Member Enumeration Documentation

enum cDataVersion::dataFormat_t

Enumerator:
DATA_FORMAT_NON_ASSEMBLED 
DATA_FORMAT_ASSEMBLED 
DATA_FORMAT_ASSEMBLED_AND_DOWNSAMPLED 
DATA_FORMAT_RADIAL_AVERAGE 
DATA_FORMAT_NONE 
DATA_FORMAT_ALL 

Definition at line 28 of file dataVersion.h.

enum cDataVersion::dataVersion_t

Enumerator:
DATA_VERSION_RAW 
DATA_VERSION_DETECTOR_CORRECTED 
DATA_VERSION_DETECTOR_AND_PHOTON_CORRECTED 
DATA_VERSION_NONE 
DATA_VERSION_ALL 

Definition at line 23 of file dataVersion.h.


Constructor & Destructor Documentation

cDataVersion::cDataVersion ( cPixelDetectorEvent detectorEvent,
cPixelDetectorCommon detectorCommon,
const dataVersion_t  dataVersion,
const dataFormat_t  dataFormat 
)

Definition at line 63 of file dataVersion.cpp.

References cPixelDetectorEvent::data_detCorr, cPixelDetectorEvent::data_detPhotCorr, DATA_FORMAT_ASSEMBLED, DATA_FORMAT_ASSEMBLED_AND_DOWNSAMPLED, DATA_FORMAT_NON_ASSEMBLED, DATA_FORMAT_RADIAL_AVERAGE, cPixelDetectorEvent::data_raw, cPixelDetectorCommon::dataFormatMain, cPixelDetectorCommon::dataVersionMain, ERROR, ex_all_dets::i, cPixelDetectorEvent::image_detCorr, cPixelDetectorEvent::image_detPhotCorr, cPixelDetectorCommon::image_nn, cPixelDetectorCommon::image_nx, cPixelDetectorCommon::image_ny, cPixelDetectorEvent::image_pixelmask, cPixelDetectorEvent::image_raw, cPixelDetectorEvent::imageXxX_detCorr, cPixelDetectorEvent::imageXxX_detPhotCorr, cPixelDetectorCommon::imageXxX_nn, cPixelDetectorCommon::imageXxX_nx, cPixelDetectorCommon::imageXxX_ny, cPixelDetectorEvent::imageXxX_pixelmask, cPixelDetectorEvent::imageXxX_raw, MAX_POWDER_CLASSES, name_format, cPixelDetectorCommon::nPowderClasses, cPixelDetectorCommon::null_mutex, cPixelDetectorCommon::pix_nn, pix_nn, cPixelDetectorCommon::pix_nx, pix_nx, cPixelDetectorCommon::pix_ny, pix_ny, cPixelDetectorEvent::pixelmask, cPixelDetectorCommon::powderData_detCorr, cPixelDetectorCommon::powderData_detCorr_squared, cPixelDetectorCommon::powderData_detPhotCorr, cPixelDetectorCommon::powderData_detPhotCorr_squared, cPixelDetectorCommon::powderData_mutex, cPixelDetectorCommon::powderData_raw, cPixelDetectorCommon::powderData_raw_squared, cPixelDetectorCommon::powderImage_detCorr, cPixelDetectorCommon::powderImage_detCorr_squared, cPixelDetectorCommon::powderImage_detPhotCorr, cPixelDetectorCommon::powderImage_detPhotCorr_squared, cPixelDetectorCommon::powderImage_mutex, cPixelDetectorCommon::powderImage_raw, cPixelDetectorCommon::powderImage_raw_squared, cPixelDetectorCommon::powderImageXxX_detCorr, cPixelDetectorCommon::powderImageXxX_detCorr_squared, cPixelDetectorCommon::powderImageXxX_detPhotCorr, cPixelDetectorCommon::powderImageXxX_detPhotCorr_squared, cPixelDetectorCommon::powderImageXxX_mutex, cPixelDetectorCommon::powderImageXxX_raw, cPixelDetectorCommon::powderImageXxX_raw_squared, cPixelDetectorCommon::powderRadialAverage_detCorr, cPixelDetectorCommon::powderRadialAverage_detCorr_squared, cPixelDetectorCommon::powderRadialAverage_detPhotCorr, cPixelDetectorCommon::powderRadialAverage_detPhotCorr_squared, cPixelDetectorCommon::powderRadialAverage_mutex, cPixelDetectorCommon::powderRadialAverage_raw, cPixelDetectorCommon::powderRadialAverage_raw_squared, cPixelDetectorCommon::powderVersionMain, cPixelDetectorCommon::radial_nn, cPixelDetectorEvent::radialAverage_detCorr, cPixelDetectorEvent::radialAverage_detPhotCorr, cPixelDetectorEvent::radialAverage_pixelmask, and cPixelDetectorEvent::radialAverage_raw.


Member Function Documentation

float * cDataVersion::getData (  ) 

Definition at line 272 of file dataVersion.cpp.

References ERROR.

Referenced by addToPowder(), assemble2DImage(), calculateRadialAverage(), downsample(), and writeCXI().

uint16_t * cDataVersion::getPixelmask (  ) 

Definition at line 279 of file dataVersion.cpp.

References ERROR.

Referenced by calculateRadialAverage(), and writeCXI().

double * cDataVersion::getPowder ( long  powderClass  ) 

Definition at line 286 of file dataVersion.cpp.

References ERROR.

Referenced by addToPowder(), calculateRadialAveragePowder(), savePowderPattern(), and writeAccumulatedCXI().

pthread_mutex_t * cDataVersion::getPowderMutex ( long  powderClass  ) 

Definition at line 300 of file dataVersion.cpp.

References ERROR, and cPixelDetectorCommon::null_mutex.

Referenced by addToPowder(), and savePowderPattern().

double * cDataVersion::getPowderSquared ( long  powderClass  ) 

Definition at line 293 of file dataVersion.cpp.

References ERROR.

Referenced by addToPowder(), savePowderPattern(), and writeAccumulatedCXI().

bool cDataVersion::next (  ) 

Definition at line 234 of file dataVersion.cpp.

References DATA_VERSION_DETECTOR_AND_PHOTON_CORRECTED, DATA_VERSION_DETECTOR_CORRECTED, DATA_VERSION_RAW, isBitOptionSet(), isMainDataset, isMainVersion, name, name_format, name_version, and cPixelDetectorCommon::nPowderClasses.

Referenced by addToPowder(), assemble2DImage(), calculateRadialAverage(), calculateRadialAveragePowder(), createCXISkeleton(), downsample(), savePowderPattern(), writeAccumulatedCXI(), and writeCXI().


Member Data Documentation

const cDataVersion::dataFormat_t cDataVersion::DATA_FORMATS [static]

Initial value:

Definition at line 34 of file dataVersion.h.

Referenced by addToPowder(), createCXISkeleton(), savePowderPattern(), cPixelDetectorCommon::unlockMutexes(), and writeAccumulatedCXI().

int cDataVersion::isMainDataset

Definition at line 45 of file dataVersion.h.

Referenced by next(), and savePowderPattern().

int cDataVersion::isMainVersion

Definition at line 45 of file dataVersion.h.

Referenced by createCXISkeleton(), and next().

char cDataVersion::name[1024]

Definition at line 42 of file dataVersion.h.

Referenced by createCXISkeleton(), next(), savePowderPattern(), writeAccumulatedCXI(), and writeCXI().

char cDataVersion::name_format[1024]

Definition at line 43 of file dataVersion.h.

Referenced by cDataVersion(), and next().

char cDataVersion::name_version[1024]

Definition at line 44 of file dataVersion.h.

Referenced by createCXISkeleton(), next(), and writeCXI().

long cDataVersion::pix_nn

Definition at line 46 of file dataVersion.h.

Referenced by addToPowder(), cDataVersion(), createCXISkeleton(), savePowderPattern(), and writeAccumulatedCXI().

long cDataVersion::pix_nx

Definition at line 46 of file dataVersion.h.

Referenced by cDataVersion(), createCXISkeleton(), and savePowderPattern().

long cDataVersion::pix_ny

Definition at line 46 of file dataVersion.h.

Referenced by cDataVersion(), createCXISkeleton(), and savePowderPattern().


The documentation for this class was generated from the following files:
Generated on 19 Dec 2016 for PSDMSoftware by  doxygen 1.4.7