Project
Loading...
Searching...
No Matches
CalibLHCphaseTOF.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
14
15#ifndef ALICEO2_CALIBLHCPHASETOF_H
16#define ALICEO2_CALIBLHCPHASETOF_H
17
18#include <vector>
19#include "Rtypes.h"
20
21namespace o2
22{
23namespace dataformats
24{
26{
27 public:
28 CalibLHCphaseTOF() = default;
29
30 float getLHCphase(int timestamp) const;
31
32 void addLHCphase(int timestamp, float phaseLHC);
33
34 int size() const { return mLHCphase.size(); }
35 int timestamp(int i) const { return mLHCphase[i].first; }
36 float LHCphase(int i) const { return mLHCphase[i].second; }
37
39
40 long getStartValidity() const { return mStartValidity; }
41 long getEndValidity() const { return mEndValidity; }
42
43 void setStartValidity(long validity) { mStartValidity = validity; }
44 void setEndValidity(long validity) { mEndValidity = validity; }
45
46 private:
47 // LHCphase calibration
48 std::vector<std::pair<int, float>> mLHCphase;
49
50 long mStartValidity = 0;
51 long mEndValidity = 0;
52
53 ClassDefNV(CalibLHCphaseTOF, 2);
54};
55} // namespace dataformats
56} // namespace o2
57#endif
int32_t i
CalibLHCphaseTOF & operator+=(const CalibLHCphaseTOF &other)
float getLHCphase(int timestamp) const
void addLHCphase(int timestamp, float phaseLHC)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other