7#include "Identifier/Identifier.h"
16 const unsigned nScints = pers->
m_signal.size();
23 for (
unsigned nScintNow=0; nScintNow<nScints; nScintNow++) {
27 scint -> setSignal( pers->
m_signal[nScintNow] );
32 scint -> setOverflow( pers->
m_overflow[nScintNow] );
45 const unsigned nScints = trans->
size();
47 pers -> m_signal.reserve(nScints);
48 pers -> m_time_signal.reserve(nScints);
49 pers -> m_signal_overflow.reserve(nScints);
50 pers -> m_time_overflow.reserve(nScints);
51 pers -> m_tbDetectorName.reserve(nScints);
52 pers -> m_overflow.reserve(nScints);
59 for (; scintIt!=scintIt_e; ++scintIt) {
63 pers -> m_signal.push_back( scint->
getSignal() );
68 pers -> m_overflow.push_back( scint->
isOverflow() );
DataModel_detail::const_iterator< DataVector > const_iterator
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
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.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
size_type size() const noexcept
Returns the number of elements in the collection.
void clear()
Erase all the elements in the collection.
const std::string & getDetectorName() const
virtual void transToPers(const TBScintillatorCont *trans, TBScintillatorCont_p1 *pers, MsgStream &log) const override
virtual void persToTrans(const TBScintillatorCont_p1 *pers, TBScintillatorCont *trans, MsgStream &log) const override
std::vector< std::string > m_tbDetectorName
std::vector< float > m_time_signal
std::vector< bool > m_signal_overflow
std::vector< bool > m_overflow
std::vector< bool > m_time_overflow
std::vector< float > m_signal
"TBEvent/TBScintillatorCont.h"
virtual bool isSignalOverflow() const
virtual bool isTimeOverflow() const
virtual float getTimeSignal() const
virtual float getSignal() const