|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
17 const unsigned nTDCRaws = pers->
m_tdc.size();
24 for (
unsigned nTDCRawNow=0; nTDCRawNow<nTDCRaws; nTDCRawNow++) {
28 TDCRaw -> setTDC( pers->
m_tdc[nTDCRawNow] );
31 TDCRaw -> setOverflow( pers->
m_overflow[nTDCRawNow] );
44 const unsigned nTDCRaws = trans->
size();
46 pers -> m_tdc.reserve(nTDCRaws);
47 pers -> m_underThreshold.reserve(nTDCRaws);
48 pers -> m_tbDetectorName.reserve(nTDCRaws);
49 pers -> m_overflow.reserve(nTDCRaws);
56 for (; TDCRawIt!=TDCRawIt_e; ++TDCRawIt) {
57 const TBTDCRaw * TDCRaw = * TDCRawIt;
59 pers -> m_tdc.push_back( TDCRaw->
getTDC() );
62 pers -> m_overflow.push_back( TDCRaw->
isOverflow() );
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
Const iterator class for DataVector/DataList.
virtual void transToPers(const TBTDCRawCont *trans, TBTDCRawCont_p1 *pers, MsgStream &log) const override
std::vector< signal_type > m_tdc
virtual void persToTrans(const TBTDCRawCont_p1 *pers, TBTDCRawCont *trans, MsgStream &log) const override
std::vector< bool > m_underThreshold
const std::string & getDetectorName() const
void clear()
Erase all the elements in the collection.
std::vector< bool > m_overflow
value_type push_back(value_type pElem)
Add an element to the end of the collection.
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
signal_type getTDC() const
std::vector< std::string > m_tbDetectorName
size_type size() const noexcept
Returns the number of elements in the collection.
signal_type isUnderThreshold() const
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.