ATLAS Offline Software
LArNoisyROSummaryCnv_p3.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
9 {
10  log << MSG::DEBUG << " in LArNoisyROSummaryCnv_p3::transToPers " << endmsg;
11 
12  size_t sfebs = trans->get_noisy_febs().size();
13  pers->m_noisy_febs.reserve(sfebs);
14  for (const HWIdentifier& hwid : trans->get_noisy_febs())
15  {
16  pers->m_noisy_febs.push_back (hwid.get_identifier32().get_compact());
17  }
18 
19  pers->m_noisy_preamps.clear();
20  pers->m_noisy_preamps.reserve(trans->get_noisy_preamps().size());
21  for (const std::pair<HWIdentifier, std::vector<int> >& p :
22  trans->get_noisy_preamps())
23  {
24  pers->m_noisy_preamps.emplace_back (p.first.get_identifier32().get_compact(),
25  p.second);
26  }
27 
34 
35 }
36 
38 {
39  log << MSG::DEBUG << " in LArNoisyROSummaryCnv_p3::persToTrans " << endmsg;
40  trans->clear();
41 
42  size_t sfebs = pers->m_noisy_febs.size();
43  for ( size_t i = 0; i < sfebs; i++)
44  {
45  HWIdentifier febId(Identifier32(pers->m_noisy_febs[i]));
46  trans->add_noisy_feb(febId);
47  }
48 
49  size_t spas = pers->m_noisy_preamps.size();
50  for ( size_t i = 0; i < spas; i++)
51  {
52  size_t schan = pers->m_noisy_preamps[i].second.size();
53  for ( size_t j = 0; j < schan; j++ )
54  {
55  HWIdentifier febId(Identifier32(pers->m_noisy_preamps[i].first));
56  trans->add_noisy_preamp(febId,pers->m_noisy_preamps[i].second[j]);
57  }
58  }
59 
66 
67 }
LArNoisyROSummary::SetSatMediumFlaggedPartitions
void SetSatMediumFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:86
Identifier32
Definition: Identifier32.h:25
LArNoisyROSummary_p3
Definition: LArNoisyROSummary_p3.h:15
LArNoisyROSummary::SetMNBLooseFlaggedPartitions
void SetMNBLooseFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:95
LArNoisyROSummary::SetSatTightFlaggedPartitions
void SetSatTightFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:89
LArNoisyROSummary::get_noisy_preamps
const std::vector< std::pair< HWIdentifier, std::vector< int > > > & get_noisy_preamps() const
Definition: LArNoisyROSummary.cxx:136
LArNoisyROSummary_p3::m_SatTightFlaggedPartitions
uint8_t m_SatTightFlaggedPartitions
Definition: LArNoisyROSummary_p3.h:36
LArNoisyROSummary::SatTightFlaggedPartitions
uint8_t SatTightFlaggedPartitions() const
Definition: LArNoisyROSummary.h:129
LArNoisyROSummaryCnv_p3::persToTrans
virtual void persToTrans(const LArNoisyROSummary_p3 *pers, LArNoisyROSummary *trans, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p3.cxx:37
HWIdentifier
Definition: HWIdentifier.h:13
LArNoisyROSummary_p3::m_MNBLooseFlaggedPartitions
uint8_t m_MNBLooseFlaggedPartitions
Definition: LArNoisyROSummary_p3.h:37
LArNoisyROSummaryCnv_p3.h
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArNoisyROSummary::MNBTightFlaggedPartitions
uint8_t MNBTightFlaggedPartitions() const
Definition: LArNoisyROSummary.h:135
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArNoisyROSummary::MNBLooseFlaggedPartitions
uint8_t MNBLooseFlaggedPartitions() const
Definition: LArNoisyROSummary.h:132
LArNoisyROSummary::get_noisy_febs
const std::vector< HWIdentifier > & get_noisy_febs() const
Definition: LArNoisyROSummary.cxx:115
LArNoisyROSummary_p3::m_BadFEB_WFlaggedPartitions
uint8_t m_BadFEB_WFlaggedPartitions
Definition: LArNoisyROSummary_p3.h:34
LArNoisyROSummary_p3::m_MNBTightFlaggedPartitions
uint8_t m_MNBTightFlaggedPartitions
Definition: LArNoisyROSummary_p3.h:38
LArNoisyROSummary::clear
void clear()
Definition: LArNoisyROSummary.cxx:24
LArNoisyROSummaryCnv_p3::transToPers
virtual void transToPers(const LArNoisyROSummary *trans, LArNoisyROSummary_p3 *pers, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p3.cxx:8
LArNoisyROSummary::SetMNBTightFlaggedPartitions
void SetMNBTightFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:92
LArNoisyROSummary.h
LArNoisyROSummary_p3::m_noisy_febs
std::vector< unsigned int > m_noisy_febs
Definition: LArNoisyROSummary_p3.h:28
LArNoisyROSummary_p3::m_BadFEBFlaggedPartitions
uint8_t m_BadFEBFlaggedPartitions
Definition: LArNoisyROSummary_p3.h:33
LArNoisyROSummary::SetBadFEBFlaggedPartitions
void SetBadFEBFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:80
DEBUG
#define DEBUG
Definition: page_access.h:11
LArNoisyROSummary::BadFEB_WFlaggedPartitions
uint8_t BadFEB_WFlaggedPartitions() const
Definition: LArNoisyROSummary.h:123
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArNoisyROSummary_p3::m_noisy_preamps
std::vector< std::pair< unsigned int, std::vector< int > > > m_noisy_preamps
Definition: LArNoisyROSummary_p3.h:32
LArNoisyROSummary::add_noisy_preamp
void add_noisy_preamp(HWIdentifier febid, int channel)
Definition: LArNoisyROSummary.cxx:92
LArNoisyROSummary_p3::m_SatMediumFlaggedPartitions
uint8_t m_SatMediumFlaggedPartitions
Definition: LArNoisyROSummary_p3.h:35
LArNoisyROSummary::SatMediumFlaggedPartitions
uint8_t SatMediumFlaggedPartitions() const
Definition: LArNoisyROSummary.h:126
LArNoisyROSummary::add_noisy_feb
void add_noisy_feb(HWIdentifier febid)
Definition: LArNoisyROSummary.cxx:47
LArNoisyROSummary::BadFEBFlaggedPartitions
uint8_t BadFEBFlaggedPartitions() const
Definition: LArNoisyROSummary.h:120
LArNoisyROSummary::SetBadFEB_WFlaggedPartitions
void SetBadFEB_WFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:83
LArNoisyROSummary
Summary information for noisy LAr preamp / FEBs.
Definition: LArNoisyROSummary.h:28