Project
Loading...
Searching...
No Matches
CalibInfoTOFshort.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_CALIBINFOTOFSHORT_H
16#define ALICEO2_CALIBINFOTOFSHORT_H
17
18#include "Rtypes.h"
19
20namespace o2
21{
22namespace dataformats
23{
25{
26 public:
27 CalibInfoTOFshort(int timestamp, float DeltaTimePi, float tot, int mask, int flags = 0) : mTimestamp(timestamp), mDeltaTimePi(DeltaTimePi), mTot(tot), mMask(mask), mFlags(flags){};
28 CalibInfoTOFshort() = default;
29 void setTOFChIndex(int index) {}
30 int getTOFChIndex() const { return 0; }
31
32 void setTimestamp(int ts) { mTimestamp = ts; }
33 int getTimestamp() const { return mTimestamp; }
34
35 void setDeltaTimePi(float time) { mDeltaTimePi = time; }
36 float getDeltaTimePi() const { return mDeltaTimePi; }
37
38 void setTot(int tot) { mTot = tot; }
39 float getTot() const { return mTot; }
40
41 void setFlags(int flags) { mFlags = flags; }
42 float getFlags() const { return mFlags; }
43
44 private:
45 int mTimestamp; // timestamp in seconds
46 float mDeltaTimePi; // raw tof time - expected time for pi hypotesis
47 float mTot; // time-over-threshold
48 unsigned char mFlags; // bit mask with quality flags (to be defined)
49 int mMask; // mask for int BC used
50
51 ClassDefNV(CalibInfoTOFshort, 2);
52};
53} // namespace dataformats
54} // namespace o2
55#endif
int16_t time
Definition RawEventData.h:4
CalibInfoTOFshort(int timestamp, float DeltaTimePi, float tot, int mask, int flags=0)
GLuint index
Definition glcorearb.h:781
GLbitfield flags
Definition glcorearb.h:1570
GLint GLuint mask
Definition glcorearb.h:291
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...