Skip to content

Commit c23f83c

Browse files
Andreas MikalsenAndreas Mikalsen
authored andcommitted
Fill StoredReducedEvent for JE framework
1 parent 8f6c591 commit c23f83c

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

PWGDQ/Tasks/dqEfficiency_withAssoc.cxx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ void PrintBitMap(TMap map, int nbits)
275275
struct AnalysisEventSelection {
276276
Produces<aod::EventCuts> eventSel;
277277
Produces<aod::MixingHashes> hash;
278+
Produces<aod::StoredReducedEvents> JetEvents;
278279
OutputObj<THashList> fOutputList{"output"};
279280
Configurable<std::string> fConfigMixingVariables{"cfgMixingVars", "", "Mixing configs separated by a comma, default no mixing"};
280281
Configurable<std::string> fConfigEventCuts{"cfgEventCuts", "eventStandard", "Event selection"};
@@ -496,13 +497,26 @@ struct AnalysisEventSelection {
496497
runEventSelection<gkEventFillMap>(events, mcEvents);
497498
publishSelections<gkEventFillMap>(events);
498499
}
499-
500+
void processFillEvents(MyEvents const& events)
501+
{
502+
for (auto& event : events) {
503+
JetEvents(event.tag_raw(),
504+
event.runNumber(),
505+
event.posX(),
506+
event.posY(),
507+
event.posZ(),
508+
event.numContrib(),
509+
event.collisionTime(),
510+
event.collisionTimeRes());
511+
}
512+
}
500513
void processDummy(MyEvents&)
501514
{
502515
// do nothing
503516
}
504517

505518
PROCESS_SWITCH(AnalysisEventSelection, processSkimmed, "Run event selection on DQ skimmed events", false);
519+
PROCESS_SWITCH(AnalysisEventSelection, processFillEvents, "Fill storedReducedEvents table for use in JE framework", false);
506520
PROCESS_SWITCH(AnalysisEventSelection, processDummy, "Dummy function", true);
507521
};
508522

PWGDQ/Tasks/tableReader_withAssoc.cxx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ struct AnalysisEventSelection {
284284

285285
Produces<aod::EventCuts> eventSel;
286286
Produces<aod::MixingHashes> hash;
287+
Produces<aod::StoredReducedEvents> JetEvents;
287288
OutputObj<THashList> fOutputList{"output"};
288289

289290
// TODO: Provide the mixing variables and binning directly via configurables (e.g. vectors of float)
@@ -577,6 +578,19 @@ struct AnalysisEventSelection {
577578
runEventSelection<gkEventFillMapWithQvectorCentr>(events);
578579
publishSelections<gkEventFillMapWithQvectorCentr>(events);
579580
}
581+
void processFillEvents(MyEventsBasic const& events)
582+
{
583+
for (auto& event : events) {
584+
JetEvents(event.tag_raw(),
585+
event.runNumber(),
586+
event.posX(),
587+
event.posY(),
588+
event.posZ(),
589+
event.numContrib(),
590+
event.collisionTime(),
591+
event.collisionTimeRes());
592+
}
593+
}
580594
void processDummy(MyEventsBasic&)
581595
{
582596
// do nothing
@@ -589,6 +603,7 @@ struct AnalysisEventSelection {
589603
PROCESS_SWITCH(AnalysisEventSelection, processSkimmedWithMultExtraZdc, "Run event selection on DQ skimmed events, with mult extra and ZDC", false);
590604
PROCESS_SWITCH(AnalysisEventSelection, processSkimmedWithMultExtraZdcFit, "Run event selection on DQ skimmed events, with mult extra, ZDC and FIT", false);
591605
PROCESS_SWITCH(AnalysisEventSelection, processSkimmedWithQvectorCentr, "Run event selection on DQ skimmed events, with Q-vector", false);
606+
PROCESS_SWITCH(AnalysisEventSelection, processFillEvents, "Fill storedReducedEvents table for use in JE framework", false);
592607
PROCESS_SWITCH(AnalysisEventSelection, processDummy, "Dummy function", true);
593608
};
594609

0 commit comments

Comments
 (0)