Project
Loading...
Searching...
No Matches
TOFDiagnosticCalibrator.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
12#ifndef TOF_DIAGNOSTIC_CALIBRATION_H_
13#define TOF_DIAGNOSTIC_CALIBRATION_H_
14
18#include "CCDB/CcdbObjectInfo.h"
19
20namespace o2
21{
22namespace tof
23{
24
25class TOFDiagnosticCalibrator final : public o2::calibration::TimeSlotCalibration<o2::tof::Diagnostic>
26{
27 using TFType = o2::calibration::TFType;
30 using CcdbObjectInfoVector = std::vector<CcdbObjectInfo>;
31 int mRunNumber = -1;
32
33 public:
35 ~TOFDiagnosticCalibrator() final = default;
36 bool hasEnoughData(const Slot& slot) const final { return true; }
37 void initOutput() final;
38 void finalizeSlot(Slot& slot) final;
39 Slot& emplaceNewSlot(bool front, TFType tstart, TFType tend) final;
40 void setRunNumber(int run) { mRunNumber = run; }
41 int getRunNumber() const { return mRunNumber; }
42
43 const std::vector<Diagnostic>& getDiagnosticVector() const { return mDiagnosticVector; }
44 const CcdbObjectInfoVector& getDiagnosticInfoVector() const { return mccdbInfoVector; }
45 CcdbObjectInfoVector& getDiagnosticInfoVector() { return mccdbInfoVector; }
46
47 private:
48 CcdbObjectInfoVector mccdbInfoVector;
49 std::vector<Diagnostic> mDiagnosticVector;
50
51 ClassDefOverride(TOFDiagnosticCalibrator, 1);
52};
53
54} // end namespace tof
55} // end namespace o2
56
57#endif /* TOF_DIAGNOSTIC_CALIBRATION_H_ */
Definition of the TOF cluster.
uint64_t TFType
const CcdbObjectInfoVector & getDiagnosticInfoVector() const
Slot & emplaceNewSlot(bool front, TFType tstart, TFType tend) final
const std::vector< Diagnostic > & getDiagnosticVector() const
~TOFDiagnosticCalibrator() final=default
CcdbObjectInfoVector & getDiagnosticInfoVector()
bool hasEnoughData(const Slot &slot) const final
uint32_t TFType
Definition TimeSlot.h:29
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...