Skip to content

Commit ceec7b0

Browse files
committed
Code format
1 parent f418b85 commit ceec7b0

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

RecoHGCal/TICL/plugins/PatternRecognitionbyCA.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ void PatternRecognitionbyCA<TILES>::energyRegressionAndID(const std::vector<reco
469469
}
470470

471471
template <typename TILES>
472-
void PatternRecognitionbyCA<TILES>::fillPSetDescription(edm::ParameterSetDescription& iDesc) {
472+
void PatternRecognitionbyCA<TILES>::fillPSetDescription(edm::ParameterSetDescription &iDesc) {
473473
iDesc.add<int>("algo_verbosity", 0);
474474
iDesc.add<bool>("oneTracksterPerTrackSeed", false);
475475
iDesc.add<bool>("promoteEmptyRegionToTrackster", false);
@@ -485,7 +485,8 @@ void PatternRecognitionbyCA<TILES>::fillPSetDescription(edm::ParameterSetDescrip
485485
iDesc.add<int>("min_layers_per_trackster", 10);
486486
iDesc.add<std::vector<int>>("filter_on_categories", {0});
487487
iDesc.add<double>("pid_threshold", 0.)->setComment("make default such that no filtering is applied");
488-
iDesc.add<double>("energy_em_over_total_threshold", -1.)->setComment("make default such that no filtering is applied");
488+
iDesc.add<double>("energy_em_over_total_threshold", -1.)
489+
->setComment("make default such that no filtering is applied");
489490
iDesc.add<double>("max_longitudinal_sigmaPCA", 9999);
490491
iDesc.add<double>("max_delta_time", 3.)->setComment("nsigma");
491492
iDesc.add<std::string>("eid_input_name", "input");

RecoHGCal/TICL/plugins/PatternRecognitionbyCLUE3D.cc

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -500,14 +500,12 @@ void PatternRecognitionbyCLUE3D<TILES>::calculateLocalDensity(
500500
// Skip masked layer clusters
501501
if ((layerandSoa.first == -1) && (layerandSoa.second == -1))
502502
continue;
503-
auto const& clustersLayer = clusters_[layerandSoa.first];
503+
auto const &clustersLayer = clusters_[layerandSoa.first];
504504
if (PatternRecognitionAlgoBaseT<TILES>::algo_verbosity_ > PatternRecognitionAlgoBaseT<TILES>::Advanced) {
505505
edm::LogVerbatim("PatternRecogntionbyCLUE3D")
506506
<< "OtherLayer: " << layerandSoa.first << " SoaIDX: " << layerandSoa.second;
507-
edm::LogVerbatim("PatternRecogntionbyCLUE3D")
508-
<< "OtherEta: " << clustersLayer.eta[layerandSoa.second];
509-
edm::LogVerbatim("PatternRecogntionbyCLUE3D")
510-
<< "OtherPhi: " << clustersLayer.phi[layerandSoa.second];
507+
edm::LogVerbatim("PatternRecogntionbyCLUE3D") << "OtherEta: " << clustersLayer.eta[layerandSoa.second];
508+
edm::LogVerbatim("PatternRecogntionbyCLUE3D") << "OtherPhi: " << clustersLayer.phi[layerandSoa.second];
511509
}
512510
// extend by 26 mm, roughly 2 cells, more wrt sum of radii
513511
float delta = clustersOnLayer.radius[i] + clustersLayer.radius[layerandSoa.second] + 2.6f;
@@ -530,11 +528,11 @@ void PatternRecognitionbyCLUE3D<TILES>::calculateLocalDensity(
530528
clusters_[layerandSoa.first].energy[layerandSoa.second];
531529
}
532530
}
533-
} // end of loop on possible compatible clusters
534-
} // end of loop over phi-bin region
535-
} // end of loop over eta-bin region
536-
} // end of loop on the sibling layers
537-
} // end of loop over clusters on this layer
531+
} // end of loop on possible compatible clusters
532+
} // end of loop over phi-bin region
533+
} // end of loop over eta-bin region
534+
} // end of loop on the sibling layers
535+
} // end of loop over clusters on this layer
538536
if (PatternRecognitionAlgoBaseT<TILES>::algo_verbosity_ > PatternRecognitionAlgoBaseT<TILES>::Advanced) {
539537
edm::LogVerbatim("PatternRecogntionbyCLUE3D") << std::endl;
540538
}
@@ -593,9 +591,9 @@ void PatternRecognitionbyCLUE3D<TILES>::calculateDistanceToHigher(
593591
continue;
594592
auto const &clustersOnOtherLayer = clusters_[layerandSoa.first];
595593
float dist = reco::deltaR2(clustersOnLayer.eta[i],
596-
clustersOnLayer.phi[i],
597-
clustersOnOtherLayer.eta[layerandSoa.second],
598-
clustersOnOtherLayer.phi[layerandSoa.second]);
594+
clustersOnLayer.phi[i],
595+
clustersOnOtherLayer.eta[layerandSoa.second],
596+
clustersOnOtherLayer.phi[layerandSoa.second]);
599597
bool foundHigher = (clustersOnOtherLayer.rho[layerandSoa.second] > clustersOnLayer.rho[i]) ||
600598
(clustersOnOtherLayer.rho[layerandSoa.second] == clustersOnLayer.rho[i] &&
601599
clustersOnOtherLayer.layerClusterOriginalIdx[layerandSoa.second] >
@@ -621,8 +619,8 @@ void PatternRecognitionbyCLUE3D<TILES>::calculateDistanceToHigher(
621619
bool foundNearestHigherInEtaPhiCylinder = (i_delta != maxDelta);
622620
if (PatternRecognitionAlgoBaseT<TILES>::algo_verbosity_ > PatternRecognitionAlgoBaseT<TILES>::Advanced) {
623621
edm::LogVerbatim("PatternRecogntionbyCLUE3D")
624-
<< "i_delta: " << sqrt(i_delta) << " passed: " << foundNearestHigherInEtaPhiCylinder << " " << i_nearestHigher.first
625-
<< " " << i_nearestHigher.second;
622+
<< "i_delta: " << sqrt(i_delta) << " passed: " << foundNearestHigherInEtaPhiCylinder << " "
623+
<< i_nearestHigher.first << " " << i_nearestHigher.second;
626624
}
627625
if (foundNearestHigherInEtaPhiCylinder) {
628626
clustersOnLayer.delta[i] = sqrt(i_delta);
@@ -697,7 +695,7 @@ int PatternRecognitionbyCLUE3D<TILES>::findAndAssignTracksters(
697695
}
698696

699697
template <typename TILES>
700-
void PatternRecognitionbyCLUE3D<TILES>::fillPSetDescription(edm::ParameterSetDescription& iDesc) {
698+
void PatternRecognitionbyCLUE3D<TILES>::fillPSetDescription(edm::ParameterSetDescription &iDesc) {
701699
iDesc.add<int>("algo_verbosity", 0);
702700
iDesc.add<double>("criticalDensity", 4)->setComment("in GeV");
703701
iDesc.add<int>("densitySiblingLayers", 3);

0 commit comments

Comments
 (0)