|
ATLAS Offline Software
|
Go to the documentation of this file.
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());
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
std::vector< unsigned short > m_nSamples
Const iterator class for DataVector/DataList.
const std::vector< short > & samples() const
const HWIdentifier & hardwareID() const
Identifier32 get_identifier32() const
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
value_type get_compact() const
Get the compact id.
Liquid Argon digit base class.
std::vector< unsigned short > m_samples
virtual void persToTrans(const TBLArDigitContainer_p1 *pers, TBLArDigitContainer *trans, MsgStream &log) const override
void clear()
Erase all the elements in the collection.
std::vector< unsigned int > m_channelID
value_type push_back(value_type pElem)
Add an element to the end of the collection.
std::vector< unsigned char > m_gain
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
CaloGain::CaloGain gain() const
virtual void transToPers(const TBLArDigitContainer *trans, TBLArDigitContainer_p1 *pers, MsgStream &log) const override
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.