Skip to content

Commit

Permalink
Merge pull request #35164 from abhih1/FixLaserCorr_113X
Browse files Browse the repository at this point in the history
Fix laser correction timing error in Ecal DQM [CMSSW_11_3_X]
  • Loading branch information
cmsbuild committed Sep 7, 2021
2 parents fd28642 + f0ee93e commit 4ea1526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion DQM/EcalMonitorTasks/interface/OccupancyTask.h
Expand Up @@ -29,7 +29,6 @@ namespace ecaldqm {
void runOnDigis(DigiCollection const&, Collections);
void runOnTPDigis(EcalTrigPrimDigiCollection const&);
void runOnRecHits(EcalRecHitCollection const&, Collections);
void setEventTime(const edm::TimeValue_t& iTime);
void setTokens(edm::ConsumesCollector&) override;

private:
Expand Down
4 changes: 2 additions & 2 deletions DQM/EcalMonitorTasks/src/OccupancyTask.cc
@@ -1,5 +1,5 @@
#include "DQM/EcalMonitorTasks/interface/OccupancyTask.h"

#include "FWCore/Framework/interface/Event.h"
#include "DQM/EcalCommon/interface/EcalDQMCommonUtils.h"
#include "DataFormats/EcalRawData/interface/EcalDCCHeaderBlock.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
Expand Down Expand Up @@ -27,7 +27,6 @@ namespace ecaldqm {
}

void OccupancyTask::beginRun(edm::Run const&, edm::EventSetup const& _es) { FillLaser = true; }
void OccupancyTask::setEventTime(const edm::TimeValue_t& iTime) { m_iTime = iTime; }
void OccupancyTask::beginEvent(edm::Event const& _evt,
edm::EventSetup const& _es,
bool const& ByLumiResetSwitch,
Expand All @@ -38,6 +37,7 @@ namespace ecaldqm {
MEs_.at("RecHitThrAllByLumi").reset(GetElectronicsMap());
}
MESet& meLaserCorrProjEta(MEs_.at("LaserCorrProjEta"));
m_iTime = _evt.time().value();
if (FillLaser) {
float lasercalib = 1.;
auto const& laser = &_es.getData(lasertoken_);
Expand Down

0 comments on commit 4ea1526

Please sign in to comment.