ATLAS Offline Software
LArNoisyROSummaryCnv_p5.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_p5::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 
49 
50 }
51 
53 {
54  log << MSG::DEBUG << " in LArNoisyROSummaryCnv_p5::persToTrans " << endmsg;
55  trans->clear();
56 
57  size_t sfebs = pers->m_noisy_febs.size();
58  for ( size_t i = 0; i < sfebs; i++)
59  {
60  HWIdentifier febId(Identifier32(pers->m_noisy_febs[i]));
61  trans->add_noisy_feb(febId);
62  }
63 
64  size_t smnbtightfebs = pers->m_MNBTight_febs.size();
65  for ( size_t i = 0; i < smnbtightfebs; i++)
66  {
68  trans->add_MNBTight_feb(febId);
69  }
70 
71  size_t smnbloosefebs = pers->m_MNBLoose_febs.size();
72  for ( size_t i = 0; i < smnbloosefebs; i++)
73  {
75  trans->add_MNBLoose_feb(febId);
76  }
77 
78  size_t spas = pers->m_noisy_preamps.size();
79  for ( size_t i = 0; i < spas; i++)
80  {
81  size_t schan = pers->m_noisy_preamps[i].second.size();
82  for ( size_t j = 0; j < schan; j++ )
83  {
84  HWIdentifier febId(Identifier32(pers->m_noisy_preamps[i].first));
85  trans->add_noisy_preamp(febId,pers->m_noisy_preamps[i].second[j]);
86  }
87  }
88 
96 
97 }
LArNoisyROSummary::SetSatMediumFlaggedPartitions
void SetSatMediumFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:82
Identifier32
Definition: Identifier32.h:25
LArNoisyROSummary_p5::m_SatTightFlaggedPartitions
uint8_t m_SatTightFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:41
LArNoisyROSummary::MNBTight_PsVetoFlaggedPartitions
uint8_t MNBTight_PsVetoFlaggedPartitions() const
Definition: LArNoisyROSummary.h:130
LArNoisyROSummary::SetMNBLooseFlaggedPartitions
void SetMNBLooseFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:91
LArNoisyROSummary::SetSatTightFlaggedPartitions
void SetSatTightFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:85
LArNoisyROSummary::get_noisy_preamps
const std::vector< std::pair< HWIdentifier, std::vector< int > > > & get_noisy_preamps() const
Definition: LArNoisyROSummary.cxx:129
LArNoisyROSummary::SatTightFlaggedPartitions
uint8_t SatTightFlaggedPartitions() const
Definition: LArNoisyROSummary.h:121
LArNoisyROSummary::SetMNBTight_PsVetoFlaggedPartitions
void SetMNBTight_PsVetoFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:94
HWIdentifier
Definition: HWIdentifier.h:13
LArNoisyROSummary::add_MNBTight_feb
void add_MNBTight_feb(HWIdentifier febid)
Definition: LArNoisyROSummary.cxx:55
LArNoisyROSummary::get_MNBLoose_febs
const std::vector< HWIdentifier > & get_MNBLoose_febs() const
Definition: LArNoisyROSummary.cxx:123
LArNoisyROSummaryCnv_p5.h
LArNoisyROSummary_p5::m_MNBTight_PsVetoFlaggedPartitions
uint8_t m_MNBTight_PsVetoFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:44
LArNoisyROSummary_p5::m_MNBLoose_febs
std::vector< unsigned int > m_MNBLoose_febs
Definition: LArNoisyROSummary_p5.h:36
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
LArNoisyROSummary::MNBTightFlaggedPartitions
uint8_t MNBTightFlaggedPartitions() const
Definition: LArNoisyROSummary.h:127
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
LArNoisyROSummary_p5::m_noisy_preamps
std::vector< std::pair< unsigned int, std::vector< int > > > m_noisy_preamps
Definition: LArNoisyROSummary_p5.h:37
LArNoisyROSummary::MNBLooseFlaggedPartitions
uint8_t MNBLooseFlaggedPartitions() const
Definition: LArNoisyROSummary.h:124
LArNoisyROSummary::add_MNBLoose_feb
void add_MNBLoose_feb(HWIdentifier febid)
Definition: LArNoisyROSummary.cxx:75
LArNoisyROSummary::get_noisy_febs
const std::vector< HWIdentifier > & get_noisy_febs() const
Definition: LArNoisyROSummary.cxx:108
LArNoisyROSummaryCnv_p5::transToPers
virtual void transToPers(const LArNoisyROSummary *trans, LArNoisyROSummary_p5 *pers, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p5.cxx:8
LArNoisyROSummary::clear
void clear()
Definition: LArNoisyROSummary.cxx:23
LArNoisyROSummary_p5
Definition: LArNoisyROSummary_p5.h:15
LArNoisyROSummary::SetMNBTightFlaggedPartitions
void SetMNBTightFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:88
LArNoisyROSummary.h
LArNoisyROSummary_p5::m_SatMediumFlaggedPartitions
uint8_t m_SatMediumFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:40
LArNoisyROSummary_p5::m_noisy_febs
std::vector< unsigned int > m_noisy_febs
Definition: LArNoisyROSummary_p5.h:31
LArNoisyROSummary::SetBadFEBFlaggedPartitions
void SetBadFEBFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:76
LArNoisyROSummary_p5::m_BadFEBFlaggedPartitions
uint8_t m_BadFEBFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:38
DEBUG
#define DEBUG
Definition: page_access.h:11
LArNoisyROSummary::BadFEB_WFlaggedPartitions
uint8_t BadFEB_WFlaggedPartitions() const
Definition: LArNoisyROSummary.h:115
LArNoisyROSummary::get_MNBTight_febs
const std::vector< HWIdentifier > & get_MNBTight_febs() const
Definition: LArNoisyROSummary.cxx:113
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
LArNoisyROSummary_p5::m_MNBLooseFlaggedPartitions
uint8_t m_MNBLooseFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:42
LArNoisyROSummary_p5::m_MNBTightFlaggedPartitions
uint8_t m_MNBTightFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:43
LArNoisyROSummary::add_noisy_preamp
void add_noisy_preamp(HWIdentifier febid, int channel)
Definition: LArNoisyROSummary.cxx:85
LArNoisyROSummary::SatMediumFlaggedPartitions
uint8_t SatMediumFlaggedPartitions() const
Definition: LArNoisyROSummary.h:118
LArNoisyROSummary::add_noisy_feb
void add_noisy_feb(HWIdentifier febid)
Definition: LArNoisyROSummary.cxx:45
LArNoisyROSummary::BadFEBFlaggedPartitions
uint8_t BadFEBFlaggedPartitions() const
Definition: LArNoisyROSummary.h:112
LArNoisyROSummaryCnv_p5::persToTrans
virtual void persToTrans(const LArNoisyROSummary_p5 *pers, LArNoisyROSummary *trans, MsgStream &log) const override
Definition: LArNoisyROSummaryCnv_p5.cxx:52
LArNoisyROSummary_p5::m_MNBTight_febs
std::vector< unsigned int > m_MNBTight_febs
Definition: LArNoisyROSummary_p5.h:35
LArNoisyROSummary::SetBadFEB_WFlaggedPartitions
void SetBadFEB_WFlaggedPartitions(uint8_t bitpattern)
Definition: LArNoisyROSummary.h:79
LArNoisyROSummary
Summary information for noisy LAr preamp / FEBs.
Definition: LArNoisyROSummary.h:26
LArNoisyROSummary_p5::m_BadFEB_WFlaggedPartitions
uint8_t m_BadFEB_WFlaggedPartitions
Definition: LArNoisyROSummary_p5.h:39