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
24
namespace
o2::mch::calibration
25
{
26
35
class
PedestalDigit
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
time
int16_t time
Definition
RawEventData.h:4
MCH_PEDESTALS_MAX_SAMPLES
#define MCH_PEDESTALS_MAX_SAMPLES
Definition
PedestalDigit.h:22
int
o2::mch::calibration::PedestalDigit
"Fat" digit for pedestal data.
Definition
PedestalDigit.h:36
o2::mch::calibration::PedestalDigit::getSample
int16_t getSample(uint16_t s) const
Definition
PedestalDigit.cxx:31
o2::mch::calibration::PedestalDigit::getChannel
int getChannel() const
Definition
PedestalDigit.h:51
o2::mch::calibration::PedestalDigit::getSolarId
int getSolarId() const
Definition
PedestalDigit.h:49
o2::mch::calibration::PedestalDigit::PedestalDigit
PedestalDigit()=default
o2::mch::calibration::PedestalDigit::getTime
uint32_t getTime() const
Definition
PedestalDigit.h:43
o2::mch::calibration::PedestalDigit::nofSamples
uint16_t nofSamples() const
Definition
PedestalDigit.h:46
o2::mch::calibration::PedestalDigit::getTriggerTime
uint32_t getTriggerTime() const
Definition
PedestalDigit.h:44
o2::mch::calibration::PedestalDigit::~PedestalDigit
~PedestalDigit()=default
o2::mch::calibration::PedestalDigit::getDsId
int getDsId() const
Definition
PedestalDigit.h:50
o2::mch::calibration
Definition
BadChannelCalibrator.h:28
ds
o2::mch::DsIndex ds
Definition
testStatusMap.cxx:43
Detectors
MUON
MCH
Calibration
include
MCHCalibration
PedestalDigit.h
Generated on Tue Feb 25 2025 23:16:22 for Project by
1.9.8