|
ATLAS Offline Software
|
Go to the documentation of this file.
23 for (
unsigned int i = 0;
i < nfebids; ++
i, ++subsetIt){
25 for (
unsigned int j = 0; j < nChannelsPerFeb; ++j){
38 for (
unsigned int i = 0;
i < ncorrs; ++
i){
59 unsigned int nsubsetsNotEmpty = 0;
61 const auto subsetEnd = transObj->
subsetEnd();
63 subsetIt != subsetEnd;
66 unsigned int nfebChans = (*subsetIt).second.size();
67 if (nfebChans != 0 && nfebChans != nChannelsPerFeb) {
69 <<
"LArOFCBinSubsetCnv_p1::transToPers - found incorrect number of channels per feb: " << nfebChans
73 if (nfebChans) ++nsubsetsNotEmpty;
79 persObj->
m_values.reserve(ncorrs+nsubsetsNotEmpty*nChannelsPerFeb);
83 subsetIt != subsetEnd;
86 unsigned int nfebChans = (*subsetIt).second.size();
87 if (nfebChans==0)
continue;
88 unsigned int febid = (*subsetIt).first;
90 for (
unsigned int j=0; j<nfebChans;++j)
91 persObj->
m_values.push_back((*subsetIt).second[j].m_bin);
101 persObj->
m_values.push_back(corrIt->second.m_bin);
void setGroupingType(unsigned int type)
set the type of grouping - defined in LArConditionsContainerBase.h
std::vector< unsigned int > m_corrChannels
virtual void persToTrans(const OFCBinPersType *persObj, OFCBinTransType *transObj, MsgStream &log) const override
persistent class container of LArConditionsSubset for LArSingleInt data.
unsigned channelVectorSize() const
unsigned int subsetSize() const
ConstCorrectionVecIt correctionVecEnd() const
virtual void transToPers(const OFCBinTransType *transObj, OFCBinPersType *persObj, MsgStream &log) const override
std::vector< unsigned int > m_febIds
void initialize(const std::vector< FebId > &ids, unsigned int gain)
Initialize with set of FEB ids.
std::vector< CorrectionPair > CorrectionVec
unsigned int m_groupingType
unsigned int channel() const
Access to the COOL channel number.
void setChannel(unsigned int channel)
set the COOL channel number
template class for use for I/O of conditions data
unsigned int gain() const
Access to gain.
size_type correctionVecSize() const
Size of channel set.
LArConditionsSubset_p1 m_subset
ConstSubsetIt subsetBegin() const
Iterators over subset.
std::vector< int > m_values
ConstSubsetIt subsetEnd() const
ConstCorrectionVecIt correctionVecBegin() const
Iterators over channel set.
void insertCorrections(CorrectionVec &&corrs)
Insert a group of corrections.
unsigned int groupingType() const
Type of grouping - defined in LArConditionsContainerBase.h.