Skip to content

Commit c3143bd

Browse files
authored
Please consider the following formatting changes (#8)
1 parent f5931b3 commit c3143bd

1 file changed

Lines changed: 25 additions & 23 deletions

File tree

PWGJE/Tasks/recoilJets.cxx

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,9 @@ struct RecoilJets {
508508
}
509509

510510
for (const auto& jet : jets) {
511-
//skip jets which have a constituent with pT above specified cut
512-
if(isJetWithHighPtConstituent(jet, tracks)) continue;
511+
// skip jets which have a constituent with pT above specified cut
512+
if (isJetWithHighPtConstituent(jet, tracks))
513+
continue;
513514

514515
spectra.fill(HIST("hJetPtEtaPhiRhoArea"), jet.pt(), jet.eta(), jet.phi(),
515516
collision.rho(), jet.area(), weight);
@@ -680,7 +681,7 @@ struct RecoilJets {
680681
for (const auto& jetBase : jetsBase) {
681682
bool bIsBaseJetRecoil =
682683
get<1>(isRecoilJet(jetBase, phiTTSig)) && bIsThereTTSig;
683-
dataForUnfolding(jetBase, jetsTag, bIsBaseJetRecoil, tracks, weight);
684+
dataForUnfolding(jetBase, jetsTag, bIsBaseJetRecoil, tracks, weight);
684685
}
685686
}
686687

@@ -911,30 +912,30 @@ struct RecoilJets {
911912
template <typename Jet, typename Tracks>
912913
bool isJetWithHighPtConstituent(Jet const& jet, Tracks const&)
913914
{
914-
bool bIsJetWithHighPtConstituent = false;
915-
for (const auto& jetConstituent : jet.template tracks_as<Tracks>()) {
916-
if (jetConstituent.pt() > maxJetConstituentPt) {
917-
bIsJetWithHighPtConstituent = true;
918-
break;
919-
}
920-
}
921-
return bIsJetWithHighPtConstituent;
915+
bool bIsJetWithHighPtConstituent = false;
916+
for (const auto& jetConstituent : jet.template tracks_as<Tracks>()) {
917+
if (jetConstituent.pt() > maxJetConstituentPt) {
918+
bIsJetWithHighPtConstituent = true;
919+
break;
920+
}
921+
}
922+
return bIsJetWithHighPtConstituent;
922923
}
923924

924-
template <typename PartJet, typename DetJet, typename TracksTable>
925+
template <typename PartJet, typename DetJet, typename TracksTable>
925926
void dataForUnfolding(PartJet const& partJet, DetJet const& detJets,
926-
bool bIsBaseJetRecoil, TracksTable const& tracks, float weight = 1.)
927+
bool bIsBaseJetRecoil, TracksTable const& tracks, float weight = 1.)
927928
{
928929

929-
bool bIsThereMatchedJet = partJet.has_matchedJetGeo();
930+
bool bIsThereMatchedJet = partJet.has_matchedJetGeo();
930931

931-
if (bIsThereMatchedJet) {
932-
const auto& jetsMatched =
933-
partJet.template matchedJetGeo_as<std::decay_t<DetJet>>();
932+
if (bIsThereMatchedJet) {
933+
const auto& jetsMatched =
934+
partJet.template matchedJetGeo_as<std::decay_t<DetJet>>();
934935

935936
for (const auto& jetMatched : jetsMatched) {
936937

937-
//skip matches where detector level jets have a constituent with pT above specified cut
938+
// skip matches where detector level jets have a constituent with pT above specified cut
938939
bool skipMatchedDetJet = isJetWithHighPtConstituent(jetMatched, tracks);
939940

940941
if (skipMatchedDetJet) {
@@ -948,22 +949,22 @@ struct RecoilJets {
948949
spectra.fill(HIST("hJetPt_DetLevel_vs_PartLevel"), jetMatched.pt(),
949950
partJet.pt(), weight);
950951
spectra.fill(HIST("hJetPt_resolution"),
951-
(partJet.pt() - jetMatched.pt()) / partJet.pt(),
952+
(partJet.pt() - jetMatched.pt()) / partJet.pt(),
952953
partJet.pt(), weight);
953954
spectra.fill(HIST("hJetPhi_resolution"),
954955
partJet.phi() - jetMatched.phi(), partJet.pt(), weight);
955-
956+
956957
if (bIsBaseJetRecoil) {
957958
spectra.fill(HIST("hJetPt_DetLevel_vs_PartLevel_RecoilJets"),
958959
jetMatched.pt(), partJet.pt(), weight);
959960
spectra.fill(HIST("hJetPt_resolution_RecoilJets"),
960-
(partJet.pt() - jetMatched.pt()) / partJet.pt(),
961+
(partJet.pt() - jetMatched.pt()) / partJet.pt(),
961962
partJet.pt(), weight);
962963
spectra.fill(HIST("hJetPhi_resolution_RecoilJets"),
963964
partJet.phi() - jetMatched.phi(), partJet.pt(), weight);
964965
}
965966
}
966-
}
967+
}
967968
} else {
968969
// Miss jets
969970
spectra.fill(HIST("hMissedJets_pT"), partJet.pt(), weight);
@@ -973,7 +974,8 @@ struct RecoilJets {
973974

974975
// Fake jets
975976
for (const auto& detJet : detJets) {
976-
if(isJetWithHighPtConstituent(detJet, tracks)) continue;
977+
if (isJetWithHighPtConstituent(detJet, tracks))
978+
continue;
977979

978980
bIsThereMatchedJet = detJet.has_matchedJetGeo();
979981
if (!bIsThereMatchedJet) {

0 commit comments

Comments
 (0)