|
ATLAS Offline Software
|
Go to the documentation of this file.
27 for (
unsigned int i = 0;
i < nfebids; ++
i, ++subsetIt){
29 for (
unsigned int j = 0; j < nChannelsPerFeb; ++j){
34 subsetIt->second[j].m_data=
data;
44 for (
unsigned int i = 0;
i < ncorrs; ++
i){
50 corrs[
i].second.m_data=
data;
68 unsigned int nsubsetsNotEmpty = 0;
71 const auto subsetEnd = transObj->
subsetEnd();
73 subsetIt != subsetEnd;
76 unsigned int nfebChans = subsetIt->second.size();
77 if (nfebChans != 0 && nfebChans != nChannelsPerFeb) {
79 <<
"LArSingleFloatSubsetCnv_p1::transToPers - found incorrect number of channels per feb: " << nfebChans
83 if (nfebChans) ++nsubsetsNotEmpty;
89 persObj->
m_values.reserve(ncorrs+nsubsetsNotEmpty*nChannelsPerFeb);
93 subsetIt != subsetEnd;
96 unsigned int nfebChans = subsetIt->second.size();
97 if (nfebChans==0)
continue;
98 unsigned int febid = subsetIt->first;
100 for (
unsigned int j=0; j<nfebChans;++j)
101 persObj->
m_values.push_back(subsetIt->second[j].m_data);
111 persObj->
m_values.push_back(corrIt->second.m_data);
void setGroupingType(unsigned int type)
set the type of grouping - defined in LArConditionsContainerBase.h
char data[hepevt_bytes_allocation_ATLAS]
std::vector< unsigned int > m_corrChannels
unsigned channelVectorSize() const
unsigned int subsetSize() const
ConstCorrectionVecIt correctionVecEnd() const
Defines a common ERRORCODE enum for LAr-Calibration objects.
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.
std::vector< float > m_values
virtual void persToTrans(const SingleFloatPersType *persObj, SingleFloatTransType *transObj, MsgStream &log) const override
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
virtual void transToPers(const SingleFloatTransType *transObj, SingleFloatPersType *persObj, MsgStream &log) const override
ConstSubsetIt subsetBegin() const
Iterators over subset.
persistent class container of LArConditionsSubset for LArSingleFloat data.
ConstSubsetIt subsetEnd() const
Copies a single float from a persistent LAr calibration object, protected against roundoff errors.
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.