Skip to content

Commit

Permalink
Clang format.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-kaspar committed Oct 28, 2020
1 parent 03bf99a commit 559606f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class StraightTrackAlignment {
virtual ~StraightTrackAlignment();

virtual void begin(edm::ESHandle<CTPPSRPAlignmentCorrectionsData> hRealAlignment,
edm::ESHandle<CTPPSGeometry> hRealGeometry, edm::ESHandle<CTPPSGeometry> hMisalignedGeometry);
edm::ESHandle<CTPPSGeometry> hRealGeometry,
edm::ESHandle<CTPPSGeometry> hMisalignedGeometry);

virtual void processEvent(const edm::EventID &eventId,
const edm::DetSetVector<TotemRPUVPattern> &uvPatternsStrip,
Expand Down
3 changes: 1 addition & 2 deletions CalibPPS/AlignmentRelative/plugins/PPSFastLocalSimulation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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.;
Expand Down
7 changes: 2 additions & 5 deletions CalibPPS/AlignmentRelative/plugins/PPSModifySingularModes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ using namespace edm;

//----------------------------------------------------------------------------------------------------

PPSModifySingularModes::PPSModifySingularModes(const ParameterSet &ps) :
ps_(ps),
tokenRealGeometry_(esConsumes<edm::Transition::BeginRun>())
{
}
PPSModifySingularModes::PPSModifySingularModes(const ParameterSet &ps)
: ps_(ps), tokenRealGeometry_(esConsumes<edm::Transition::BeginRun>()) {}

//----------------------------------------------------------------------------------------------------

Expand Down
7 changes: 2 additions & 5 deletions CalibPPS/AlignmentRelative/src/LocalTrackFitter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -109,9 +108,7 @@ void LocalTrackFitter::fitAndRemoveOutliers(HitCollection &selection,

try {
ATViAI = ATViA.Invert();
}
catch (...)
{
} catch (...) {
failed = true;
return;
}
Expand Down
3 changes: 2 additions & 1 deletion CalibPPS/AlignmentRelative/src/StraightTrackAlignment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ StraightTrackAlignment::~StraightTrackAlignment() {
//----------------------------------------------------------------------------------------------------

void StraightTrackAlignment::begin(edm::ESHandle<CTPPSRPAlignmentCorrectionsData> hRealAlignment,
edm::ESHandle<CTPPSGeometry> hRealGeometry, edm::ESHandle<CTPPSGeometry> hMisalignedGeometry) {
edm::ESHandle<CTPPSGeometry> hRealGeometry,
edm::ESHandle<CTPPSGeometry> hMisalignedGeometry) {
// reset counters
eventsTotal = 0;
eventsFitted = 0;
Expand Down

0 comments on commit 559606f

Please sign in to comment.