Project
Loading...
Searching...
No Matches
TPCFastTransformManager.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_TPCFASTTRANSFORMMANAGER_H
18#define ALICEO2_GPUCOMMON_TPCFASTTRANSFORMATION_TPCFASTTRANSFORMMANAGER_H
19
20#include <cmath>
21
22#include "GPUCommonDef.h"
23#include "Rtypes.h"
24#include "TString.h"
25#include "AliTPCTransform.h"
26
27namespace o2
28{
29namespace gpu
30{
31class TPCFastTransform;
32
36
38{
39 public:
41
44
47
50
53
55
57 int32_t create(TPCFastTransform& spline, AliTPCTransform* transform, long TimeStamp);
58
60 Int_t updateCalibration(TPCFastTransform& spline, long TimeStamp);
61
63
64 AliTPCTransform* getOriginalTransform() { return mOrigTransform; }
65
67 const char* getLastError() const { return mError.Data(); }
68
69 private:
71 int32_t storeError(Int_t code, const char* msg);
72
73 TString mError;
74 AliTPCTransform* mOrigTransform;
75 int32_t fLastTimeBin;
76};
77
78inline int32_t TPCFastTransformManager::storeError(int32_t code, const char* msg)
79{
80 mError = msg;
81 return code;
82}
83} // namespace gpu
84} // namespace o2
85
86#endif
int32_t create(TPCFastTransform &spline, AliTPCTransform *transform, long TimeStamp)
_______________ Main functionality ________________________
TPCFastTransformManager()
_____________ Constructors / destructors __________________________
~TPCFastTransformManager()=default
Destructor.
AliTPCTransform * getOriginalTransform()
_______________ Utilities ________________________
const char * getLastError() const
Gives error string.
TPCFastTransformManager & operator=(const TPCFastTransformManager &)=delete
Assignment operator: disabled.
Int_t updateCalibration(TPCFastTransform &spline, long TimeStamp)
Updates the transformation with the new time stamp.
TPCFastTransformManager(const TPCFastTransformManager &)=delete
Copy constructor: disabled.
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
uint64_t const void const *restrict const msg
Definition x9.h:153