areaDetector  3-5-0
EPICS areaDetector framework
ADnEDGlobals.h
Go to the documentation of this file.
1 
2 #define ADNED_MAX_STRING_SIZE 256
3 #define ADNED_MAX_DETS 4
4 #define ADNED_MAX_CHANNELS 4
5 
6 //ADnEDTransform params.
7 #define ADNED_MAX_TRANSFORM_PARAMS 6
8 #define ADNED_TRANSFORM_TYPE0 0
9 #define ADNED_TRANSFORM_TYPE1 1
10 #define ADNED_TRANSFORM_TYPE2 2
11 #define ADNED_TRANSFORM_TYPE3 3
12 #define ADNED_TRANSFORM_ERROR -9999
13 #define ADNED_TRANSFORM_OK 0
14 
15 //ADnEDTransform constants
16 #define ADNED_TRANSFORM_MN 1.674954e-27 //Mass of the neutron in Kg
17 #define ADNED_TRANSFORM_EV_TO_J 1.60217635e-19 // 1eV = 1.60217635e-19 Joules
18 #define ADNED_TRANSFORM_TOF_TO_S 1e-7 // The TOF is in units of 100ns
19 #define ADNED_TRANSFORM_EV_TO_mEV 1e3 // 1eV = 1e3 meV
20 
21 //PVAccess related params. Used in ADnED.cpp.
22 #define ADNED_PV_TIMEOUT 2.0
23 #define ADNED_PV_PRIORITY epics::pvAccess::ChannelProvider::PRIORITY_DEFAULT
24 #define ADNED_PV_PROVIDER "pva"
25 #define ADNED_PV_REQUEST "record[queueSize=100]field()"
26 #define ADNED_PV_PIXELS "pixel.value"
27 #define ADNED_PV_TOF "time_of_flight.value"
28 #define ADNED_PV_TIMESTAMP "timeStamp"
29 #define ADNED_PV_SEQ "timeStamp.userTag"
30 #define ADNED_PV_PCHARGE "proton_charge.value"