8#include "Identifier/Identifier.h"
19 log << MSG::ERROR <<
"LArDigitContainer_p1 is inconsistent! " << std::endl;
26 std::vector<unsigned short>::const_iterator sample_it=pers->
m_samples.begin();
28 for (
unsigned i=0;i<nDigits;i++) {
29 std::vector<unsigned short>::const_iterator sample_it_e =
31 std::vector<short> samples (sample_it,sample_it_e);
32 sample_it = sample_it_e;
34 auto transDig = std::make_unique<LArDigit>
49 unsigned int nDigits=trans->
size();
51 pers->
m_gain.reserve(nDigits);
55 (*(trans->
begin()))->nsamples()
61 for (;it!=it_e;++it) {
64 pers->
m_gain.push_back((
unsigned char)transDigit->
gain());
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.
value_type get_compact() const
Get the compact id.
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
Liquid Argon digit base class.
CaloGain::CaloGain gain() const
const HWIdentifier & hardwareID() const
const std::vector< short > & samples() const
virtual void persToTrans(const TBLArDigitContainer_p1 *pers, TBLArDigitContainer *trans, MsgStream &log) const override
virtual void transToPers(const TBLArDigitContainer *trans, TBLArDigitContainer_p1 *pers, MsgStream &log) const override
std::vector< unsigned int > m_channelID
std::vector< unsigned char > m_gain
std::vector< unsigned short > m_samples
std::vector< unsigned short > m_nSamples