ATLAS Offline Software
LArNoisyROSummaryCnv_p4.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_p4::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  size_t smnbtightfebs = trans->get_MNBTight_febs().size();
20  pers->m_MNBTight_febs.reserve(smnbtightfebs);
21  for (const HWIdentifier& hwid : trans->get_MNBTight_febs())
22  {
23  pers->m_MNBTight_febs.push_back (hwid.get_identifier32().get_compact());
24  }
25 
26  size_t smnbloosefebs = trans->get_MNBLoose_febs().size();
27  pers->m_MNBLoose_febs.reserve(smnbloosefebs);
28  for (const HWIdentifier& hwid : trans->get_MNBLoose_febs())
29  {
30  pers->m_MNBLoose_febs.push_back (hwid.get_identifier32().get_compact());
31  }
32 
33  pers->m_noisy_preamps.clear();
34  pers->m_noisy_preamps.reserve(trans->get_noisy_preamps().size());
35  for (const std::pair<HWIdentifier, std::vector<int> >& p :
36  trans->get_noisy_preamps())
37  {
38  pers->m_noisy_preamps.emplace_back (p.first.get_identifier32().get_compact(),
39  p.second);
40  }
41 
48 
49 }
50 
52 {
53  log << MSG::DEBUG << " in LArNoisyROSummaryCnv_p4::persToTrans " << endmsg;
54  trans->clear();
55 
56  size_t sfebs = pers->m_noisy_febs.size();
57  for ( size_t i = 0; i < sfebs; i++)
58  {
59  HWIdentifier febId(Identifier32(pers->m_noisy_febs[i]));
60  trans->add_noisy_feb(febId);
61  }
62 
63  size_t smnbtightfebs = pers->m_MNBTight_febs.size();
64  for ( size_t i = 0; i < smnbtightfebs; i++)
65  {
67  trans->add_MNBTight_feb(febId);
68  }
69 
70  size_t smnbloosefebs = pers->m_MNBLoose_febs.size();
71  for ( size_t i = 0; i < smnbloosefebs; i++)
72  {
74  trans->add_MNBLoose_feb(febId);
75  }
76 
77  size_t spas = pers->m_noisy_preamps.size();
78  for ( size_t i = 0; i < spas; i++)
79  {
80  size_t schan = pers->m_noisy_preamps[i].second.size();
81  for ( size_t j = 0; j < schan; j++ )
82  {
83  HWIdentifier febId(Identifier32(pers->m_noisy_preamps[i].first));
84  trans->add_noisy_preamp(febId,pers->m_noisy_preamps[i].second[j]);
85  }
86  }
87 
94 
95 }
LArNoisyROSummary::SetSatMediumFlaggedPartitions
void SetSatMediumFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:86
Identifier32
Definition: Identifier32.h:25
LArNoisyROSummary::SetMNBLooseFlaggedPartitions
void SetMNBLooseFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:95
LArNoisyROSummary_p4::m_MNBLoose_febs
std::vector< unsigned int > m_MNBLoose_febs
Definition: LArNoisyROSummary_p4.h:35
LArNoisyROSummary::SetSatTightFlaggedPartitions
void SetSatTightFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:89
LArNoisyROSummary_p4::m_BadFEBFlaggedPartitions
uint8_t m_BadFEBFlaggedPartitions
Definition: LArNoisyROSummary_p4.h:37
LArNoisyROSummary::get_noisy_preamps
const std::vector< std::pair< HWIdentifier, std::vector< int > > > & get_noisy_preamps() const
Definition: LArNoisyROSummary.cxx:136
LArNoisyROSummary::SatTightFlaggedPartitions
uint8_t SatTightFlaggedPartitions() const
Definition: LArNoisyROSummary.h:129
LArNoisyROSummary_p4::m_SatTightFlaggedPartitions
uint8_t m_SatTightFlaggedPartitions
Definition: LArNoisyROSummary_p4.h:40
HWIdentifier
Definition: HWIdentifier.h:13
LArNoisyROSummary::add_MNBTight_feb
void add_MNBTight_feb(HWIdentifier febid)
Definition: LArNoisyROSummary.cxx:62
LArNoisyROSummary::get_MNBLoose_febs
const std::vector< HWIdentifier > & get_MNBLoose_febs() const
Definition: LArNoisyROSummary.cxx:130
LArNoisyROSummaryCnv_p4.h
LArNoisyROSummary_p4::m_SatMediumFlaggedPartitions
uint8_t m_SatMediumFlaggedPartitions
Definition: LArNoisyROSummary_p4.h:39
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::add_MNBLoose_feb
void add_MNBLoose_feb(HWIdentifier febid)
Definition: LArNoisyROSummary.cxx:82
LArNoisyROSummary::get_noisy_febs
const std::vector< HWIdentifier > & get_noisy_febs() const
Definition: LArNoisyROSummary.cxx:115
LArNoisyROSummary_p4::m_noisy_febs
std::vector< unsigned int > m_noisy_febs
Definition: LArNoisyROSummary_p4.h:30
LArNoisyROSummary::clear
void clear()
Definition: LArNoisyROSummary.cxx:24
LArNoisyROSummary_p4::m_noisy_preamps
std::vector< std::pair< unsigned int, std::vector< int > > > m_noisy_preamps
Definition: LArNoisyROSummary_p4.h:36
LArNoisyROSummary::SetMNBTightFlaggedPartitions
void SetMNBTightFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:92
LArNoisyROSummary.h
LArNoisyROSummaryCnv_p4::transToPers
virtual void transToPers(const LArNoisyROSummary *trans, LArNoisyROSummary_p4 *pers, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p4.cxx:8
LArNoisyROSummary_p4::m_MNBLooseFlaggedPartitions
uint8_t m_MNBLooseFlaggedPartitions
Definition: LArNoisyROSummary_p4.h:41
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
LArNoisyROSummary_p4::m_BadFEB_WFlaggedPartitions
uint8_t m_BadFEB_WFlaggedPartitions
Definition: LArNoisyROSummary_p4.h:38
LArNoisyROSummary::get_MNBTight_febs
const std::vector< HWIdentifier > & get_MNBTight_febs() const
Definition: LArNoisyROSummary.cxx:120
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArNoisyROSummary_p4
Definition: LArNoisyROSummary_p4.h:15
LArNoisyROSummary_p4::m_MNBTight_febs
std::vector< unsigned int > m_MNBTight_febs
Definition: LArNoisyROSummary_p4.h:34
LArNoisyROSummary_p4::m_MNBTightFlaggedPartitions
uint8_t m_MNBTightFlaggedPartitions
Definition: LArNoisyROSummary_p4.h:42
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
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
LArNoisyROSummaryCnv_p4::persToTrans
virtual void persToTrans(const LArNoisyROSummary_p4 *pers, LArNoisyROSummary *trans, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p4.cxx:51