Skip to content

Commit

Permalink
Replace hardcoded value with the number of samples from EcalDataFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard authored Jul 21, 2020
1 parent 4a55c17 commit d368e22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EventFilter/EcalRawToDigi/plugins/EcalCPUDigisProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "CUDADataFormats/EcalDigi/interface/DigisCollection.h"
#include "CondFormats/DataRecord/interface/EcalMappingElectronicsRcd.h"
#include "DataFormats/EcalDetId/interface/EcalDetIdCollections.h"
#include "DataFormats/EcalDigi/interface/EcalDataFrame.h"
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
#include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
Expand Down Expand Up @@ -134,11 +135,10 @@ void EcalCPUDigisProducer::acquire(edm::Event const& event,
auto const& eedigis = ctx.get(eedigisProduct);

// resize tmp buffers
// FIXME remove hardcoded values
dataebtmp.resize(ebdigis.size * EcalDataFrame::MAXSAMPLES);
dataeetmp.resize(eedigis.size * EcalDataFrame::MAXSAMPLES);
idsebtmp.resize(ebdigis.size);
dataebtmp.resize(ebdigis.size * 10);
idseetmp.resize(eedigis.size);
dataeetmp.resize(eedigis.size * 10);

// enqeue transfers
cudaCheck(cudaMemcpyAsync(
Expand Down

0 comments on commit d368e22

Please sign in to comment.