Mantid
Loading...
Searching...
No Matches
Macros
MDWorkspaceConstants.h File Reference
#include <string>

Go to the source code of this file.

Macros

#define MAX_MD_DIMS_POSSIBLE   11
 The is the collection of the constants and enums, which are used in Multidimensional Workspace, usually in more then one file. More...
 
#define MAX_REASONABLE_BIN_NUMBER   1000000
 we are not going to rebin data on more than some number of bins. More...
 

Macro Definition Documentation

◆ MAX_MD_DIMS_POSSIBLE

#define MAX_MD_DIMS_POSSIBLE   11

The is the collection of the constants and enums, which are used in Multidimensional Workspace, usually in more then one file.

Collected here to simplify references and modifications, the dimensionsID will be replaced by proper class

@author Alex Buts, RAL ISIS
@date 01/10/2010

We define maximal number of dimensionsMAX_MD_DIMS_POSSIBLE which a MD dataset can have because

  • a) every additional dimension will be expensive to process
  • b) minimal size of the visualisation dataset is 2^MAX_NDIMS_POSSIBLE, so this number has to be reasonable and any bigger number is probably because of an error;
  • c) if we need to increase the number of dimensions, it can be easy done here

Definition at line 30 of file MDWorkspaceConstants.h.

◆ MAX_REASONABLE_BIN_NUMBER

#define MAX_REASONABLE_BIN_NUMBER   1000000

we are not going to rebin data on more than some number of bins.

Lets set this constant as the limit for checks (in case of wrong word padding or -int casted to unsigned int)

Definition at line 35 of file MDWorkspaceConstants.h.