Project
Loading...
Searching...
No Matches
PedestalDigit.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
17#ifndef O2_MCH_CALIBRATION_PEDESTAL_DIGIT_H_
18#define O2_MCH_CALIBRATION_PEDESTAL_DIGIT_H_
19
20#include "Rtypes.h"
21
22#define MCH_PEDESTALS_MAX_SAMPLES 20
23
25{
26
36{
37 public:
38 PedestalDigit() = default;
39
40 PedestalDigit(int solarid, int ds, int ch, uint32_t trigTime, uint32_t time, std::vector<uint16_t> samples);
41 ~PedestalDigit() = default;
42
43 uint32_t getTime() const { return mTime; }
44 uint32_t getTriggerTime() const { return mTrigTime; }
45
46 uint16_t nofSamples() const { return mNofSamples; }
47 int16_t getSample(uint16_t s) const;
48
49 int getSolarId() const { return mSolarId; }
50 int getDsId() const { return mDsId; }
51 int getChannel() const { return mChannel; }
52
53 private:
54 uint32_t mTime{0};
55 uint32_t mTrigTime{0};
56 uint16_t mNofSamples{0};
57 uint16_t mSamples[MCH_PEDESTALS_MAX_SAMPLES];
58 int mSolarId;
59 int mDsId;
60 int mChannel;
61
62 ClassDefNV(PedestalDigit, 1);
63};
64
65} // namespace o2::mch::calibration
66#endif
int16_t time
Definition RawEventData.h:4
#define MCH_PEDESTALS_MAX_SAMPLES
"Fat" digit for pedestal data.
int16_t getSample(uint16_t s) const
o2::mch::DsIndex ds