 | CRPSLiveTimeCorrection Method |
Apply the Live-time correction to a channel for a line in a database
Namespace:
Geosoft.Desktop.GXNetX
Assembly:
geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.2.0.42
Syntaxpublic static void LiveTimeCorrection(
CGXNETCore gxNetShared,
CDB db,
int line,
string raw_channel,
string livetime_channel,
string livetime_corr_channel
)
public static void LiveTimeCorrection(
CGXNETCore gxNetShared,
CDB db,
int line,
string raw_channel,
string livetime_channel,
string livetime_corr_channel
)
Public Shared Sub LiveTimeCorrection (
gxNetShared As CGXNETCore,
db As CDB,
line As Integer,
raw_channel As String,
livetime_channel As String,
livetime_corr_channel As String
)
Public Shared Sub LiveTimeCorrection (
gxNetShared As CGXNETCore,
db As CDB,
line As Integer,
raw_channel As String,
livetime_channel As String,
livetime_corr_channel As String
)
public:
static void LiveTimeCorrection(
CGXNETCore^ gxNetShared,
CDB^ db,
int line,
String^ raw_channel,
String^ livetime_channel,
String^ livetime_corr_channel
)
public:
static void LiveTimeCorrection(
CGXNETCore^ gxNetShared,
CDB^ db,
int line,
String^ raw_channel,
String^ livetime_channel,
String^ livetime_corr_channel
)
static member LiveTimeCorrection :
gxNetShared : CGXNETCore *
db : CDB *
line : int *
raw_channel : string *
livetime_channel : string *
livetime_corr_channel : string -> unit
static member LiveTimeCorrection :
gxNetShared : CGXNETCore *
db : CDB *
line : int *
raw_channel : string *
livetime_channel : string *
livetime_corr_channel : string -> unit
Parameters
- gxNetShared
- Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore - db
- Type: GeoEngine.Core.GXNetXCDB
DB Object - line
- Type: SystemInt32
Line to process (NULLSYMB for all selected lines) - raw_channel
- Type: SystemString
Input raw channel name - livetime_channel
- Type: SystemString
Live time channel name (milliseconds) - livetime_corr_channel
- Type: SystemString
Output livetime corrected channel name
Remarks
The output live-time corrected channel is calculated using the formula:
livetime_value = 1000 * raw_value / livetime_value
where:
livetime_value = output dead-time corrected value
raw_value = raw channel value (counts)
livetime_value = live time channel value (milliseconds)
Ref: See the RPSFILT.GXC file for details and implementation of the algorithm.
See Also