|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #include "Identifier/Identifier.h"
19 const unsigned nScints = pers->
m_signal.size();
26 for (
unsigned nScintNow=0; nScintNow<nScints; nScintNow++) {
30 scint -> setSignal( pers->
m_signal[nScintNow] );
35 scint -> setOverflow( pers->
m_overflow[nScintNow] );
43 unsigned int nSignals=pers->
m_signals.size();
55 const unsigned nScints = trans->
size();
57 pers -> m_signal.reserve(nScints);
58 pers -> m_time_signal.reserve(nScints);
59 pers -> m_signal_overflow.reserve(nScints);
60 pers -> m_time_overflow.reserve(nScints);
61 pers -> m_tbDetectorName.reserve(nScints);
62 pers -> m_overflow.reserve(nScints);
69 for (; scintIt!=scintIt_e; ++scintIt) {
73 pers -> m_signal.push_back( scint->
getSignal() );
78 pers -> m_overflow.push_back( scint->
isOverflow() );
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
std::vector< float > m_signal
std::vector< std::string > m_tbDetectorName
Const iterator class for DataVector/DataList.
virtual void persToTrans(const TBTailCatcher_p1 *pers, TBTailCatcher *trans, MsgStream &log) const override
std::vector< bool > m_signal_overflow
virtual bool isSignalOverflow() const
virtual float getSignal() const
std::vector< float > m_time_signal
virtual float getTimeSignal() const
std::vector< bool > m_overflow
virtual bool isTimeOverflow() const
std::vector< bool > m_time_overflow
std::vector< double > m_signals
virtual void transToPers(const TBTailCatcher *trans, TBTailCatcher_p1 *pers, MsgStream &log) const override
const std::string & getDetectorName() const
void clear()
Erase all the elements in the collection.
std::vector< double > m_signals
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
void addScintillator(TBScintillator *thisScint)
const std::vector< signal_type > & getSignals() 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.