Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed May 3, 2021
1 parent 10868c0 commit b6c4945
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Validation/HGCalValidation/plugins/HGCalHitValidation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,10 @@ HGCalHitValidation::HGCalHitValidation(const edm::ParameterSet& cfg) {
ietaExcludeBH_ = cfg.getParameter<std::vector<int>>("ietaExcludeBH");

for (const auto& name : geometrySource_) {
tok_ddd_.emplace_back(esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(edm::ESInputTag{"", name}));
tok_geom_.emplace_back(esConsumes<HGCalGeometry, IdealGeometryRecord, edm::Transition::BeginRun>(edm::ESInputTag{"", name}));
tok_ddd_.emplace_back(
esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(edm::ESInputTag{"", name}));
tok_geom_.emplace_back(
esConsumes<HGCalGeometry, IdealGeometryRecord, edm::Transition::BeginRun>(edm::ESInputTag{"", name}));
}

#ifdef EDM_ML_DEBUG
Expand Down Expand Up @@ -178,7 +180,7 @@ void HGCalHitValidation::bookHistograms(DQMStore::IBooker& iB, edm::Run const&,
void HGCalHitValidation::dqmBeginRun(edm::Run const& iRun, edm::EventSetup const& iSetup) {
//initiating hgc Geometry
for (size_t i = 0; i < geometrySource_.size(); i++) {
edm::ESHandle<HGCalDDDConstants> hgcCons= iSetup.getHandle(tok_ddd_[i]);
edm::ESHandle<HGCalDDDConstants> hgcCons = iSetup.getHandle(tok_ddd_[i]);
if (hgcCons.isValid()) {
hgcCons_.push_back(hgcCons.product());
} else {
Expand Down

0 comments on commit b6c4945

Please sign in to comment.