Skip to content

Commit 0ae8181

Browse files
committed
Use Precompiled headers for Jet Substructure tasks
1 parent 7f2439e commit 0ae8181

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

PWGJE/Tasks/CMakeLists.txt

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
1+
# Copyright 2019-2026 CERN and copyright holders of ALICE O2.
22
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
33
# All rights not expressly granted are reserved.
44
#
@@ -8,7 +8,23 @@
88
# In applying this license CERN does not waive the privileges and immunities
99
# granted to it by virtue of its status as an Intergovernmental Organization
1010
# or submit itself to any jurisdiction.
11+
add_library(JetSubstructureHFPCH OBJECT JetSubstructureHFPCH.cxx)
12+
target_link_libraries(JetSubstructureHFPCH
13+
PUBLIC O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore)
14+
target_precompile_headers(JetSubstructureHFPCH PRIVATE
15+
[["PWGJE/DataModel/Jet.h"]]
16+
[["PWGJE/DataModel/JetSubstructure.h"]]
17+
[["PWGJE/DataModel/JetSubtraction.h"]]
18+
[["PWGJE/Tasks/jetSubstructureHF.h"]]
19+
<Framework/ASoA.h>
20+
<Framework/AnalysisTask.h>
21+
<Framework/ConfigContext.h>
22+
<Framework/DataProcessorSpec.h>
23+
<Framework/runDataProcessing.h>
1124

25+
<vector>
26+
<memory>
27+
)
1228

1329
o2physics_add_dpl_workflow(emc-cellmonitor
1430
SOURCES emcCellMonitor.cxx
@@ -70,6 +86,7 @@ if(FastJet_FOUND)
7086
COMPONENT_NAME Analysis)
7187
o2physics_add_dpl_workflow(jet-substructure
7288
SOURCES jetSubstructure.cxx
89+
REUSE_FROM JetSubstructureHFPCH
7390
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
7491
COMPONENT_NAME Analysis)
7592
o2physics_add_dpl_workflow(jet-substructure-output
@@ -79,38 +96,47 @@ if(FastJet_FOUND)
7996
o2physics_add_dpl_workflow(jet-substructure-d0
8097
SOURCES jetSubstructureD0.cxx
8198
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
99+
REUSE_FROM JetSubstructureHFPCH
82100
COMPONENT_NAME Analysis)
83101
o2physics_add_dpl_workflow(jet-substructure-dplus
84102
SOURCES jetSubstructureDplus.cxx
85103
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
104+
REUSE_FROM JetSubstructureHFPCH
86105
COMPONENT_NAME Analysis)
87106
o2physics_add_dpl_workflow(jet-substructure-ds
88107
SOURCES jetSubstructureDs.cxx
89108
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
109+
REUSE_FROM JetSubstructureHFPCH
90110
COMPONENT_NAME Analysis)
91111
o2physics_add_dpl_workflow(jet-substructure-dstar
92112
SOURCES jetSubstructureDstar.cxx
93113
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
114+
REUSE_FROM JetSubstructureHFPCH
94115
COMPONENT_NAME Analysis)
95116
o2physics_add_dpl_workflow(jet-substructure-lc
96117
SOURCES jetSubstructureLc.cxx
97118
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
119+
REUSE_FROM JetSubstructureHFPCH
98120
COMPONENT_NAME Analysis)
99121
o2physics_add_dpl_workflow(jet-substructure-b0
100122
SOURCES jetSubstructureB0.cxx
101123
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
124+
REUSE_FROM JetSubstructureHFPCH
102125
COMPONENT_NAME Analysis)
103126
o2physics_add_dpl_workflow(jet-substructure-bplus
104127
SOURCES jetSubstructureBplus.cxx
105128
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
129+
REUSE_FROM JetSubstructureHFPCH
106130
COMPONENT_NAME Analysis)
107131
o2physics_add_dpl_workflow(jet-substructure-xictoxipipi
108132
SOURCES jetSubstructureXicToXiPiPi.cxx
109133
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
134+
REUSE_FROM JetSubstructureHFPCH
110135
COMPONENT_NAME Analysis)
111136
o2physics_add_dpl_workflow(jet-substructure-dielectron
112137
SOURCES jetSubstructureDielectron.cxx
113138
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
139+
REUSE_FROM JetSubstructureHFPCH
114140
COMPONENT_NAME Analysis)
115141
o2physics_add_dpl_workflow(jet-substructure-d0-output
116142
SOURCES jetSubstructureD0Output.cxx
@@ -359,4 +385,4 @@ if(FastJet_FOUND)
359385
SOURCES substructureDebug.cxx
360386
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::PWGJECore O2Physics::AnalysisCore
361387
COMPONENT_NAME Analysis)
362-
endif()
388+
endif()
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2+
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3+
// All rights not expressly granted are reserved.
4+
//
5+
// This software is distributed under the terms of the GNU General Public
6+
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7+
//
8+
// In applying this license CERN does not waive the privileges and immunities
9+
// granted to it by virtue of its status as an Intergovernmental Organization
10+
// or submit itself to any jurisdiction.

0 commit comments

Comments
 (0)