|
ATLAS Offline Software
|
Go to the documentation of this file.
18 for (
unsigned int i = 0;
i < nfebids; ++
i, ++subsetIt){
20 for (
unsigned int j = 0; j < nChannelsPerFeb; ++j){
31 for (
unsigned int i = 0;
i < ncorrs; ++
i){
56 unsigned int nsubsetsNotEmpty = 0;
58 const auto subsetEnd = transObj->
subsetEnd();
60 subsetIt != subsetEnd;
63 unsigned int nfebChans = subsetIt->second.size();
64 if (nfebChans != 0 && nfebChans != nChannelsPerFeb) {
66 <<
"LArDSPThresholdsSubsetCnv_p1::transToPers - found incorrect number of channels per feb: " << nfebChans
70 if (nfebChans) ++nsubsetsNotEmpty;
76 persObj->
m_tQThr.reserve(ncorrs+nsubsetsNotEmpty*nChannelsPerFeb);
77 persObj->
m_samplesThr.reserve(ncorrs+nsubsetsNotEmpty*nChannelsPerFeb);
78 persObj->
m_trigSumThr.reserve(ncorrs+nsubsetsNotEmpty*nChannelsPerFeb);
82 subsetIt != subsetEnd;
85 unsigned int nfebChans = subsetIt->second.size();
86 if (nfebChans==0)
continue;
87 unsigned int febid = subsetIt->first;
89 for (
unsigned int j=0; j<nfebChans;++j) {
90 persObj->
m_tQThr.push_back(subsetIt->second[j].tQThr());
91 persObj->
m_samplesThr.push_back(subsetIt->second[j].samplesThr());
92 persObj->
m_trigSumThr.push_back(subsetIt->second[j].trigSumThr());
103 persObj->
m_tQThr.push_back(corrIt->second.tQThr());
104 persObj->
m_samplesThr.push_back(corrIt->second.samplesThr());
105 persObj->
m_trigSumThr.push_back(corrIt->second.trigSumThr());
void setGroupingType(unsigned int type)
set the type of grouping - defined in LArConditionsContainerBase.h
std::vector< unsigned int > m_corrChannels
unsigned channelVectorSize() const
virtual void persToTrans(const DSPThresholdsPersType *persObj, DSPThresholdsTransType *transObj, MsgStream &log) const override
unsigned int subsetSize() const
virtual void transToPers(const DSPThresholdsTransType *transObj, DSPThresholdsPersType *persObj, MsgStream &log) const override
ConstCorrectionVecIt correctionVecEnd() const
persistent class container of LArConditionsSubset for LArDSPThresholds data.
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_samplesThr
LArConditionsSubset_p1 m_subset
void setChannel(unsigned int channel)
set the COOL channel number
template class for use for I/O of conditions data
std::vector< float > m_trigSumThr
unsigned int gain() const
Access to gain.
size_type correctionVecSize() const
Size of channel set.
ConstSubsetIt subsetBegin() const
Iterators over subset.
ConstSubsetIt subsetEnd() const
std::vector< float > m_tQThr
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.