|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
17 const unsigned nADCRaws = pers->
m_adc.size();
24 for (
unsigned nADCRawNow=0; nADCRawNow<nADCRaws; nADCRawNow++) {
28 ADCRaw -> setADC( pers->
m_adc[nADCRawNow] );
30 ADCRaw -> setOverflow( pers->
m_overflow[nADCRawNow] );
44 const unsigned nADCRaws = trans->
size();
46 pers -> m_adc.reserve(nADCRaws);
47 pers -> m_tbDetectorName.reserve(nADCRaws);
48 pers -> m_overflow.reserve(nADCRaws);
55 for (; ADCRawIt!=ADCRawIt_e; ++ADCRawIt) {
56 const TBADCRaw * ADCRaw = * ADCRawIt;
58 pers -> m_adc.push_back( ADCRaw->
getADC() );
60 pers -> m_overflow.push_back( ADCRaw->
isOverflow() );
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Const iterator class for DataVector/DataList.
std::vector< bool > m_overflow
const std::string & getDetectorName() const
void clear()
Erase all the elements in the collection.
std::vector< signal_type > m_adc
virtual void transToPers(const TBADCRawCont *trans, TBADCRawCont_p1 *pers, MsgStream &log) const override
value_type push_back(value_type pElem)
Add an element to the end of the collection.
std::vector< std::string > m_tbDetectorName
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
signal_type getADC() const
size_type size() const noexcept
Returns the number of elements in the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
virtual void persToTrans(const TBADCRawCont_p1 *pers, TBADCRawCont *trans, MsgStream &log) const override