99// granted to it by virtue of its status as an Intergovernmental Organization
1010// or submit itself to any jurisdiction.
1111
12- #include " Framework/runDataProcessing.h"
13- #include " Framework/AnalysisTask.h"
14- #include " Framework/HistogramRegistry.h"
15- #include " Framework/Configurable.h"
16-
1712#include " PWGJE/DataModel/Jet.h"
1813#include " PWGJE/DataModel/JetMatching.h"
19- # include " Common/DataModel/TrackSelectionTables.h "
14+
2015#include " Common/DataModel/MCTruthContainer.h"
16+ #include " Common/DataModel/TrackSelectionTables.h"
17+
18+ #include " Framework/AnalysisTask.h"
19+ #include " Framework/Configurable.h"
20+ #include " Framework/HistogramRegistry.h"
21+ #include " Framework/runDataProcessing.h"
2122
2223#include < cmath>
2324
@@ -46,7 +47,7 @@ DECLARE_SOA_TABLE(QGJetTable, "AOD", "QGJET",
4647 MatchDeltaR,
4748 PtResponse,
4849 QGLabel);
49- }
50+ } // namespace o2::aod
5051
5152// ------------------------------------------------
5253// helper functions
@@ -97,8 +98,8 @@ int getInitiatingParton(auto const& particle,
9798// ------------------------------------------------
9899struct QGTreeCreator {
99100
100- Configurable<float > jetPtMin{" jetPtMin" ,10 .f };
101- Configurable<float > maxMatchDeltaR{" maxMatchDeltaR" ,0 .3f };
101+ Configurable<float > jetPtMin{" jetPtMin" , 10 .f };
102+ Configurable<float > maxMatchDeltaR{" maxMatchDeltaR" , 0 .3f };
102103
103104 Produces<aod::QGJetTable> qgjets;
104105
@@ -126,12 +127,12 @@ struct QGTreeCreator {
126127
127128 nconst++;
128129 sumPt += pt;
129- sumPt2 += pt* pt;
130- sumPtDr += pt* dr;
130+ sumPt2 += pt * pt;
131+ sumPtDr += pt * dr;
131132 }
132133
133- float girth = sumPt> 0 ? sumPtDr/ sumPt : -1 ;
134- float ptd = sumPt> 0 ? std::sqrt (sumPt2)/ sumPt : -1 ;
134+ float girth = sumPt > 0 ? sumPtDr / sumPt : -1 ;
135+ float ptd = sumPt > 0 ? std::sqrt (sumPt2) / sumPt : -1 ;
135136
136137 // ----------------------------------
137138 // matching block
@@ -146,7 +147,7 @@ struct QGTreeCreator {
146147 continue ;
147148
148149 auto truthJet = truthJets.iteratorAt (
149- match.chargedMCParticleLevelJetId ());
150+ match.chargedMCParticleLevelJetId ());
150151
151152 matchDr = deltaR (jet.eta (), jet.phi (),
152153 truthJet.eta (), truthJet.phi ());
@@ -163,8 +164,7 @@ struct QGTreeCreator {
163164 int pdg = 0 ;
164165
165166 for (auto const & tc :
166- truthJet.tracks_as <aod::ChargedMCParticleLevelJetConstituent>())
167- {
167+ truthJet.tracks_as <aod::ChargedMCParticleLevelJetConstituent>()) {
168168 if (!tc.has_mcParticle ())
169169 continue ;
170170
0 commit comments