TDCBase

tdchg2.h
Go to the documentation of this file.
1 /******************************************************************************
2 *
3 * Project: TDC Control Library
4 *
5 * Filename: tdchg2.h
6 *
7 * Purpose: Heralded G(2) Functions
8 *
9 * Author: NHands GmbH & Co KG
10 */
11 /*****************************************************************************/
27 /*****************************************************************************/
28 /* $Id: tdchg2.h,v 1.2 2020/09/03 20:23:08 trurl Exp $ */
29
30 #ifndef __TDCHG2_H
31 #define __TDCHG2_H
32
33 #include "tdcdecl.h"
34
35
49 TDC_API int TDC_CC TDC_enableHg2( Bln32 enable );
50
51
63 TDC_API int TDC_CC TDC_setHg2Params( Int32 binWidth,
64 Int32 binCount );
65
66
75 TDC_API int TDC_CC TDC_getHg2Params( Int32 * binWidth,
76 Int32 * binCount );
77
78
89 TDC_API int TDC_CC TDC_setHg2Input( Int32 idler,
90 Int32 channel1,
91 Int32 channel2 );
92
93
103 TDC_API int TDC_CC TDC_getHg2Input( Int32 * idler,
104 Int32 * channel1,
105 Int32 * channel2 );
106
107
113 TDC_API int TDC_CC TDC_resetHg2Correlations();
114
115
127 TDC_API int TDC_CC TDC_calcHg2G2( double * buffer,
128 Int32 * bufSize,
129 Bln32 reset );
130
131
142 TDC_API int TDC_CC TDC_calcHg2Tcp( Int64 ** buffers,
143 Bln32 reset );
144
145
158 TDC_API int TDC_CC TDC_calcHg2Tcp1D( Int64 * buffer,
159 Int32 * bufSize,
160 Bln32 reset );
161
162
179 TDC_API int TDC_CC TDC_getHg2Raw( Int64 * evtIdler,
180 Int64 * evtCoinc,
181 Int64 * bufSsi,
182 Int64 * bufS2i,
183 Int32 * bufSize );
184
185
186 #endif
tdcdecl.h
Technical declarations for the DLL interface and basic type defs.
Bln32
__int32 Bln32
integer used as boolean
Definition: tdcdecl.h:57
Int32
__int32 Int32
32 bit integer for MSVC
Definition: tdcdecl.h:54
TDC_CC
#define TDC_CC
Calling convention
Definition: tdcdecl.h:34
Int64
__int64 Int64
64 bit integer for MSVC
Definition: tdcdecl.h:55
TDC_API
#define TDC_API
External DLL interface.
Definition: tdcdecl.h:38
TDC_setHg2Input
TDC_API int TDC_CC TDC_setHg2Input(Int32 idler, Int32 channel1, Int32 channel2)
Set TDC Channels for Input.
TDC_getHg2Input
TDC_API int TDC_CC TDC_getHg2Input(Int32 *idler, Int32 *channel1, Int32 *channel2)
Get TDC Channels for Input.
TDC_calcHg2Tcp
TDC_API int TDC_CC TDC_calcHg2Tcp(Int64 **buffers, Bln32 reset)
2D triple coincidence count
TDC_getHg2Raw
TDC_API int TDC_CC TDC_getHg2Raw(Int64 *evtIdler, Int64 *evtCoinc, Int64 *bufSsi, Int64 *bufS2i, Int32 *bufSize)
Raw counts.
TDC_resetHg2Correlations
TDC_API int TDC_CC TDC_resetHg2Correlations()
Reset Correlation Functions.
TDC_calcHg2Tcp1D
TDC_API int TDC_CC TDC_calcHg2Tcp1D(Int64 *buffer, Int32 *bufSize, Bln32 reset)
2D triple coincidence count - alternative interface
TDC_setHg2Params
TDC_API int TDC_CC TDC_setHg2Params(Int32 binWidth, Int32 binCount)
Set Correlation Function Parameters.
TDC_calcHg2G2
TDC_API int TDC_CC TDC_calcHg2G2(double *buffer, Int32 *bufSize, Bln32 reset)
Calculate g(2) Function.
TDC_enableHg2
TDC_API int TDC_CC TDC_enableHg2(Bln32 enable)
Enable HG2 Calculations.
TDC_getHg2Params
TDC_API int TDC_CC TDC_getHg2Params(Int32 *binWidth, Int32 *binCount)
Get Correlation Function Parameters.