Project
Loading...
Searching...
No Matches
o2::gpu::Spline1DContainer< DataT, NoFlatObject > Class Template Reference

#include <Spline1DSpec.h>

Inherits o2::gpu::Spline1DContainerBase< DataT, NoFlatObject >.

Public Member Functions

 GPUd () const int32_t *getUtoKnotMapFromBuffer(const char *flatBuf) const
 Get the U->knot-index map from an explicit flat buffer pointer.
 
template<SafetyLevel SafeT = SafetyLevel::kSafe>
 GPUd () int32_t getLeftKnotIndexForUFromBuffer(const char *flatBuf
 
 if (SafeT==SafetyLevel::kSafe)
 
return getUtoKnotMapFromBuffer (flatBuf)[iu]
 
 GPUd () const Knot< DataT > *getKnotsFromBuffer(const char *flatBuf) const
 
template<SafetyLevel SafeT = SafetyLevel::kSafe>
 GPUd () const Knot< DataT > &getKnotFromBuffer(const char *flatBuf
 
void destroy ()
 
 GPUdi () void setActualBufferAddress(char *)
 
 GPUdi () void setFutureBufferAddress(char *)
 
template<class OtherFlatBase >
void importFrom (const Spline1DContainerBase< DataT, OtherFlatBase > &src)
 Copy schema fields from a spline with a different FlatBase (no pointer members to copy).
 
- Public Member Functions inherited from o2::gpu::Spline1DContainerBase< DataT, NoFlatObject >
 GPUd () static const expr int32_t getVersion()
 _____________ Version control __________________________
 
 GPUd () int32_t getUmax() const
 _______________ Getters ________________________
 
 GPUd () int32_t getYdimensions() const
 Get number of Y dimensions.
 
 GPUd () size_t getParameterAlignmentBytes() const
 Get minimal required alignment for the spline parameters.
 
 GPUd () int32_t getNumberOfParameters() const
 Number of parameters.
 
 GPUd () size_t getSizeOfParameters() const
 Size of the parameter array in bytes.
 
 GPUd () int32_t getNumberOfKnots() const
 Get a number of knots.
 
 GPUd () DataT convXtoU(DataT x) const
 _______________ Technical stuff ________________________
 
 GPUd () DataT convUtoX(DataT u) const
 Convert U coordinate to X.
 
 GPUd () DataT getXmin() const
 Get Xmin.
 
 GPUd () DataT getXmax() const
 Get Xmax.
 
 GPUd () DataT getXtoUscale() const
 Get XtoUscale.
 
 GPUd () void setXrange(DataT xMin
 Set X range.
 
 GPUd () int32_t calcNumberOfParameters(int32_t nYdim) const
 _______________ Expert tools _______________
 
 Spline1DContainerBase ()=default
 _____________ C++ constructors / destructors __________________________
 
 Spline1DContainerBase (const Spline1DContainerBase &)=delete
 Disable all other constructors.
 
 ~Spline1DContainerBase ()=default
 Destructor.
 
- Public Member Functions inherited from o2::gpu::NoFlatObject
 GPUdi () size_t getFlatBufferSize() const
 

Public Attributes

DataT u const
 
int32_t i const
 
- Public Attributes inherited from o2::gpu::Spline1DContainerBase< DataT, NoFlatObject >
DataT xMax
 
int32_t mYdim
 _____________ Data members ____________
 
int32_t mNumberOfKnots
 n knots on the grid
 
int32_t mUmax
 U of the last knot.
 
DataT mXmin
 X of the first knot.
 
DataT mXtoUscale
 a scaling factor to convert X to U
 
- Public Attributes inherited from o2::gpu::NoFlatObject
int32_t mFlatBufferSize = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::gpu::NoFlatObject
static constexpr size_t getClassAlignmentBytes ()
 
static constexpr size_t getBufferAlignmentBytes ()
 

Detailed Description

template<typename DataT>
class o2::gpu::Spline1DContainer< DataT, NoFlatObject >

Definition at line 217 of file Spline1DSpec.h.

Member Function Documentation

◆ destroy()

template<typename DataT >
void o2::gpu::Spline1DContainer< DataT, NoFlatObject >::destroy ( )
inline

Definition at line 255 of file Spline1DSpec.h.

◆ getUtoKnotMapFromBuffer()

template<typename DataT >
return o2::gpu::Spline1DContainer< DataT, NoFlatObject >::getUtoKnotMapFromBuffer ( flatBuf  )

◆ GPUd() [1/4]

template<typename DataT >
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::GPUd ( ) const
inline

Get the U->knot-index map from an explicit flat buffer pointer.

Definition at line 221 of file Spline1DSpec.h.

◆ GPUd() [2/4]

template<typename DataT >
template<SafetyLevel SafeT = SafetyLevel::kSafe>
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::GPUd ( ) const &

Get i-th knot from an explicit flat buffer pointer. Use this instead of getKnot() on the zero-copy path.

◆ GPUd() [3/4]

template<typename DataT >
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::GPUd ( ) const
inline

Get the knot array from an explicit flat buffer pointer. Use this instead of getKnots() when the object was copied across process boundaries and mFlatBufferPtr has not been fixed up (zero-copy path).

Definition at line 241 of file Spline1DSpec.h.

◆ GPUd() [4/4]

template<typename DataT >
template<SafetyLevel SafeT = SafetyLevel::kSafe>
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::GPUd ( ) const

Map a U coordinate to its left knot index, using an explicit flat buffer pointer. Use this instead of getLeftKnotIndexForU() on the zero-copy path.

◆ GPUdi() [1/2]

template<typename DataT >
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::GPUdi ( )
inline

Definition at line 264 of file Spline1DSpec.h.

◆ GPUdi() [2/2]

template<typename DataT >
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::GPUdi ( )
inline

Definition at line 265 of file Spline1DSpec.h.

◆ if()

template<typename DataT >
o2::gpu::Spline1DContainer< DataT, NoFlatObject >::if ( SafeT  = SafetyLevel::kSafe)
inline

Definition at line 232 of file Spline1DSpec.h.

◆ importFrom()

template<typename DataT >
template<class OtherFlatBase >
void o2::gpu::Spline1DContainer< DataT, NoFlatObject >::importFrom ( const Spline1DContainerBase< DataT, OtherFlatBase > &  src)
inline

Copy schema fields from a spline with a different FlatBase (no pointer members to copy).

Definition at line 270 of file Spline1DSpec.h.

Member Data Documentation

◆ const [1/2]

template<typename DataT >
DataT u o2::gpu::Spline1DContainer< DataT, NoFlatObject >::const
Initial value:
{
int32_t iu = u < 0 ? 0 : (u > (float)this->mUmax ? this->mUmax : (int32_t)u)

Definition at line 229 of file Spline1DSpec.h.

◆ const [2/2]

template<typename DataT >
int32_t i o2::gpu::Spline1DContainer< DataT, NoFlatObject >::const
Initial value:
{
if (SafeT == SafetyLevel::kSafe) {
i = (i < 0) ? 0 : (i >= this->getNumberOfKnots() ? this->getNumberOfKnots() - 1 : i);
}
return getKnotsFromBuffer(flatBuf)[i]
int32_t i

Definition at line 246 of file Spline1DSpec.h.


The documentation for this class was generated from the following file: