18 auto selectedRawData = std::make_unique<FEDRawDataCollection>();
22 vector<int>::const_iterator
it =
fedList.begin();
23 vector<int>::const_iterator itEnd =
fedList.end();
24 for (;
it != itEnd; ++
it) {
26 size_t size = fedData.
size();
31 memcpy(fedDataProd.
data(), fedData.
data(), size);
38 if (fedRange.second == 0)
41 for (
int i = fedRange.first;
i <= fedRange.second; ++
i) {
43 size_t size = fedData.
size();
45 FEDRawData& fedDataProd = selectedRawData->FEDData(
i);
48 memcpy(fedDataProd.
data(), fedData.
data(), size);
52 return selectedRawData;
56 const pair<int, int>&
range) {
62 const vector<int>& list) {
std::unique_ptr< FEDRawDataCollection > select(const edm::Handle< FEDRawDataCollection > &rawData)
size_t size() const
Lenght of the data buffer in bytes.
std::vector< unsigned int > const fedList
void resize(size_t newsize, size_t wordsize=8)
const unsigned char * data() const
Return a const pointer to the beginning of the data buffer.
static constexpr int lastFEDId()