From 559606f04f4f4afc58e323e8fd59f0b81b8fb853 Mon Sep 17 00:00:00 2001 From: Jan Kaspar Date: Wed, 28 Oct 2020 21:52:13 +0100 Subject: [PATCH] Clang format. --- .../AlignmentRelative/interface/StraightTrackAlignment.h | 3 ++- .../AlignmentRelative/plugins/PPSFastLocalSimulation.cc | 3 +-- .../AlignmentRelative/plugins/PPSModifySingularModes.cc | 7 ++----- CalibPPS/AlignmentRelative/src/LocalTrackFitter.cc | 7 ++----- CalibPPS/AlignmentRelative/src/StraightTrackAlignment.cc | 3 ++- 5 files changed, 9 insertions(+), 14 deletions(-) diff --git a/CalibPPS/AlignmentRelative/interface/StraightTrackAlignment.h b/CalibPPS/AlignmentRelative/interface/StraightTrackAlignment.h index faf127cccdf93..e8b8305a7d9cd 100644 --- a/CalibPPS/AlignmentRelative/interface/StraightTrackAlignment.h +++ b/CalibPPS/AlignmentRelative/interface/StraightTrackAlignment.h @@ -51,7 +51,8 @@ class StraightTrackAlignment { virtual ~StraightTrackAlignment(); virtual void begin(edm::ESHandle hRealAlignment, - edm::ESHandle hRealGeometry, edm::ESHandle hMisalignedGeometry); + edm::ESHandle hRealGeometry, + edm::ESHandle hMisalignedGeometry); virtual void processEvent(const edm::EventID &eventId, const edm::DetSetVector &uvPatternsStrip, diff --git a/CalibPPS/AlignmentRelative/plugins/PPSFastLocalSimulation.cc b/CalibPPS/AlignmentRelative/plugins/PPSFastLocalSimulation.cc index 51c68db8f0d20..7dd378ac75c1e 100644 --- a/CalibPPS/AlignmentRelative/plugins/PPSFastLocalSimulation.cc +++ b/CalibPPS/AlignmentRelative/plugins/PPSFastLocalSimulation.cc @@ -206,8 +206,7 @@ PPSFastLocalSimulation::PPSFastLocalSimulation(const edm::ParameterSet &ps) position_dist_(ps.getParameterSet("position_distribution")), angular_dist_(ps.getParameterSet("angular_distribution")), - esTokenGeometry_(esConsumes()) - { + esTokenGeometry_(esConsumes()) { // v position of strip 0 stripZeroPosition_ = RPTopology::last_strip_to_border_dist_ + (RPTopology::no_of_strips_ - 1) * RPTopology::pitch_ - RPTopology::y_width_ / 2.; diff --git a/CalibPPS/AlignmentRelative/plugins/PPSModifySingularModes.cc b/CalibPPS/AlignmentRelative/plugins/PPSModifySingularModes.cc index d6c2e28f88dd6..b2f2b1dc5c59c 100644 --- a/CalibPPS/AlignmentRelative/plugins/PPSModifySingularModes.cc +++ b/CalibPPS/AlignmentRelative/plugins/PPSModifySingularModes.cc @@ -43,11 +43,8 @@ using namespace edm; //---------------------------------------------------------------------------------------------------- -PPSModifySingularModes::PPSModifySingularModes(const ParameterSet &ps) : - ps_(ps), - tokenRealGeometry_(esConsumes()) -{ -} +PPSModifySingularModes::PPSModifySingularModes(const ParameterSet &ps) + : ps_(ps), tokenRealGeometry_(esConsumes()) {} //---------------------------------------------------------------------------------------------------- diff --git a/CalibPPS/AlignmentRelative/src/LocalTrackFitter.cc b/CalibPPS/AlignmentRelative/src/LocalTrackFitter.cc index cbcead9607299..47ddddeb81648 100644 --- a/CalibPPS/AlignmentRelative/src/LocalTrackFitter.cc +++ b/CalibPPS/AlignmentRelative/src/LocalTrackFitter.cc @@ -73,8 +73,7 @@ void LocalTrackFitter::fitAndRemoveOutliers(HitCollection &selection, } // check if input size is sufficient - if (selection.size() < 4) - { + if (selection.size() < 4) { failed = true; return; } @@ -109,9 +108,7 @@ void LocalTrackFitter::fitAndRemoveOutliers(HitCollection &selection, try { ATViAI = ATViA.Invert(); - } - catch (...) - { + } catch (...) { failed = true; return; } diff --git a/CalibPPS/AlignmentRelative/src/StraightTrackAlignment.cc b/CalibPPS/AlignmentRelative/src/StraightTrackAlignment.cc index 8550c3bb7bad4..55d94d8127778 100644 --- a/CalibPPS/AlignmentRelative/src/StraightTrackAlignment.cc +++ b/CalibPPS/AlignmentRelative/src/StraightTrackAlignment.cc @@ -250,7 +250,8 @@ StraightTrackAlignment::~StraightTrackAlignment() { //---------------------------------------------------------------------------------------------------- void StraightTrackAlignment::begin(edm::ESHandle hRealAlignment, - edm::ESHandle hRealGeometry, edm::ESHandle hMisalignedGeometry) { + edm::ESHandle hRealGeometry, + edm::ESHandle hMisalignedGeometry) { // reset counters eventsTotal = 0; eventsFitted = 0;