Skip to content

Commit 60aeffb

Browse files
Update qgTreeCreator.cxx
1 parent 6d008b9 commit 60aeffb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

PWGJE/Tasks/qgTreeCreator.cxx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ DECLARE_SOA_TABLE(QGJetTable, "AOD", "QGJET",
4646
MatchDeltaR,
4747
PtResponse,
4848
QGLabel);
49-
} //namespace o2::aod
49+
} // namespace o2::aod
5050

5151
//------------------------------------------------
5252
// helper functions
@@ -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
//----------------------------------
@@ -143,9 +143,9 @@ struct QGTreeCreator {
143143

144144
if (match.chargedMCDetectorLevelJetId() != jet.globalIndex())
145145
continue;
146-
146+
147147
auto truthJet = truthJets.iteratorAt(
148-
match.chargedMCParticleLevelJetId());
148+
match.chargedMCParticleLevelJetId());
149149

150150
matchDr = deltaR(jet.eta(), jet.phi(),
151151
truthJet.eta(), truthJet.phi());
@@ -160,10 +160,8 @@ struct QGTreeCreator {
160160
//----------------------------------
161161
float maxPt = -1;
162162
int pdg = 0;
163-
164-
for (auto const& tc :
165-
truthJet.tracks_as<aod::ChargedMCParticleLevelJetConstituent>())
166-
{
163+
for (auto const& tc :truthJet.tracks_as<aod::ChargedMCParticleLevelJetConstituent>()){
164+
167165
if (!tc.has_mcParticle())
168166
continue;
169167

0 commit comments

Comments
 (0)