From af52b9b7200667e475b0018b7dd043f179633627 Mon Sep 17 00:00:00 2001 From: Kenneth Long Date: Wed, 24 Feb 2021 08:26:44 +0100 Subject: [PATCH] More code formatting (sorry...) --- .../CommonNanoAOD/plugins/HitPositionTableProducer.cc | 7 +++---- .../NanoAOD/interface/ObjectIndexFromAssociationProducer.h | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/DPGAnalysis/CommonNanoAOD/plugins/HitPositionTableProducer.cc b/DPGAnalysis/CommonNanoAOD/plugins/HitPositionTableProducer.cc index 4369e4dd77301..f86ee30ea25d5 100644 --- a/DPGAnalysis/CommonNanoAOD/plugins/HitPositionTableProducer.cc +++ b/DPGAnalysis/CommonNanoAOD/plugins/HitPositionTableProducer.cc @@ -49,7 +49,6 @@ class HitPositionTableProducer : public edm::stream::EDProducer<> { iSetup.get().get("idealForDigi", trackGeom_); // Believe this is ideal, but we're not so precise here... iSetup.get().get(globalGeom_); - } GlobalPoint positionFromHit(const PCaloHit& hit) { @@ -62,7 +61,7 @@ class HitPositionTableProducer : public edm::stream::EDProducer<> { // Should really only be used for HGCAL GlobalPoint positionFromDetId(DetId id) { DetId::Detector det = id.det(); - if (det == DetId::Hcal || det == DetId::HGCalEE || det == DetId::HGCalHSi || det== DetId::HGCalHSc) { + if (det == DetId::Hcal || det == DetId::HGCalEE || det == DetId::HGCalHSi || det == DetId::HGCalHSc) { return rhtools_.getPosition(id); } else { throw cms::Exception("HitPositionTableProducer") << "Unsupported DetId type"; @@ -71,8 +70,8 @@ class HitPositionTableProducer : public edm::stream::EDProducer<> { GlobalPoint positionFromHit(const PSimHit& hit) { auto detId = DetId(hit.detUnitId()); - auto surface = detId.det() == DetId::Muon ? globalGeom_->idToDet(hit.detUnitId())->surface() : - trackGeom_->idToDet(hit.detUnitId())->surface(); + auto surface = detId.det() == DetId::Muon ? globalGeom_->idToDet(hit.detUnitId())->surface() + : trackGeom_->idToDet(hit.detUnitId())->surface(); GlobalPoint position = surface.toGlobal(hit.localPosition()); return position; } diff --git a/PhysicsTools/NanoAOD/interface/ObjectIndexFromAssociationProducer.h b/PhysicsTools/NanoAOD/interface/ObjectIndexFromAssociationProducer.h index b587b61919b94..ee02c1d7beb08 100644 --- a/PhysicsTools/NanoAOD/interface/ObjectIndexFromAssociationProducer.h +++ b/PhysicsTools/NanoAOD/interface/ObjectIndexFromAssociationProducer.h @@ -53,4 +53,3 @@ class ObjectIndexFromAssociationTableProducer : public edm::global::EDProducer<> const edm::EDGetTokenT> objMap_; const StringCutObjectSelector cut_; }; -