Project
Loading...
Searching...
No Matches
Spline1D.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_SPLINE1D_H
18#define ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_SPLINE1D_H
19
20#include "Spline1DSpec.h"
21
22namespace o2
23{
24namespace gpu
25{
124
137template <typename DataT, int32_t YdimT = 0>
139 : public Spline1DSpec<DataT, YdimT, SplineUtil::getSpec(YdimT)>
140{
142 typedef Spline1DSpec<DataT, YdimT, SplineUtil::getSpec(YdimT)> TBase;
143
144 public:
146 typedef typename TVeryBase::Knot Knot;
147
148#if !defined(GPUCA_GPUCODE)
149 using TBase::TBase; // inherit constructors
150
152 Spline1D() = default;
154 {
156 }
158 {
160 return *this;
161 }
162#else
164 Spline1D() = delete;
165 Spline1D(const Spline1D&) = delete;
166#endif
167
168#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
170 static Spline1D* readFromFile(TFile& inpf, const char* name)
171 {
172 return (Spline1D*)TVeryBase::readFromFile(inpf, name);
173 }
174#endif
175
177};
178
179} // namespace gpu
180} // namespace o2
181
182#endif
Definition of Spline1DSpec class.
void cloneFromObject(const Spline1DContainer &obj, char *newFlatBufferPtr)
SafetyLevel
Named enumeration for the safety level used by some methods.
static Spline1DContainer * readFromFile(TFile &inpf, const char *name)
read a class object from the file
ClassDefNV(Spline1D, 0)
static Spline1D * readFromFile(TFile &inpf, const char *name)
read a class object from the file
Definition Spline1D.h:170
Spline1D & operator=(const Spline1D &v)
Definition Spline1D.h:157
Spline1D()=default
Assignment operator.
Spline1D(const Spline1D &v)
Definition Spline1D.h:153
TVeryBase::Knot Knot
Definition Spline1D.h:146
TVeryBase::SafetyLevel SafetyLevel
Definition Spline1D.h:145
static constexpr int32_t getSpec(int32_t nXdim, int32_t nYdim)
Definition SplineUtil.h:33
const GLdouble * v
Definition glcorearb.h:832
GLuint const GLchar * name
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...