7 #include "Identifier/Identifier.h"
18 log << MSG::ERROR <<
"LArRawSCContainer_p1 is inconsistent! " << std::endl;
24 std::vector<int>::const_iterator en_it=pers->
m_energies.begin();
25 std::vector<int>::const_iterator en_it_e;
27 std::vector<unsigned short>::const_iterator bcid_it=pers->
m_bcids.begin();
28 std::vector<unsigned short>::const_iterator bcid_it_e;
30 std::vector<bool>::const_iterator satur_it=pers->
m_satur.begin();
31 std::vector<bool>::const_iterator satur_it_e;
33 for (
unsigned i=0;
i<nDigits;
i++) {
35 std::vector<int> energies (en_it,en_it_e);
38 std::vector<unsigned short> bcids (bcid_it,bcid_it_e);
41 std::vector<bool> satur (satur_it,satur_it_e);
52 satur_it = satur_it_e;
63 unsigned int nDigits=trans->
size();
65 pers->
m_chan.reserve(nDigits);
70 (*(trans->
begin()))->nsamples()
73 (*(trans->
begin()))->nsamples()
76 (*(trans->
begin()))->nsamples()
79 for (
const LArRawSC* transDigit : *trans) {
80 pers->
m_channelID.push_back(transDigit->hardwareID().get_identifier32().get_compact());
81 pers->
m_chan.push_back(transDigit->chan());
82 pers->
m_sourceId.push_back(transDigit->SourceId());
83 pers->
m_nEnergies.push_back(transDigit->energies().size());
85 transDigit->energies().begin(),
86 transDigit->energies().end());
88 transDigit->bcids().begin(),
89 transDigit->bcids().end());
91 transDigit->satur().begin(),
92 transDigit->satur().end());