Project
Loading...
Searching...
No Matches
LaserTracksCalibrator.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
15
16#ifndef TPC_LaserTracksCalibrator_H_
17#define TPC_LaserTracksCalibrator_H_
18
21
23
24namespace o2::tpc
25{
26
28{
29 using TFType = o2::calibration::TFType;
31
32 public:
34 LaserTracksCalibrator(size_t minTFs) : mMinTFs(minTFs) {}
35 ~LaserTracksCalibrator() final = default;
36
37 bool hasEnoughData(const Slot& slot) const final { return slot.getContainer()->hasEnoughData(mMinTFs); }
38 void initOutput() final;
39 void finalizeSlot(Slot& slot) final;
40 Slot& emplaceNewSlot(bool front, TFType tstart, TFType tend) final;
41
42 const auto& getCalibPerSlot() { return mCalibPerSlot; }
43 bool hasCalibrationData() const { return mCalibPerSlot.size() > 0; }
44
45 void setWriteDebug(bool debug = true) { mWriteDebug = debug; }
46 bool getWriteDebug() const { return mWriteDebug; }
47
48 void setMinTFs(size_t minTFs) { mMinTFs = minTFs; }
49 size_t getMinTFs() const { return mMinTFs; }
50
51 private:
52 size_t mMinTFs = 100;
53 std::vector<LtrCalibData> mCalibPerSlot;
54 bool mWriteDebug = false;
55
56 ClassDefOverride(LaserTracksCalibrator, 1);
57};
58} // namespace o2::tpc
59#endif
calibration using laser tracks
uint64_t TFType
std::ostringstream debug
Slot & emplaceNewSlot(bool front, TFType tstart, TFType tend) final
bool hasEnoughData(const Slot &slot) const final
~LaserTracksCalibrator() final=default
uint32_t TFType
Definition TimeSlot.h:29
Global TPC definitions and constants.
Definition SimTraits.h:167