ATLAS Offline Software
LArCalorimeter
LArRecConditions
src
LArBadChanBitPacking.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
LArRecConditions/LArBadChanBitPacking.h
"
6
7
LArBadChanBitPacking::LArBadChanBitPacking
():
LArBadChanBitPackingBase
()
8
{
9
// Here, specify each problem and its gain dependence.
10
addBit
(
LArBadChannel::LArBadChannelEnum::deadReadoutBit
,
"deadReadout"
,
independent
);
11
addBit
(
LArBadChannel::LArBadChannelEnum::deadCalibBit
,
"deadCalib"
,
independent
);
12
addBit
(
LArBadChannel::LArBadChannelEnum::deadPhysBit
,
"deadPhys"
,
independent
);
13
addBit
(
LArBadChannel::LArBadChannelEnum::almostDeadBit
,
"almostDead"
,
independent
);
14
addBit
(
LArBadChannel::LArBadChannelEnum::shortBit
,
"short"
,
independent
);
15
addBit
(
LArBadChannel::LArBadChannelEnum::unstableBit
,
"unstable"
,
independent
);
16
addBit
(
LArBadChannel::LArBadChannelEnum::distortedBit
,
"distorted"
,
independent
);
17
addBit
(
LArBadChannel::LArBadChannelEnum::lowNoiseHGBit
,
"lowNoiseHG"
,
high
);
18
addBit
(
LArBadChannel::LArBadChannelEnum::highNoiseHGBit
,
"highNoiseHG"
,
high
);
19
addBit
(
LArBadChannel::LArBadChannelEnum::unstableNoiseHGBit
,
"unstableNoiseHG"
,
high
);
20
addBit
(
LArBadChannel::LArBadChannelEnum::lowNoiseMGBit
,
"lowNoiseMG"
,
medium
);
21
addBit
(
LArBadChannel::LArBadChannelEnum::highNoiseMGBit
,
"highNoiseMG"
,
medium
);
22
addBit
(
LArBadChannel::LArBadChannelEnum::unstableNoiseMGBit
,
"unstableNoiseMG"
,
medium
);
23
addBit
(
LArBadChannel::LArBadChannelEnum::lowNoiseLGBit
,
"lowNoiseLG"
,
low
);
24
addBit
(
LArBadChannel::LArBadChannelEnum::highNoiseLGBit
,
"highNoiseLG"
,
low
);
25
addBit
(
LArBadChannel::LArBadChannelEnum::unstableNoiseLGBit
,
"unstableNoiseLG"
,
low
);
26
addBit
(
LArBadChannel::LArBadChannelEnum::missingFEBBit
,
"missingFEB"
,
independent
);
27
addBit
(
LArBadChannel::LArBadChannelEnum::peculiarCalibrationLineBit
,
"peculiarCalibrationLine"
,
low
);
28
addBit
(
LArBadChannel::LArBadChannelEnum::problematicForUnknownReasonBit
,
"problematicForUnknownReason"
,
independent
);
29
addBit
(
LArBadChannel::LArBadChannelEnum::sporadicBurstNoiseBit
,
"sporadicBurstNoise"
,
independent
);
30
addBit
(
LArBadChannel::LArBadChannelEnum::deadSCACellBit
,
"deadSCACell"
,
independent
);
31
addBit
(
LArBadChannel::LArBadChannelEnum::badFirstSampleBit
,
"badFirstSample"
,
independent
);
32
addBit
(
LArBadChannel::LArBadChannelEnum::unflaggedByLADIeSBit
,
"unflaggedByLADIeS"
,
independent
);
33
addBit
(
LArBadChannel::LArBadChannelEnum::reflaggedByLADIeSBit
,
"reflaggedByLADIeS"
,
independent
);
34
addBit
(
LArBadChannel::LArBadChannelEnum::badAutoCorrBit
,
"badAutoCorr"
,
independent
);
35
36
for
(
unsigned
int
i
=0;
i
<
m_enumVec
.size();
i
++) {
37
m_nameMap
[
m_nameVec
[
i
]] =
m_enumVec
[
i
].first;
40
m_bitPos
[
m_enumVec
[
i
].first] =
m_enumVec
[
i
].first;
41
42
m_index
[
m_enumVec
[
i
].first] =
i
;
43
}
44
45
initMasks
();
// initialize the gain masks
46
};
47
48
LArBadChanSCBitPacking::LArBadChanSCBitPacking
():
LArBadChanSCBitPackingBase
()
49
{
50
// Here, specify each problem and its gain dependence.
51
addBit
(
LArBadChannel::LArBadChannelSCEnum::maskedOSUMBit
,
"maskedOSUM"
,
independent
);
52
addBit
(
LArBadChannel::LArBadChannelSCEnum::deadReadoutBit
,
"deadReadout"
,
independent
);
53
addBit
(
LArBadChannel::LArBadChannelSCEnum::deadCalibBit
,
"deadCalib"
,
independent
);
54
addBit
(
LArBadChannel::LArBadChannelSCEnum::deadPhysBit
,
"deadPhys"
,
independent
);
55
addBit
(
LArBadChannel::LArBadChannelSCEnum::lowNoiseBit
,
"lowNoise"
,
independent
);
56
addBit
(
LArBadChannel::LArBadChannelSCEnum::highNoiseBit
,
"highNoise"
,
independent
);
57
addBit
(
LArBadChannel::LArBadChannelSCEnum::problematicForUnknownReasonBit
,
"problematicForUnknownReason"
,
independent
);
58
addBit
(
LArBadChannel::LArBadChannelSCEnum::sporadicBurstNoiseBit
,
"sporadicBurstNoise"
,
independent
);
59
addBit
(
LArBadChannel::LArBadChannelSCEnum::DeformedTailBit
,
"DeformedTail"
,
independent
);
60
addBit
(
LArBadChannel::LArBadChannelSCEnum::DeformedPulseBit
,
"DeformedPulse"
,
independent
);
61
addBit
(
LArBadChannel::LArBadChannelSCEnum::NonLinearRampBit
,
"NonLinearRamp"
,
independent
);
62
addBit
(
LArBadChannel::LArBadChannelSCEnum::ADCJumpBit
,
"ADCJump"
,
independent
);
63
addBit
(
LArBadChannel::LArBadChannelSCEnum::SCAProblemBit
,
"SCAProblem"
,
independent
);
64
addBit
(
LArBadChannel::LArBadChannelSCEnum::OffOFCsBit
,
"OffOFCs"
,
independent
);
65
addBit
(
LArBadChannel::LArBadChannelSCEnum::OffAmplitudeBit
,
"OffAmplitude"
,
independent
);
66
addBit
(
LArBadChannel::LArBadChannelSCEnum::OffScaleBit
,
"OffScale"
,
independent
);
67
addBit
(
LArBadChannel::LArBadChannelSCEnum::lowLightFibreBit
,
"lowLightFibre"
,
independent
);
68
addBit
(
LArBadChannel::LArBadChannelSCEnum::transmissionErrorFibreBit
,
"transmissionErrorFibre"
,
independent
);
69
addBit
(
LArBadChannel::LArBadChannelSCEnum::unflaggedByLADIeSBit
,
"unflaggedByLADIeS"
,
independent
);
70
addBit
(
LArBadChannel::LArBadChannelSCEnum::reflaggedByLADIeSBit
,
"reflaggedByLADIeS"
,
independent
);
71
for
(
unsigned
int
i
=0;
i
<
m_enumVec
.size();
i
++) {
72
m_nameMap
[
m_nameVec
[
i
]] =
m_enumVec
[
i
].first;
75
m_bitPos
[
m_enumVec
[
i
].first] =
m_enumVec
[
i
].first;
76
77
m_index
[
m_enumVec
[
i
].first] =
i
;
78
}
79
80
initMasks
();
// initialize the gain masks
81
}
82
LArBadChannel::LArBadChannelSCEnum::lowNoiseBit
@ lowNoiseBit
Definition:
LArBadChannel.h:57
LArBadChannel::LArBadChannelSCEnum::DeformedTailBit
@ DeformedTailBit
Definition:
LArBadChannel.h:61
LArBadChanBitPacking::LArBadChanBitPacking
LArBadChanBitPacking()
Definition:
LArBadChanBitPacking.cxx:7
LArBadChannel::LArBadChannelEnum::problematicForUnknownReasonBit
@ problematicForUnknownReasonBit
Definition:
LArBadChannel.h:38
LArBadChannel::LArBadChannelEnum::badFirstSampleBit
@ badFirstSampleBit
Definition:
LArBadChannel.h:41
LArBadChannel::LArBadChannelSCEnum::OffAmplitudeBit
@ OffAmplitudeBit
Definition:
LArBadChannel.h:67
LArBadChannel::LArBadChannelEnum::deadReadoutBit
@ deadReadoutBit
Definition:
LArBadChannel.h:20
LArBadChannel::LArBadChannelSCEnum::deadPhysBit
@ deadPhysBit
Definition:
LArBadChannel.h:56
LArBadChannel::LArBadChannelSCEnum::sporadicBurstNoiseBit
@ sporadicBurstNoiseBit
Definition:
LArBadChannel.h:60
LArBadChannel::LArBadChannelSCEnum::reflaggedByLADIeSBit
@ reflaggedByLADIeSBit
Definition:
LArBadChannel.h:72
TLArBadChanBitPackingBase::high
@ high
Definition:
LArBadChanBitPackingBase.h:51
TLArBadChanBitPackingBase::independent
@ independent
Definition:
LArBadChanBitPackingBase.h:51
TLArBadChanBitPackingBase
Definition:
LArBadChanBitPackingBase.h:14
TLArBadChanBitPackingBase::addBit
void addBit(typename T::ProblemType pb, const std::string &name, GainDependence gaindep)
LArBadChannel::LArBadChannelEnum::lowNoiseLGBit
@ lowNoiseLGBit
Definition:
LArBadChannel.h:33
LArBadChannel::LArBadChannelSCEnum::SCAProblemBit
@ SCAProblemBit
Definition:
LArBadChannel.h:65
LArBadChannel::LArBadChannelEnum::lowNoiseHGBit
@ lowNoiseHGBit
Definition:
LArBadChannel.h:27
LArBadChannel::LArBadChannelSCEnum::maskedOSUMBit
@ maskedOSUMBit
Definition:
LArBadChannel.h:53
LArBadChannel::LArBadChannelEnum::deadCalibBit
@ deadCalibBit
Definition:
LArBadChannel.h:21
LArBadChannel::LArBadChannelSCEnum::DeformedPulseBit
@ DeformedPulseBit
Definition:
LArBadChannel.h:62
LArBadChannel::LArBadChannelEnum::unstableNoiseMGBit
@ unstableNoiseMGBit
Definition:
LArBadChannel.h:32
LArBadChannel::LArBadChannelEnum::missingFEBBit
@ missingFEBBit
Definition:
LArBadChannel.h:36
LArBadChannel::LArBadChannelSCEnum::ADCJumpBit
@ ADCJumpBit
Definition:
LArBadChannel.h:64
LArBadChannel::LArBadChannelSCEnum::unflaggedByLADIeSBit
@ unflaggedByLADIeSBit
Definition:
LArBadChannel.h:71
LArBadChannel::LArBadChannelEnum::unstableBit
@ unstableBit
Definition:
LArBadChannel.h:25
LArBadChannel::LArBadChannelSCEnum::highNoiseBit
@ highNoiseBit
Definition:
LArBadChannel.h:58
TLArBadChanBitPackingBase::m_bitPos
PosContainer m_bitPos
Definition:
LArBadChanBitPackingBase.h:53
LArBadChannel::LArBadChannelSCEnum::deadCalibBit
@ deadCalibBit
Definition:
LArBadChannel.h:55
LArBadChannel::LArBadChannelSCEnum::problematicForUnknownReasonBit
@ problematicForUnknownReasonBit
Definition:
LArBadChannel.h:59
LArBadChannel::LArBadChannelEnum::almostDeadBit
@ almostDeadBit
Definition:
LArBadChannel.h:23
lumiFormat.i
int i
Definition:
lumiFormat.py:85
LArBadChannel::LArBadChannelEnum::unstableNoiseHGBit
@ unstableNoiseHGBit
Definition:
LArBadChannel.h:29
LArBadChannel::LArBadChannelSCEnum::NonLinearRampBit
@ NonLinearRampBit
Definition:
LArBadChannel.h:63
TLArBadChanBitPackingBase::initMasks
void initMasks()
LArBadChanBitPacking.h
LArBadChannel::LArBadChannelSCEnum::OffOFCsBit
@ OffOFCsBit
Definition:
LArBadChannel.h:66
TLArBadChanBitPackingBase::m_enumVec
std::vector< std::pair< typename T::ProblemType, GainDependence > > m_enumVec
Definition:
LArBadChanBitPackingBase.h:55
LArBadChannel::LArBadChannelEnum::highNoiseMGBit
@ highNoiseMGBit
Definition:
LArBadChannel.h:31
TLArBadChanBitPackingBase::m_nameVec
std::vector< std::string > m_nameVec
Definition:
LArBadChanBitPackingBase.h:57
LArBadChannel::LArBadChannelEnum::sporadicBurstNoiseBit
@ sporadicBurstNoiseBit
Definition:
LArBadChannel.h:39
LArBadChannel::LArBadChannelEnum::unstableNoiseLGBit
@ unstableNoiseLGBit
Definition:
LArBadChannel.h:35
TLArBadChanBitPackingBase::m_index
std::vector< int > m_index
Definition:
LArBadChanBitPackingBase.h:54
LArBadChannel::LArBadChannelSCEnum::lowLightFibreBit
@ lowLightFibreBit
Definition:
LArBadChannel.h:69
TLArBadChanBitPackingBase::medium
@ medium
Definition:
LArBadChanBitPackingBase.h:51
LArBadChannel::LArBadChannelEnum::reflaggedByLADIeSBit
@ reflaggedByLADIeSBit
Definition:
LArBadChannel.h:43
TLArBadChanBitPackingBase::m_nameMap
std::map< std::string, typename T::ProblemType > m_nameMap
Definition:
LArBadChanBitPackingBase.h:58
LArBadChannel::LArBadChannelSCEnum::transmissionErrorFibreBit
@ transmissionErrorFibreBit
Definition:
LArBadChannel.h:70
LArBadChannel::LArBadChannelEnum::shortBit
@ shortBit
Definition:
LArBadChannel.h:24
LArBadChannel::LArBadChannelEnum::distortedBit
@ distortedBit
Definition:
LArBadChannel.h:26
LArBadChannel::LArBadChannelEnum::lowNoiseMGBit
@ lowNoiseMGBit
Definition:
LArBadChannel.h:30
LArBadChannel::LArBadChannelEnum::deadSCACellBit
@ deadSCACellBit
Definition:
LArBadChannel.h:40
LArBadChannel::LArBadChannelEnum::unflaggedByLADIeSBit
@ unflaggedByLADIeSBit
Definition:
LArBadChannel.h:42
LArBadChanSCBitPacking::LArBadChanSCBitPacking
LArBadChanSCBitPacking()
Definition:
LArBadChanBitPacking.cxx:48
LArBadChannel::LArBadChannelEnum::highNoiseHGBit
@ highNoiseHGBit
Definition:
LArBadChannel.h:28
LArBadChannel::LArBadChannelEnum::highNoiseLGBit
@ highNoiseLGBit
Definition:
LArBadChannel.h:34
LArBadChannel::LArBadChannelEnum::peculiarCalibrationLineBit
@ peculiarCalibrationLineBit
Definition:
LArBadChannel.h:37
LArBadChannel::LArBadChannelSCEnum::deadReadoutBit
@ deadReadoutBit
Definition:
LArBadChannel.h:54
LArBadChannel::LArBadChannelEnum::badAutoCorrBit
@ badAutoCorrBit
Definition:
LArBadChannel.h:44
LArBadChannel::LArBadChannelEnum::deadPhysBit
@ deadPhysBit
Definition:
LArBadChannel.h:22
TLArBadChanBitPackingBase::low
@ low
Definition:
LArBadChanBitPackingBase.h:51
LArBadChannel::LArBadChannelSCEnum::OffScaleBit
@ OffScaleBit
Definition:
LArBadChannel.h:68
Generated on Sun Dec 22 2024 21:13:13 for ATLAS Offline Software by
1.8.18