@@ -58,14 +58,15 @@ namespace o2::aod
5858namespace jetInfo
5959{
6060// DECLARE_SOA_INDEX_COLUMN(JetIndex, jetindex); //! The jet index
61- DECLARE_SOA_COLUMN (JetpT, jetpt, float ); // ! jet pT
62- DECLARE_SOA_COLUMN (JetEta, jeteta, float ); // ! jet eta
63- DECLARE_SOA_COLUMN (JetPhi, jetphi, float ); // ! jet phi
64- DECLARE_SOA_COLUMN (NTracks, nTracks, int16_t ); // ! number of charged tracks inside the jet
65- DECLARE_SOA_COLUMN (NSV, nSV, int16_t ); // ! Number of secondary vertices in the jet
66- DECLARE_SOA_COLUMN (JetMass, mass, float ); // ! The jet mass
67- DECLARE_SOA_COLUMN (JetFlavor, jetFl, int16_t ); // ! The jet flavor (b, c, or lf)
68- DECLARE_SOA_COLUMN (JetR, jetR, int16_t ); // ! The jet radius
61+ DECLARE_SOA_COLUMN (JetpT, jetpt, float ); // ! jet pT
62+ DECLARE_SOA_COLUMN (JetEta, jeteta, float ); // ! jet eta
63+ DECLARE_SOA_COLUMN (JetPhi, jetphi, float ); // ! jet phi
64+ DECLARE_SOA_COLUMN (NTracks, nTracks, int16_t ); // ! number of charged tracks inside the jet
65+ DECLARE_SOA_COLUMN (NSV, nSV, int16_t ); // ! Number of secondary vertices in the jet
66+ DECLARE_SOA_COLUMN (JetMass, mass, float ); // ! The jet mass
67+ DECLARE_SOA_COLUMN (JetFlavor, jetFl, int16_t ); // ! The jet flavor (b, c, or lf)
68+ DECLARE_SOA_COLUMN (JetR, jetR, int16_t ); // ! The jet radius
69+ DECLARE_SOA_COLUMN (JetEventWeight, jetEventWeight, float ); // ! The jet event weight for pTHat weighting
6970} // namespace jetInfo
7071
7172DECLARE_SOA_TABLE (bjetParams, " AOD" , " BJETPARAM" ,
@@ -81,6 +82,12 @@ DECLARE_SOA_TABLE(bjetParams, "AOD", "BJETPARAM",
8182
8283using bjetParam = bjetParams::iterator;
8384
85+ DECLARE_SOA_TABLE (bjetParamsExtra, " AOD" , " BJETEXTRA" ,
86+ // o2::soa::Index<>,
87+ jetInfo::JetEventWeight);
88+
89+ using bjetParamExtra = bjetParamsExtra::iterator;
90+
8491namespace trackInfo
8592{
8693DECLARE_SOA_INDEX_COLUMN (bjetParam, jetindex); // ! The jet index
@@ -192,6 +199,7 @@ DECLARE_SOA_TABLE(bjetConstituents, "AOD", "BJETCONSTIT",
192199struct BJetTreeCreator {
193200
194201 Produces<aod::bjetParams> bjetParamsTable;
202+ Produces<aod::bjetParamsExtra> bjetParamsExtraTable;
195203 Produces<aod::bjetTracksParams> bjetTracksParamsTable;
196204 Produces<aod::bjetTracksParamsExtra> bjetTracksExtraTable;
197205 Produces<aod::bjetSVParams> bjetSVParamsTable;
@@ -704,6 +712,7 @@ struct BJetTreeCreator {
704712 if (produceTree) {
705713 bjetConstituentsTable (bjetParamsTable.lastIndex () + 1 , indicesTracks, indicesSVs);
706714 bjetParamsTable (analysisJet.pt (), analysisJet.eta (), analysisJet.phi (), indicesTracks.size (), nSVs, analysisJet.mass (), jetFlavor, analysisJet.r ());
715+ bjetParamsExtraTable (analysisJet.eventWeight ());
707716 }
708717 }
709718 }
0 commit comments