ATLAS Offline Software
LArNoisyROSummaryCnv_p2.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  //typedef std::vector< std::pair<HWIdentifier, std::vector<int> > > PAcont;
11  log << MSG::DEBUG << " in LArNoisyROSummaryCnv_p2::transToPers " << endmsg;
12 
13  size_t sfebs = trans->get_noisy_febs().size();
14  pers->m_noisy_febs.reserve(sfebs);
15  for (const HWIdentifier& hwid : trans->get_noisy_febs())
16  {
17  pers->m_noisy_febs.push_back (hwid.get_identifier32().get_compact());
18  }
19 
20  pers->m_noisy_preamps.clear();
21  pers->m_noisy_preamps.reserve(trans->get_noisy_preamps().size());
22  for (const std::pair<HWIdentifier, std::vector<int> >& p :
23  trans->get_noisy_preamps())
24  {
25  pers->m_noisy_preamps.emplace_back (p.first.get_identifier32().get_compact(),
26  p.second);
27  }
28 
32 }
33 
35 {
36  log << MSG::DEBUG << " in LArNoisyROSummaryCnv_p2::persToTrans " << endmsg;
37  trans->clear();
38 
39  size_t sfebs = pers->m_noisy_febs.size();
40  for ( size_t i = 0; i < sfebs; i++)
41  {
42  HWIdentifier febId(Identifier32(pers->m_noisy_febs[i]));
43  trans->add_noisy_feb(febId);
44  }
45 
46  size_t spas = pers->m_noisy_preamps.size();
47  for ( size_t i = 0; i < spas; i++)
48  {
49  size_t schan = pers->m_noisy_preamps[i].second.size();
50  for ( size_t j = 0; j < schan; j++ )
51  {
52  HWIdentifier febId(Identifier32(pers->m_noisy_preamps[i].first));
53  trans->add_noisy_preamp(febId,pers->m_noisy_preamps[i].second[j]);
54  }
55  }
56 
60 }
LArNoisyROSummary::SetSatMediumFlaggedPartitions
void SetSatMediumFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:86
Identifier32
Definition: Identifier32.h:25
LArNoisyROSummaryCnv_p2::transToPers
virtual void transToPers(const LArNoisyROSummary *trans, LArNoisyROSummary_p2 *pers, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p2.cxx:8
LArNoisyROSummary_p2::m_noisy_preamps
std::vector< std::pair< unsigned int, std::vector< int > > > m_noisy_preamps
Definition: LArNoisyROSummary_p2.h:25
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_p2::m_SatTightFlaggedPartitions
uint8_t m_SatTightFlaggedPartitions
Definition: LArNoisyROSummary_p2.h:28
LArNoisyROSummary::SatTightFlaggedPartitions
uint8_t SatTightFlaggedPartitions() const
Definition: LArNoisyROSummary.h:129
LArNoisyROSummary_p2::m_noisy_febs
std::vector< unsigned int > m_noisy_febs
Definition: LArNoisyROSummary_p2.h:21
HWIdentifier
Definition: HWIdentifier.h:13
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArNoisyROSummary_p2
Definition: LArNoisyROSummary_p2.h:15
LArNoisyROSummary::get_noisy_febs
const std::vector< HWIdentifier > & get_noisy_febs() const
Definition: LArNoisyROSummary.cxx:115
LArNoisyROSummary::clear
void clear()
Definition: LArNoisyROSummary.cxx:24
LArNoisyROSummary.h
LArNoisyROSummary::SetBadFEBFlaggedPartitions
void SetBadFEBFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:80
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArNoisyROSummaryCnv_p2::persToTrans
virtual void persToTrans(const LArNoisyROSummary_p2 *pers, LArNoisyROSummary *trans, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p2.cxx:34
LArNoisyROSummary_p2::m_BadFEBFlaggedPartitions
uint8_t m_BadFEBFlaggedPartitions
Definition: LArNoisyROSummary_p2.h:26
LArNoisyROSummary_p2::m_SatMediumFlaggedPartitions
uint8_t m_SatMediumFlaggedPartitions
Definition: LArNoisyROSummary_p2.h:27
LArNoisyROSummary::add_noisy_preamp
void add_noisy_preamp(HWIdentifier febid, int channel)
Definition: LArNoisyROSummary.cxx:92
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
LArNoisyROSummaryCnv_p2.h
LArNoisyROSummary
Summary information for noisy LAr preamp / FEBs.
Definition: LArNoisyROSummary.h:28