Project
Loading...
Searching...
No Matches
CorrectdEdxDistortions.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_TPC_CORRECTDEDXDISTORTIONS_H
18#define ALICEO2_TPC_CORRECTDEDXDISTORTIONS_H
19
20#include "GPUTPCGeometry.h"
21#include <memory>
22
23// forward declare classes
24namespace o2::gpu
25{
26class TPCFastTransform;
27}
28
29namespace o2::utils
30{
31class TreeStreamRedirector;
32}
33
34namespace o2::tpc
35{
36
38{
39 public:
42
45
50 void setSCCorrFromFile(const char* scAvgFile, const char* scDerFile, const float lumi = -1);
51
57
62
64 void setLumi(float lumi);
65
67 void setStreamer(const char* debugRootFile = "debug_sc_corrections.root");
68
74 float getCorrection(const float time, unsigned char sector, unsigned char padrow, int pad) const;
75
77 void setMinLX0(const float minLX) { mLX0Min = minLX; }
78
80 void setMinLX1(const float minLX) { mLX1Min = minLX; }
81
83 void setMinCorr(const float minCorr) { mScCorrMin = minCorr; }
84
86 void setMaxCorr(const float maxCorr) { mScCorrMax = maxCorr; }
87
88 private:
89 float mScaleDer = 0;
90 std::unique_ptr<o2::gpu::TPCFastTransform> mCorrAvg{nullptr};
91 std::unique_ptr<o2::gpu::TPCFastTransform> mCorrDer{nullptr};
92 o2::gpu::GPUTPCGeometry mTPCGeometry;
93 std::unique_ptr<o2::utils::TreeStreamRedirector> mStreamer{nullptr};
94 float mLX0Min{82};
95 float mLX1Min{82};
96 float mScCorrMin{0.7};
97 float mScCorrMax{1.6};
98};
99} // namespace o2::tpc
100
101#endif
int16_t time
Definition RawEventData.h:4
uint32_t padrow
Definition RawData.h:5
float getCorrection(const float time, unsigned char sector, unsigned char padrow, int pad) const
void setMinCorr(const float minCorr)
set minimum allowed correction value
void setMinLX0(const float minLX)
set minimum allowed lx correction at lower pad
void setCorrectionMaps(o2::gpu::TPCFastTransform *avg, o2::gpu::TPCFastTransform *der, const float lumi)
void setSCCorrFromFile(const char *scAvgFile, const char *scDerFile, const float lumi=-1)
~CorrectdEdxDistortions()
Default destructor.
void setMinLX1(const float minLX)
set minimum allowed lx correction upper lower pad
void setMaxCorr(const float maxCorr)
set maximum allowed correction value
void setStreamer(const char *debugRootFile="debug_sc_corrections.root")
enable the debug streamer
CorrectdEdxDistortions()
Default constructor.
Global TPC definitions and constants.
Definition SimTraits.h:167
LumiInfo lumi