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
20
namespace
o2
21
{
22
namespace
dataformats
23
{
24
class
CalibInfoTOFshort
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
time
int16_t time
Definition
RawEventData.h:4
o2::dataformats::CalibInfoTOFshort
Definition
CalibInfoTOFshort.h:25
o2::dataformats::CalibInfoTOFshort::CalibInfoTOFshort
CalibInfoTOFshort()=default
o2::dataformats::CalibInfoTOFshort::setTot
void setTot(int tot)
Definition
CalibInfoTOFshort.h:38
o2::dataformats::CalibInfoTOFshort::setDeltaTimePi
void setDeltaTimePi(float time)
Definition
CalibInfoTOFshort.h:35
o2::dataformats::CalibInfoTOFshort::getDeltaTimePi
float getDeltaTimePi() const
Definition
CalibInfoTOFshort.h:36
o2::dataformats::CalibInfoTOFshort::getTOFChIndex
int getTOFChIndex() const
Definition
CalibInfoTOFshort.h:30
o2::dataformats::CalibInfoTOFshort::setTimestamp
void setTimestamp(int ts)
Definition
CalibInfoTOFshort.h:32
o2::dataformats::CalibInfoTOFshort::setTOFChIndex
void setTOFChIndex(int index)
Definition
CalibInfoTOFshort.h:29
o2::dataformats::CalibInfoTOFshort::CalibInfoTOFshort
CalibInfoTOFshort(int timestamp, float DeltaTimePi, float tot, int mask, int flags=0)
Definition
CalibInfoTOFshort.h:27
o2::dataformats::CalibInfoTOFshort::getTimestamp
int getTimestamp() const
Definition
CalibInfoTOFshort.h:33
o2::dataformats::CalibInfoTOFshort::getFlags
float getFlags() const
Definition
CalibInfoTOFshort.h:42
o2::dataformats::CalibInfoTOFshort::getTot
float getTot() const
Definition
CalibInfoTOFshort.h:39
o2::dataformats::CalibInfoTOFshort::setFlags
void setFlags(int flags)
Definition
CalibInfoTOFshort.h:41
index
GLuint index
Definition
glcorearb.h:781
flags
GLbitfield flags
Definition
glcorearb.h:1570
mask
GLint GLuint mask
Definition
glcorearb.h:291
o2
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
Definition
BitstreamReader.h:24
DataFormats
Detectors
TOF
include
DataFormatsTOF
CalibInfoTOFshort.h
Generated on Tue Feb 25 2025 17:02:52 for Project by
1.9.8