|  | ATLAS Offline Software
    | 
 
 
 
Go to the documentation of this file.
    7 #include "Identifier/Identifier.h" 
   18     log << MSG::ERROR << 
"LArDigitContainer_p1 is inconsistent! " << std::endl;
 
   25   std::vector<unsigned short>::const_iterator sample_it=pers->
m_samples.begin();
 
   26   std::vector<unsigned short>::const_iterator sample_it_e;
 
   28   for (
unsigned i=0;
i<nDigits;
i++) {
 
   30     std::vector<short> samples (sample_it,sample_it_e);
 
   36     sample_it = sample_it_e;
 
   50   unsigned int nDigits=trans->
size();
 
   52   pers->
m_gain.reserve(nDigits);
 
   56                 (*(trans->
begin()))->nsamples() 
 
   59   for (
const LArDigit* transDigit : *trans) {
 
   60     pers->
m_channelID.push_back(transDigit->hardwareID().get_identifier32().get_compact());
 
   61     pers->
m_gain.push_back((
unsigned char)transDigit->gain());
 
   62     pers->
m_nSamples.push_back(transDigit->samples().size());
 
   64                             transDigit->samples().begin(),
 
   65                             transDigit->samples().end());
 
  
void reserve(size_type n)
Attempt to preallocate enough memory for a specified number of elements.
std::vector< unsigned short > m_samples
std::vector< unsigned int > m_channelID
Liquid Argon digit base class.
void clear()
Erase all the elements in the collection.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
virtual void persToTrans(const LArDigitContainer_p1 *pers, LArDigitContainer *trans, MsgStream &log) const override
std::vector< unsigned short > m_nSamples
virtual void transToPers(const LArDigitContainer *trans, LArDigitContainer_p1 *pers, MsgStream &log) const override
Container class for LArDigit.
std::vector< unsigned char > m_gain
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.