@@ -96,7 +96,7 @@ DECLARE_SOA_TABLE(D0Tables, "AOD", "D0TABLE",
9696
9797DECLARE_SOA_TABLE (D0McDTables, " AOD" , " D0MCDTABLE" ,
9898 o2::soa::Index<>,
99- collisionInfo::CollisionTableId ,
99+ collisionInfo::McCollisionTableId ,
100100 d0Info::D0PromptBDT,
101101 d0Info::D0NonPromptBDT,
102102 d0Info::D0BkgBDT,
@@ -121,6 +121,7 @@ namespace jetInfo
121121{
122122// D0 tables
123123DECLARE_SOA_INDEX_COLUMN (D0Table, d0Table);
124+ DECLARE_SOA_INDEX_COLUMN (D0McDTable, d0McDTable);
124125DECLARE_SOA_INDEX_COLUMN (D0McPTable, d0McPTable);
125126// Jet
126127DECLARE_SOA_COLUMN (JetPt, jetPt, float );
@@ -143,6 +144,15 @@ DECLARE_SOA_TABLE_STAGED(JetTables, "JETTABLE",
143144 jetInfo::JetPhi,
144145 jetInfo::D0JetDeltaPhi);
145146
147+ DECLARE_SOA_TABLE_STAGED (JetMcDTables, " JETMCDTABLE" ,
148+ o2::soa::Index<>,
149+ collisionInfo::CollisionTableId,
150+ jetInfo::D0McDTableId,
151+ jetInfo::JetPt,
152+ jetInfo::JetEta,
153+ jetInfo::JetPhi,
154+ jetInfo::D0JetDeltaPhi);
155+
146156DECLARE_SOA_TABLE_STAGED (JetMcPTables, " JETMCPTABLE" ,
147157 o2::soa::Index<>,
148158 collisionInfo::McCollisionTableId,
@@ -175,13 +185,14 @@ struct JetCorrelationD0 {
175185 Produces<aod::D0McDTables> tableD0McDetector;
176186 Produces<aod::D0McPTables> tableD0McParticle;
177187 Produces<aod::JetTables> tableJet;
188+ Produces<aod::JetMcDTables> tableJetMcDetector;
178189 Produces<aod::JetMcPTables> tableJetMcParticle;
179190 Produces<aod::JetMatchedTables> tableJetMatched;
180191
181192 // Configurables
182193 Configurable<std::string> eventSelections{" eventSelections" , " sel8" , " choose event selection" };
183194 Configurable<bool > skipMBGapEvents{" skipMBGapEvents" , false , " decide to run over MB gap events or not" };
184- Configurable<bool > applyRCTSelections{" applyRCTSelections" , true , " decide to apply RCT selections" };
195+ Configurable<bool > applyRCTSelections{" applyRCTSelections" , false , " decide to apply RCT selections" };
185196 Configurable<float > jetPtCutMin{" jetPtCutMin" , 5.0 , " minimum value of jet pt" };
186197 Configurable<float > d0PtCutMin{" d0PtCutMin" , 1.0 , " minimum value of d0 pt" };
187198 Configurable<float > jetMcPtCutMin{" jetMcPtCutMin" , 3.0 , " minimum value of jet pt particle level" };
@@ -366,12 +377,12 @@ struct JetCorrelationD0 {
366377 continue ;
367378 }
368379 fillJetHistograms (jet, dPhi);
369- tableJet (tableCollision.lastIndex (),
370- tableD0McDetector.lastIndex (),
371- jet.pt (),
372- jet.eta (),
373- jet.phi (),
374- dPhi);
380+ tableJetMcDetector (tableCollision.lastIndex (),
381+ tableD0McDetector.lastIndex (),
382+ jet.pt (),
383+ jet.eta (),
384+ jet.phi (),
385+ dPhi);
375386 }
376387 }
377388 }
0 commit comments