Skip to content

Commit 3718a3d

Browse files
authored
[PWGJE] Simulate hadron decay (#12615)
1 parent 367c32d commit 3718a3d

File tree

2 files changed

+296
-40
lines changed

2 files changed

+296
-40
lines changed

PWGJE/Tasks/CMakeLists.txt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ o2physics_add_dpl_workflow(emc-tmmonitor
3838
SOURCES emcTmMonitor.cxx
3939
PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore
4040
COMPONENT_NAME Analysis)
41-
o2physics_add_dpl_workflow(hadron-photon-correlation
42-
SOURCES hadronPhotonCorrelation.cxx
43-
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
44-
COMPONENT_NAME Analysis)
4541
o2physics_add_dpl_workflow(mc-generator-studies
4642
SOURCES mcGeneratorStudies.cxx
4743
PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore
@@ -331,3 +327,16 @@ if(FastJet_FOUND)
331327
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
332328
COMPONENT_NAME Analysis)
333329
endif()
330+
331+
if(pythia_FOUND)
332+
if(TARGET ROOT::EGPythia8)
333+
set_target_properties(ROOT::EGPythia8 PROPERTIES
334+
INTERFACE_LINK_LIBRARIES "ROOT::Core;ROOT::EG;ROOT::Graf;ROOT::Physics;${pythia_LIBRARY_SHARED}"
335+
)
336+
337+
o2physics_add_dpl_workflow(hadron-photon-correlation
338+
SOURCES hadronPhotonCorrelation.cxx
339+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore ROOT::EGPythia8
340+
COMPONENT_NAME Analysis)
341+
endif()
342+
endif()

0 commit comments

Comments
 (0)