Project
Loading...
Searching...
No Matches
Spline.h
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
16
17#ifndef ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINE_H
18#define ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINE_H
19
20#include "SplineSpec.h"
21
22namespace o2::gpu
23{
60
74template <typename DataT, int32_t XdimT = 0, int32_t YdimT = 0>
75class Spline
76 : public SplineSpec<DataT, XdimT, YdimT, SplineUtil::getSpec(XdimT, YdimT)>
77{
79 typedef SplineSpec<DataT, XdimT, YdimT, SplineUtil::getSpec(XdimT, YdimT)> TBase;
80
81 public:
83
84#if !defined(GPUCA_GPUCODE)
85 using TBase::TBase; // inherit constructors
86
89 {
91 return *this;
92 }
93#else
95 Spline() = delete;
96 Spline(const Spline&) = delete;
97#endif
98
99#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
101 static Spline* readFromFile(TFile& inpf, const char* name)
102 {
103 return (Spline*)TVeryBase::readFromFile(inpf, name);
104 }
105#endif
106
108};
109
110} // namespace o2::gpu
111
112#endif
Definition of SplineSpec class.
void cloneFromObject(const SplineContainer &obj, char *newFlatBufferPtr)
static SplineContainer * readFromFile(TFile &inpf, const char *name)
read a class object from the file
static constexpr int32_t getSpec(int32_t nXdim, int32_t nYdim)
Definition SplineUtil.h:31
static Spline * readFromFile(TFile &inpf, const char *name)
read a class object from the file
Definition Spline.h:101
Spline & operator=(const Spline &v)
Assignment operator.
Definition Spline.h:88
ClassDefNV(Spline, 0)
const GLdouble * v
Definition glcorearb.h:832
GLuint const GLchar * name
Definition glcorearb.h:781