MaCh3  2.2.3
Reference Guide
Classes | Enumerations | Variables
SplineCommon.h File Reference

Contains definitions for spline coefficients and structure used in both CPU and GPU code. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SplineMonoStruct
 KS: Struct storing information for spline monolith. More...
 

Enumerations

enum  SplineSegmentCoeffs { kCoeffY = 0 , kCoeffB = 1 , kCoeffC = 2 , kCoeffD = 3 }
 HW: Coefficients for grabbing items from manycoeff_arr (rather than having y=manycoeffarray[index+0]) More...
 

Variables

constexpr int _nCoeff_ = 4
 KS: We store coefficients {y,b,c,d} in one array one by one, this is only to define it once rather then insert "4" all over the code. More...
 
constexpr int _nTF1Coeff_ = 2
 KS: For TF1 we store at most 5 coefficients, we could make it more flexible but for now define it here to make future changes easier to track. More...
 

Detailed Description

Contains definitions for spline coefficients and structure used in both CPU and GPU code.

This file includes macros and enums for defining spline coefficients. It is designed to be compatible with older CUDA versions, so be cautious when adding new features or including other headers.

Author
Clarence Wret
Kamil Skwarczynski

Definition in file SplineCommon.h.

Enumeration Type Documentation

◆ SplineSegmentCoeffs

HW: Coefficients for grabbing items from manycoeff_arr (rather than having y=manycoeffarray[index+0])

Enumerator
kCoeffY 

Coefficient Y.

kCoeffB 

Coefficient B.

kCoeffC 

Coefficient C.

kCoeffD 

Coefficient D.

Definition at line 18 of file SplineCommon.h.

19 {
20  kCoeffY = 0,
21  kCoeffB = 1,
22  kCoeffC = 2,
23  kCoeffD = 3
24 };
@ kCoeffB
Coefficient B.
Definition: SplineCommon.h:21
@ kCoeffD
Coefficient D.
Definition: SplineCommon.h:23
@ kCoeffY
Coefficient Y.
Definition: SplineCommon.h:20
@ kCoeffC
Coefficient C.
Definition: SplineCommon.h:22

Variable Documentation

◆ _nCoeff_

constexpr int _nCoeff_ = 4
constexpr

KS: We store coefficients {y,b,c,d} in one array one by one, this is only to define it once rather then insert "4" all over the code.

Definition at line 13 of file SplineCommon.h.

◆ _nTF1Coeff_

constexpr int _nTF1Coeff_ = 2
constexpr

KS: For TF1 we store at most 5 coefficients, we could make it more flexible but for now define it here to make future changes easier to track.

Definition at line 15 of file SplineCommon.h.