Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions PWGUD/TableProducer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

add_subdirectory(Converters)

o2physics_add_dpl_workflow(dgcand-producer
SOURCES DGCandProducer.cxx
o2physics_add_dpl_workflow(dg-cand-producer
SOURCES dgCandProducer.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::DGCutparHolder O2Physics::AnalysisCCDB O2Physics::EventFilteringUtils
COMPONENT_NAME Analysis)

Expand Down Expand Up @@ -65,3 +65,8 @@ o2physics_add_dpl_workflow(upc-cand-producer-muon
SOURCES upcCandProducerMuon.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::UPCCutparHolder O2::GlobalTracking
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(upc-cand-producer-global-muon
SOURCES upcCandProducerGlobalMuon.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2Physics::UPCCutparHolder O2::GlobalTracking
COMPONENT_NAME Analysis)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using namespace o2::framework::expressions;

#define getHist(type, name) std::get<std::shared_ptr<type>>(histPointers[name])

struct DGCandProducer {
struct DgCandProducer {
// data tables
Produces<aod::UDCollisions> outputCollisions;
Produces<aod::UDCollisionsSels> outputCollisionsSels;
Expand Down Expand Up @@ -449,7 +449,7 @@ struct DGCandProducer {
{
processReco(std::string("reco"), collision, bcs, tracks, fwdtracks, fv0as, ft0s, fdds);
}
PROCESS_SWITCH(DGCandProducer, processData, "Produce UD table with data", true);
PROCESS_SWITCH(DgCandProducer, processData, "Produce UD table with data", true);

// process function for reconstructed MC data
void processMcData(MCCC const& collision, aod::McCollisions const& /*mccollisions*/, BCs const& bcs,
Expand All @@ -465,10 +465,10 @@ struct DGCandProducer {
processReco(std::string("MCreco"), collision, bcs, tracks, fwdtracks, fv0as, ft0s, fdds);
}
}
PROCESS_SWITCH(DGCandProducer, processMcData, "Produce UD tables with MC data", false);
PROCESS_SWITCH(DgCandProducer, processMcData, "Produce UD tables with MC data", false);
};

struct McDGCandProducer {
struct McDgCandProducer {
// MC tables
Produces<aod::UDMcCollisions> outputMcCollisions;
Produces<aod::UDMcParticles> outputMcParticles;
Expand Down Expand Up @@ -886,21 +886,21 @@ struct McDGCandProducer {
}
}
}
PROCESS_SWITCH(McDGCandProducer, processMCTruth, "Produce MC tables", false);
PROCESS_SWITCH(McDgCandProducer, processMCTruth, "Produce MC tables", false);

void processDummy(aod::Collisions const& /*collisions*/)
{
// do nothing
LOGF(info, "Running dummy process function!");
}
PROCESS_SWITCH(McDGCandProducer, processDummy, "Dummy function", true);
PROCESS_SWITCH(McDgCandProducer, processDummy, "Dummy function", true);
};

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
WorkflowSpec workflow{
adaptAnalysisTask<DGCandProducer>(cfgc, TaskName{"dgcandproducer"}),
adaptAnalysisTask<McDGCandProducer>(cfgc, TaskName{"mcdgcandproducer"})};
adaptAnalysisTask<DgCandProducer>(cfgc),
adaptAnalysisTask<McDgCandProducer>(cfgc)};

return workflow;
}
Loading
Loading