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
23{
24namespace gpu
25{
62
76template <typename DataT, int32_t XdimT = 0, int32_t YdimT = 0>
77class Spline
78 : public SplineSpec<DataT, XdimT, YdimT, SplineUtil::getSpec(XdimT, YdimT)>
79{
81 typedef SplineSpec<DataT, XdimT, YdimT, SplineUtil::getSpec(XdimT, YdimT)> TBase;
82
83 public:
85 typedef typename TVeryBase::Knot Knot;
86
87#if !defined(GPUCA_GPUCODE)
88 using TBase::TBase; // inherit constructors
89
92 {
94 return *this;
95 }
96#else
98 Spline() = delete;
99 Spline(const Spline&) = delete;
100#endif
101
102#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
104 static Spline* readFromFile(TFile& inpf, const char* name)
105 {
106 return (Spline*)TVeryBase::readFromFile(inpf, name);
107 }
108#endif
109
111};
112
113} // namespace gpu
114} // namespace o2
115
116#endif
Definition of SplineSpec class.
SafetyLevel
Named enumeration for the safety level used by some methods.
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:33
static Spline * readFromFile(TFile &inpf, const char *name)
read a class object from the file
Definition Spline.h:104
Spline & operator=(const Spline &v)
Assignment operator.
Definition Spline.h:91
ClassDefNV(Spline, 0)
TVeryBase::Knot Knot
Definition Spline.h:85
TVeryBase::SafetyLevel SafetyLevel
Definition Spline.h:84
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 ...