Project
Loading...
Searching...
No Matches
TPCFastTransformHelperO2.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
20
21#ifndef ALICEO2_TPC_TPCFASTTRANSFORMHELPERO2_H_
22#define ALICEO2_TPC_TPCFASTTRANSFORMHELPERO2_H_
23
24#include "TPCFastTransform.h"
25#include "Rtypes.h"
26#include <functional>
27
28namespace o2
29{
30namespace tpc
31{
32
33using namespace o2::gpu;
34
36{
37 public:
39
42
45
48
51
54
56
58 std::unique_ptr<TPCFastTransform> create(Long_t TimeStamp);
59
61 std::unique_ptr<TPCFastTransform> create(Long_t TimeStamp, const TPCFastSpaceChargeCorrection& correction);
62
64 int updateCalibration(TPCFastTransform& transform, Long_t TimeStamp, float vDriftFactor = 1.f, float vDriftRef = 0.f, float driftTimeOffset = 0.f);
65
67
68 const TPCFastTransformGeo& getGeometry() { return mGeo; }
69
70 void testGeometry(const TPCFastTransformGeo& fastTransform) const;
71
72 private:
74 void init();
75
76 static TPCFastTransformHelperO2* sInstance;
77 bool mIsInitialized = 0;
79
80 ClassDefNV(TPCFastTransformHelperO2, 3);
81};
82} // namespace tpc
83} // namespace o2
84#endif
Definition of TPCFastTransform class.
void testGeometry(const TPCFastTransformGeo &fastTransform) const
int updateCalibration(TPCFastTransform &transform, Long_t TimeStamp, float vDriftFactor=1.f, float vDriftRef=0.f, float driftTimeOffset=0.f)
Updates the transformation with the new time stamp.
std::unique_ptr< TPCFastTransform > create(Long_t TimeStamp)
_______________ Main functionality ________________________
~TPCFastTransformHelperO2()=default
Destructor.
const TPCFastTransformGeo & getGeometry()
_______________ Utilities ________________________
static TPCFastTransformHelperO2 * instance()
Singleton.
TPCFastTransformHelperO2(const TPCFastTransformHelperO2 &)=delete
Copy constructor: disabled.
TPCFastTransformHelperO2 & operator=(const TPCFastTransformHelperO2 &)=delete
Assignment operator: disabled.
TPCFastTransformHelperO2()=default
_____________ Constructors / destructors __________________________
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...