Skip to content

Commit 6038b24

Browse files
authored
Merge pull request #60 from alibuild/alibot-cleanup-10788
[PWGUD] Please consider the following formatting changes to #10788
2 parents a319826 + 5e8a683 commit 6038b24

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

PWGUD/Tasks/upcTauRl.cxx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ struct UpcTauRl {
223223
} cutTauEvent;
224224

225225
struct : ConfigurableGroup {
226-
Configurable<bool> cutCanUseTrackPID{"cutUseTrackPID", true, {"Apply weak PID check on tracks."}};
227-
Configurable<int> cutCanNgoodPVtracs{"cutCanNgoodPVtracs", 2, {"How many good PV tracks to select."}};
226+
Configurable<bool> cutCanUseTrackPID{"cutUseTrackPID", true, {"Apply weak PID check on tracks."}};
227+
Configurable<int> cutCanNgoodPVtracs{"cutCanNgoodPVtracs", 2, {"How many good PV tracks to select."}};
228228
Configurable<float> cutCanMinElectronNsigmaEl{"cutCanMinElectronNsigmaEl", 4.0, {"Good el candidate hypo in. Upper n sigma cut on el hypo of selected electron. What is more goes away."}};
229229
Configurable<float> cutCanMaxElectronNsigmaEl{"cutCanMaxElectronNsigmaEl", -2.0, {"Good el candidate hypo in. Lower n sigma cut on el hypo of selected electron. What is less goes away."}};
230230
Configurable<bool> cutCanElectronHasTOF{"cutCanElectronHasTOF", true, {"Electron candidated is required to hit TOF."}};
@@ -2091,7 +2091,7 @@ struct UpcTauRl {
20912091

20922092
int countTracksPerCollision = 0;
20932093
int countGoodNonPVtracks = 0;
2094-
int countGoodPVtracks = 0;
2094+
int countGoodPVtracks = 0;
20952095
std::vector<int> vecTrkIdx;
20962096
// Loop over tracks with selections
20972097
for (const auto& track : tracks) {
@@ -2102,25 +2102,25 @@ struct UpcTauRl {
21022102
countGoodNonPVtracks++;
21032103
continue;
21042104
}
2105-
countGoodPVtracks++;
2106-
vecTrkIdx.push_back(track.index());
2105+
countGoodPVtracks++;
2106+
vecTrkIdx.push_back(track.index());
21072107
} // Loop over tracks with selections
21082108

2109-
// Apply weak condition on track PID
2110-
int countPVGTel = 0;
2111-
int countPVGTmupi = 0;
2112-
if (countGoodPVtracks == 2) {
2113-
for (const auto& vecMember : vecTrkIdx) {
2114-
const auto& thisTrk = tracks.iteratorAt(vecMember);
2115-
if (isElectronCandidate(thisTrk)) {
2116-
countPVGTel++;
2117-
continue;
2118-
}
2119-
if (isMuPionCandidate(thisTrk)) {
2120-
countPVGTmupi++;
2121-
}
2122-
}
2123-
}
2109+
// Apply weak condition on track PID
2110+
int countPVGTel = 0;
2111+
int countPVGTmupi = 0;
2112+
if (countGoodPVtracks == 2) {
2113+
for (const auto& vecMember : vecTrkIdx) {
2114+
const auto& thisTrk = tracks.iteratorAt(vecMember);
2115+
if (isElectronCandidate(thisTrk)) {
2116+
countPVGTel++;
2117+
continue;
2118+
}
2119+
if (isMuPionCandidate(thisTrk)) {
2120+
countPVGTmupi++;
2121+
}
2122+
}
2123+
}
21242124

21252125
if (cutPreselect.cutCanUseTrackPID ? ((countPVGTel == 2 && countPVGTmupi == 0) || (countPVGTel == 1 && countPVGTmupi == 1)) : countGoodPVtracks == cutPreselect.cutCanNgoodPVtracs) {
21262126
const auto& trk1 = tracks.iteratorAt(vecTrkIdx[0]);

0 commit comments

Comments
 (0)