Skip to content

Commit 002ed80

Browse files
committed
fix cpp errors (2)
1 parent 3e21163 commit 002ed80

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

PWGLF/TableProducer/Nuspex/ebyeMaker.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ struct EbyeMaker {
678678
continue;
679679
}
680680

681-
if (trackPt <= ptTof[iP] || (trackPt > ptTof[iP] && hasTof)) {
681+
if (trackPt <= ptTof[iP] || hasTof) {
682682
CandidateTrack candTrack;
683683
candTrack.pt = track.sign() > 0. ? trackPt : -trackPt;
684684
candTrack.eta = trackEta;
@@ -945,7 +945,7 @@ struct EbyeMaker {
945945
candV0.genpt = genPt;
946946
candV0.geneta = mcPart.eta();
947947
candV0.pdgcode = pdgCode;
948-
auto it = find_if(candidateV0s.begin(), candidateV0s.end(), [&](CandidateV0& v0) { return v0.mcIndex == mcPart.globalIndex(); });
948+
auto it = find_if(candidateV0s.begin(), candidateV0s.end(), [&](const CandidateV0& v0) { return v0.mcIndex == mcPart.globalIndex(); });
949949
if (it != candidateV0s.end()) {
950950
continue;
951951
} else {
@@ -968,7 +968,7 @@ struct EbyeMaker {
968968
else if (mcPart.has_mothers() && iP == 0 && kUsePID)
969969
candTrack.pdgcodemoth = getPartTypeMother(mcPart);
970970

971-
auto it = find_if(candidateTracks[iP].begin(), candidateTracks[iP].end(), [&](CandidateTrack& trk) { return trk.mcIndex == mcPart.globalIndex(); });
971+
auto it = find_if(candidateTracks[iP].begin(), candidateTracks[iP].end(), [&](const CandidateTrack& trk) { return trk.mcIndex == mcPart.globalIndex(); });
972972
if (it != candidateTracks[iP].end()) {
973973
continue;
974974
} else {
@@ -1026,7 +1026,7 @@ struct EbyeMaker {
10261026

10271027
float centrality = collision.centRun2V0M();
10281028
const float centTriggerEdges[]{10.f, 30.f, 50.f};
1029-
if (!(collision.sel7() && collision.alias_bit(kINT7)) && (!kINT7Intervals || (kINT7Intervals && ((centrality >= centTriggerEdges[0] && centrality < centTriggerEdges[1]) || centrality > centTriggerEdges[2]))))
1029+
if (!(collision.sel7() && collision.alias_bit(kINT7)) && (!kINT7Intervals || ((centrality >= centTriggerEdges[0] && centrality < centTriggerEdges[1]) || centrality > centTriggerEdges[2])))
10301030
continue;
10311031

10321032
float centralityCl0 = collision.centRun2CL0();

0 commit comments

Comments
 (0)