Project
Loading...
Searching...
No Matches
FT0CalibrationInfoObject.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 O2_FT0CALIBRATIONINFOOBJECT_H
13#define O2_FT0CALIBRATIONINFOOBJECT_H
14
15#include "Rtypes.h"
16
17namespace o2
18{
19namespace ft0
20{
22{
23 public:
24 FT0CalibrationInfoObject(uint8_t channel, int16_t time, int32_t amp, uint64_t timestamp) : mChannelIndex(channel), mTime(time), mAmp(amp), mTimeStamp(timestamp){};
27
28 void setChannelIndex(uint8_t channel) { mChannelIndex = channel; }
29 [[nodiscard]] uint8_t getChannelIndex() const { return mChannelIndex; }
30
31 void setTime(int16_t time) { mTime = time; }
32 [[nodiscard]] int16_t getTime() const { return mTime; }
33 void setAmp(int16_t amp) { mAmp = amp; }
34 [[nodiscard]] int16_t getAmp() const { return mAmp; }
35 void setTimeStamp(int64_t timestamp) { mTimeStamp = timestamp; }
36 [[nodiscard]] int64_t getTimeStamp() const { return mTimeStamp; }
37
38 private:
39 uint8_t mChannelIndex;
40 int16_t mTime;
41 int16_t mAmp;
42 uint64_t mTimeStamp;
43
44 ClassDefNV(FT0CalibrationInfoObject, 2);
45};
46} // namespace ft0
47} // namespace o2
48
49#endif // O2_FT0CALIBRATIONINFOOBJECT_H
int16_t time
Definition RawEventData.h:4
FT0CalibrationInfoObject(uint8_t channel, int16_t time, int32_t amp, uint64_t timestamp)
struct o2::upgrades_utils::@462 ft0
structure to keep V0C information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...