Project
Loading...
Searching...
No Matches
CosmicInfo.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_TOF_COSMICINFO_H
16#define ALICEO2_TOF_COSMICINFO_H
17
18#include <vector>
19#include "Rtypes.h"
20
21namespace o2
22{
23namespace tof
24{
29{
30 int mChan1;
31 int mChan2;
32 float mDtime;
33 float mTot1;
34 float mTot2;
35 float mL;
36 float mT1;
37 float mT2;
38
39 public:
40 int getCH1() const { return mChan1; }
41 int getCH2() const { return mChan2; }
42 float getDeltaTime() const { return mDtime; }
43 float getTOT1() const { return mTot1; }
44 float getTOT2() const { return mTot2; }
45 float getL() const { return mL; }
46 float getT1() const { return mT1; }
47 float getT2() const { return mT2; }
48
49 void setCH1(int ch) { mChan1 = ch; }
50 void setCH2(int ch) { mChan2 = ch; }
51 void setDeltaTime(float val) { mDtime = val; }
52 void setTOT1(float val) { mTot1 = val; }
53 void setTOT2(float val) { mTot2 = val; }
54 void setT1(float val) { mT1 = val; }
55 void setT2(float val) { mT2 = val; }
56 void setL(float val) { mL = val; }
57
58 CosmicInfo(int ch1 = 0, int ch2 = 0, float dt = 0, float tot1 = 0, float tot2 = 0, float l = 0, float tm1 = 0, float tm2 = 0) : mChan1(ch1), mChan2(ch2), mDtime(dt), mTot1(tot1), mTot2(tot2), mL(l), mT1(tm1), mT2(tm2) {}
59
61};
62
64{
65 int mCh = 0;
66 float mX = 0;
67 float mY = 0;
68 float mZ = 0;
69 float mT = 0;
70 short mTot = 0;
71
72 public:
73 int getCH() const { return mCh; }
74 float getT() const { return mT; }
75 float getX() const { return mX; }
76 float getY() const { return mY; }
77 float getZ() const { return mZ; }
78 short getTOT() const { return mTot; }
79
80 CalibInfoTrackCl() = default;
81 CalibInfoTrackCl(int ch, float x, float y, float z, float t, short tot) : mCh(ch), mX(x), mY(y), mZ(z), mT(t), mTot(tot) {}
83};
84
85} // namespace tof
86
87} // namespace o2
88
89#endif
ClassDefNV(CalibInfoTrackCl, 1)
CalibInfoTrackCl(int ch, float x, float y, float z, float t, short tot)
Definition CosmicInfo.h:81
int getCH1() const
Definition CosmicInfo.h:40
float getDeltaTime() const
Definition CosmicInfo.h:42
float getT1() const
Definition CosmicInfo.h:46
void setCH1(int ch)
Definition CosmicInfo.h:49
void setTOT2(float val)
Definition CosmicInfo.h:53
void setCH2(int ch)
Definition CosmicInfo.h:50
float getTOT2() const
Definition CosmicInfo.h:44
CosmicInfo(int ch1=0, int ch2=0, float dt=0, float tot1=0, float tot2=0, float l=0, float tm1=0, float tm2=0)
Definition CosmicInfo.h:58
float getL() const
Definition CosmicInfo.h:45
ClassDefNV(CosmicInfo, 2)
void setT2(float val)
Definition CosmicInfo.h:55
void setL(float val)
Definition CosmicInfo.h:56
int getCH2() const
Definition CosmicInfo.h:41
void setT1(float val)
Definition CosmicInfo.h:54
void setDeltaTime(float val)
Definition CosmicInfo.h:51
float getTOT1() const
Definition CosmicInfo.h:43
void setTOT1(float val)
Definition CosmicInfo.h:52
float getT2() const
Definition CosmicInfo.h:47
GLint GLenum GLint x
Definition glcorearb.h:403
GLuint GLfloat * val
Definition glcorearb.h:1582
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...