Skip to content

Commit

Permalink
Enable ECAL rechits reconstruction on GPUs at HLT (#477)
Browse files Browse the repository at this point in the history
Extend the ECAL HLT cutomisation to run the ECAL rechit producer on GPU.

Add an edm::LogError in case of too many channels for the rechits and uncalibrated rechits producers.
  • Loading branch information
cmsbuild authored and fwyzard committed Dec 25, 2020
1 parent 24f4fb1 commit 148391f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ void EcalRecHitProducerGPU::acquire(edm::Event const& event,
nee_ = eeUncalibRecHits.size;
// std::cout << " [EcalRecHitProducerGPU::acquire] neb_:nee_ = " << neb_ << " : " << nee_ << std::endl;

if ((neb_ + nee_) > maxNumberHits_) {
edm::LogError("EcalRecHitProducerGPU") << "max number of channels exceeded. See options 'maxNumberHits' ";
}

int nchannelsEB = ebUncalibRecHits.size; // --> offsetForInput, first EB and then EE

// conditions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,10 @@ void EcalUncalibRecHitProducerGPU::acquire(edm::Event const& event,
neb_ = ebDigis.ndigis;
nee_ = eeDigis.ndigis;

if ((neb_ + nee_) > maxNumberHits_) {
edm::LogError("EcalUncalibRecHitProducerGPU") << "max number of channels exceeded. See options 'maxNumberHits' ";
}

// conditions
setup.get<EcalPedestalsRcd>().get(pedestalsHandle_);
setup.get<EcalGainRatiosRcd>().get(gainRatiosHandle_);
Expand Down

0 comments on commit 148391f

Please sign in to comment.