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

#include <Spline2DSpec.h>

Inherits o2::gpu::Spline2DContainerBase< DataT, FlatObject >.

Public Member Functions

 ClassDefNV (Spline2DContainer, 1)
 
- Public Member Functions inherited from o2::gpu::Spline2DContainerBase< DataT, FlatObject >
 GPUd () static const expr int32_t getVersion()
 _____________ Version control __________________________
 
 GPUd () int32_t getYdimensions() const
 _______________ Getters ________________________
 
 GPUd () static const expr size_t getParameterAlignmentBytes()
 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 () const Spline1D< DataT
 Get 1-D grid for the X1 coordinate.
 
 GPUd () const Spline1D< DataT
 Get 1-D grid for the X2 coordinate.
 
 GPUd () const Spline1D< DataT
 Get 1-D grid for X1 or X2 coordinate.
 
 GPUd () void getKnotU(int32_t iKnot
 Get (u1,u2) of i-th knot.
 
 GPUd () int32_t calcNumberOfParameters(int32_t nYdim) const
 _______________ Expert tools _______________
 
 Spline2DContainerBase ()=default
 _____________ C++ constructors / destructors __________________________
 
 Spline2DContainerBase (const Spline2DContainerBase &)=delete
 Disable all other constructors.
 
 ~Spline2DContainerBase ()=default
 Destructor.
 
void approximateFunction (double x1Min, double x1Max, double x2Min, double x2Max, std::function< void(double x1, double x2, double f[])> F, int32_t nAuxiliaryDataPointsU1=4, int32_t nAuxiliaryDataPointsU2=4)
 _______________ Construction interface ________________________
 
void approximateFunctionViaDataPoints (double x1Min, double x1Max, double x2Min, double x2Max, std::function< void(double x1, double x2, double f[])> F, int32_t nAuxiliaryDataPointsX1, int32_t nAuxiliaryDataPointsX2)
 
int32_t writeToFile (TFile &outf, const char *name)
 _______________ IO ________________________
 
FlatObjectgetGridX1 () const
 
FlatObjectgetGridX2 () const
 
FlatObjectgetGrid (int32_t ix) const
 
void cloneFromObject (const Spline2DContainerBase &obj, char *newFlatBufferPtr)
 _____________ FlatObject functionality, see FlatObject class for description ____________
 
void moveBufferTo (char *newBufferPtr)
 
void importFrom (const Spline2DContainerBase< DataT, OtherFlatBase > &src)
 
void destroy ()
 
void setActualBufferAddress (char *actualFlatBufferPtr)
 
void setFutureBufferAddress (char *futureFlatBufferPtr)
 
- Public Member Functions inherited from o2::gpu::FlatObject
 FlatObject ()=default
 _____________ Constructors / destructors __________________________
 
 ~FlatObject ()
 
 FlatObject (const FlatObject &)=delete
 
FlatObjectoperator= (const FlatObject &)=delete
 
template<typename T >
T * resizeArray (T *&ptr, int32_t oldSize, int32_t newSize, T *newPtr=nullptr)
 
template<typename T >
T ** resizeArray (T **&ptr, int32_t oldSize, int32_t newSize, T **newPtr=nullptr)
 
void destroy ()
 _______________ Utilities _______________________________________________
 
 GPUdi () size_t getFlatBufferSize() const
 Gives size of the flat buffer.
 
 GPUdi () const char *getFlatBufferPtr() const
 Gives pointer to the flat buffer.
 
bool isConstructed () const
 Tells if the object is constructed.
 
bool isBufferInternal () const
 Tells if the buffer is internal.
 
void adoptInternalBuffer (char *buf)
 
void clearInternalBufferPtr ()
 
void printC () const
 Print the content of the flat buffer.
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::gpu::Spline2DContainerBase< DataT, FlatObject >
static Spline2DContainerBasereadFromFile (TFile &inpf, const char *name)
 read a class object from the file
 
static int32_t test (const bool draw=0, const bool drawDataPoints=1)
 _______________ Test tools _______________
 
- Static Public Member Functions inherited from o2::gpu::FlatObject
static constexpr size_t alignSize (size_t sizeBytes, size_t alignmentBytes)
 _______________ Generic utilities _______________________________________________
 
template<class T >
static T * relocatePointer (const char *oldBase, char *newBase, const T *ptr)
 Relocates a pointer inside a buffer to the new buffer address.
 
template<class T , class TFile >
static int32_t writeToFile (T &obj, TFile &outf, const char *name)
 write a child class object to the file
 
template<class T , class TFile >
static T * readFromFile (TFile &inpf, const char *name)
 read a child class object from the file
 
template<class T >
static std::string stressTest (T &obj)
 Test the flat object functionality for a child class T.
 
- Public Attributes inherited from o2::gpu::Spline2DContainerBase< DataT, FlatObject >
int32_t & u1
 
int32_t int32_t &u2 const
 
- Protected Types inherited from o2::gpu::FlatObject
enum  ConstructionState : uint32_t { NotConstructed = 0x0 , Constructed = 0x1 , InProgress = 0x2 }
 GPUCA_GPUCODE. More...
 
- Protected Member Functions inherited from o2::gpu::Spline2DContainerBase< DataT, FlatObject >
void recreate (int32_t nYdim, int32_t nKnotsX1, int32_t nKnotsX2)
 Constructor for a regular spline.
 
void recreate (int32_t nYdim, int32_t nKnotsX1, const int32_t knotU1[], int32_t nKnotsX2, const int32_t knotU2[])
 Constructor for an irregular spline.
 
- Protected Member Functions inherited from o2::gpu::FlatObject
void startConstruction ()
 _____________ Construction _________
 
void finishConstruction (int32_t flatBufferSize)
 
void cloneFromObject (const FlatObject &obj, char *newFlatBufferPtr)
 
charreleaseInternalBuffer ()
 _____________ Methods for making the data buffer external __________________________
 
void moveBufferTo (char *newBufferPtr)
 
void setActualBufferAddress (char *actualFlatBufferPtr)
 _____________ Methods for moving the class with its external buffer to another location __________________________
 
void setFutureBufferAddress (char *futureFlatBufferPtr)
 
 ClassDefNV (FlatObject, 1)
 Pointer to the flat buffer.
 
- Static Protected Member Functions inherited from o2::gpu::FlatObject
static constexpr size_t getClassAlignmentBytes ()
 GPUCA_GPUCODE.
 
static constexpr size_t getBufferAlignmentBytes ()
 Gives minimal alignment in bytes required for the flat buffer.
 
- Protected Attributes inherited from o2::gpu::Spline2DContainerBase< DataT, FlatObject >
int32_t mYdim
 _____________ Data members ____________
 
Spline1D< DataT, 0, FlatObjectmGridX1
 grid for U axis
 
Spline1D< DataT, 0, FlatObjectmGridX2
 grid for V axis
 
DataT * mParameters
 
- Protected Attributes inherited from o2::gpu::FlatObject
int32_t mFlatBufferSize = 0
 size of the flat buffer
 
uint32_t mConstructionMask = ConstructionState::NotConstructed
 mask for constructed object members, first two bytes are used by this class
 
charmFlatBufferContainer = nullptr
 
charmFlatBufferPtr = nullptr
 

Detailed Description

template<typename DataT>
class o2::gpu::Spline2DContainer< DataT, FlatObject >

Definition at line 215 of file Spline2DSpec.h.

Member Function Documentation

◆ ClassDefNV()

template<typename DataT >
o2::gpu::Spline2DContainer< DataT, FlatObject >::ClassDefNV ( Spline2DContainer< DataT, FlatObject ,
 
)

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