|
ATLAS Offline Software
|
Go to the documentation of this file.
11 MsgStream &
log)
const
19 unsigned int pedestalIndex = 0;
20 unsigned int pedestalrmsIndex = 0;
23 unsigned int ifebWithData = 0;
26 for (
unsigned int i = 0;
i < nfebids; ++
i, ++subsetIt){
28 unsigned int febid = subsetIt->first;
29 bool hasSparseData =
false;
30 unsigned int chansSet = 0;
31 unsigned int chansOffset = 0;
32 if (ifebWithData < persObj->m_subset.m_febsWithSparseData.size() &&
43 for (
unsigned int j = 0; j < nChannelsPerFeb; ++j){
45 bool copyChannel =
true;
47 if (!(chansSet & (1 << (j - chansOffset)))) {
51 if (j%32 == 31 && j < nChannelsPerFeb-2) {
66 <<
"LArPedestalSubsetCnv_p1::persToTrans - pedestal index too large: pedestal/size, pedestalrms/size "
67 << pedestalIndex <<
" " << persObj->
m_vPedestal.size() <<
" "
77 subsetIt->second[j].m_Pedestal = persObj->
m_vPedestal[pedestalIndex];
78 pedestalIndex+=nPedestals;
81 subsetIt->second[j].m_PedestalRMS = persObj->
m_vPedestalRMS[pedestalrmsIndex];
82 pedestalrmsIndex+=nPedestalRMSs;
92 corrs.resize (ncorrs);
95 for (
unsigned int i = 0;
i < ncorrs; ++
i){
100 <<
"LArPedestalSubsetCnv_p1::persToTrans - pedestal index too large: pedestal/size, pedestalrms/size "
101 << pedestalIndex <<
" " << persObj->
m_vPedestal.size() <<
" "
109 corrs[
i].second.m_Pedestal = persObj->
m_vPedestal[pedestalIndex];
110 pedestalIndex+=nPedestals;
114 corrs[
i].second.m_PedestalRMS = persObj->
m_vPedestalRMS[pedestalrmsIndex];
115 pedestalrmsIndex+=nPedestalRMSs;
133 MsgStream &
log)
const
136 log << MSG::ERROR <<
"LArPedestalSubset_p1 is obsolete and can't be written out any more." <<
endmsg;
void setGroupingType(unsigned int type)
set the type of grouping - defined in LArConditionsContainerBase.h
LArConditionsSubset_p1 m_subset
std::vector< unsigned int > m_corrChannels
std::vector< unsigned int > m_febsWithSparseData
unsigned int m_vPedestalSize
unsigned int m_vPedestalRMSSize
unsigned int subsetSize() const
virtual void transToPers(const LArPedestalTransType *transObj, LArPedestalPersType *persObj, MsgStream &log) const override
std::vector< float > m_vPedestalRMS
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
void setChannel(unsigned int channel)
set the COOL channel number
template class for use for I/O of conditions data
This file defines the template class used for I/O of conditions data.
virtual void persToTrans(const LArPedestalPersType *persObj, LArPedestalTransType *transObj, MsgStream &log) const override
ConstSubsetIt subsetBegin() const
Iterators over subset.
std::vector< float > m_vPedestal
persistent class container of LArConditionsSubset for LArPedestal data.
void insertCorrections(CorrectionVec &&corrs)
Insert a group of corrections.