Skip to content

Commit 6db5360

Browse files
Update qgTreeCreator.cxx
1 parent c4ef955 commit 6db5360

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

PWGJE/Tasks/qgTreeCreator.cxx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ struct QGTreeCreator {
131131
}
132132

133133
float girth = sumPt > 0 ? sumPtDr / sumPt : -1;
134-
float ptd = sumPt > 0 ? std::sqrt(sumPt2) / sumPt : -1;
134+
float ptd = sumPt > 0 ? std::sqrt(sumPt2) / sumPt : -1;
135135
//----------------------------------
136136
// matching block
137137
//----------------------------------
@@ -141,10 +141,11 @@ struct QGTreeCreator {
141141

142142
for (auto const& match : matches) {
143143

144-
if (match.chargedMCDetectorLevelJetId() != jet.globalIndex())
144+
145+
if (match.chargedMCDetectorLevelJetId() != jet.globalIndex())
145146
continue;
146-
147-
auto truthJet = truthJets.iteratorAt(
147+
148+
auto truthJet = truthJets.iteratorAt(
148149
match.chargedMCParticleLevelJetId());
149150

150151
matchDr = deltaR(jet.eta(), jet.phi(),
@@ -160,7 +161,10 @@ struct QGTreeCreator {
160161
//----------------------------------
161162
float maxPt = -1;
162163
int pdg = 0;
163-
for (auto const& tc :truthJet.tracks_as<aod::ChargedMCParticleLevelJetConstituent>()){
164+
165+
for (auto const& tc :
166+
truthJet.tracks_as<aod::ChargedMCParticleLevelJetConstituent>()) {
167+
164168
if (!tc.has_mcParticle())
165169
continue;
166170

0 commit comments

Comments
 (0)