Project
Loading...
Searching...
No Matches
CommonMode.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
15
16#ifndef ALICEO2_TPC_CommonMode_H_
17#define ALICEO2_TPC_CommonMode_H_
18
19#include <Rtypes.h>
20#include "DataFormatsTPC/Defs.h"
21
22namespace o2
23{
24namespace tpc
25{
26
30
32{
33 public:
35 CommonMode() = default;
36
41 CommonMode(float commonMode, TimeBin timeBin, unsigned char gemStack);
42
44 ~CommonMode() = default;
45
48 float getCommonMode() const { return mCommonMode; }
49
52 TimeBin getTimeBin() const { return mTimebin; }
53
56 unsigned char getGEMstack() const { return mGEMstack; }
57
58 private:
59 float mCommonMode = 0.f;
60 TimeBin mTimebin = 0;
61 unsigned char mGEMstack = 0;
62
63 ClassDefNV(CommonMode, 1);
64};
65
66inline CommonMode::CommonMode(float commonMode, TimeBin timeBin, unsigned char gemStack)
67 : mCommonMode(commonMode),
68 mTimebin(timeBin),
69 mGEMstack(gemStack)
70{
71}
72
73} // namespace tpc
74} // namespace o2
75
76#endif // ALICEO2_TPC_CommonMode_H_
unsigned char getGEMstack() const
Definition CommonMode.h:56
float getCommonMode() const
Definition CommonMode.h:48
CommonMode()=default
Default constructor.
TimeBin getTimeBin() const
Definition CommonMode.h:52
~CommonMode()=default
Destructor.
unsigned int TimeBin
global time bin
Definition Defs.h:132
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...