-
Notifications
You must be signed in to change notification settings - Fork 499
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
468 lines (405 loc) · 20.9 KB
/
CMakeLists.txt
File metadata and controls
468 lines (405 loc) · 20.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
# All rights not expressly granted are reserved.
#
# This software is distributed under the terms of the GNU General Public
# License v3 (GPL Version 3), copied verbatim in the file "COPYING".
#
# In applying this license CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Organization
# or submit itself to any jurisdiction.
# setup files to be installed (only ROOT macros for the moment) NOT using GLOB,
# as we should be mindful of what we install. if we have lot of files here, it's
# probably because most of them should be elsewhere in the first place ...
install(FILES CheckDigits_mft.C
SetIncludePath.C
analyzeHits.C
duplicateHits.C
migrateSimFiles.C
analyzeDigitLabels.C
analyzeOriginHits.C
checkGeomOverlaps.C
build_geometry.C
checkTOFMatching.C
compareTopologyDistributions.C
initSimGeomAndField.C
loadExtDepLib.C
load_all_libs.C
o2sim.C
putCondition.C
readEMCHits.C
readITSDigits.C
rootlogon.C
runTPCRefit.C
run_CRUDataSkimming_its.C
run_calib_tof.C
run_clus_tof.C
run_clus_tpc.C
run_clus_emcal.C
run_collect_calib_tof.C
run_digi2raw_its.C
run_digi2raw_mft.C
run_digi2raw_tof.C
run_cmp2digit_tof.C
compareTOFDigits.C
compareTOFClusters.C
run_rawdecoding_its.C
run_rawdecoding_mft.C
CreateBCPattern.C
UploadDummyAlignment.C
UploadMatBudLUT.C
CreateCTPOrbitResetObject.C
CreateGRPECSObject.C
CreateGRPMagFieldObject.C
CreateGRPLHCIFObject.C
getTimeStamp.C
CreateSampleIRFrames.C
convert_onnx_to_root_serialized.C
DESTINATION share/macro/)
# FIXME: a lot of macros that are here should really be elsewhere. Those which
# depends on a single subsystem should be located within that subsystem
# directory instead of in this global location. and this global location should
# be reserved for macros that use more than one subsystem ?
# FIXME: move to subsystem dir
o2_add_test_root_macro(CheckDigits_mft.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTBase O2::ITSMFTSimulation
O2::MFTBase O2::MathUtils
O2::SimulationDataFormat
LABELS mft)
o2_add_test_root_macro(analyzeHits.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTSimulation
O2::TOFSimulation
O2::EMCALBase
O2::TRDSimulation
O2::FT0Simulation
O2::DataFormatsFV0
O2::HMPIDBase
O2::TPCSimulation
O2::PHOSBase
O2::FDDSimulation
O2::MCHSimulation
O2::MIDSimulation
O2::ZDCSimulation
O2::DataFormatsCPV)
o2_add_test_root_macro(duplicateHits.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTSimulation
O2::TOFSimulation
O2::EMCALBase
O2::TRDSimulation
O2::FT0Simulation
O2::DataFormatsFV0
O2::DataFormatsHMP
O2::TPCSimulation
O2::PHOSBase
O2::FDDSimulation
O2::MCHSimulation
O2::MIDSimulation
O2::ZDCSimulation
O2::DataFormatsCPV COMPILE_ONLY)
o2_add_test_root_macro(migrateSimFiles.C
PUBLIC_LINK_LIBRARIES O2::DetectorsCommonDataFormats)
o2_add_test_root_macro(analyzeOriginHits.C
PUBLIC_LINK_LIBRARIES O2::SimulationDataFormat
O2::DetectorsCommonDataFormats)
if(ENABLE_UPGRADES)
set(upgradeTargets
O2::Alice3DetectorsPassive
O2::ITS3Simulation
O2::FT3Simulation
O2::FCTSimulation
O2::IOTOFSimulation
O2::RICHSimulation
O2::ECalSimulation
O2::MI3Simulation)
endif()
o2_add_test_root_macro(build_geometry.C
PUBLIC_LINK_LIBRARIES O2::SimConfig
O2::DetectorsPassive
O2::Field
O2::MFTSimulation
O2::MCHSimulation
O2::MIDSimulation
O2::EMCALSimulation
O2::TOFSimulation
O2::TRDSimulation
O2::FT0Simulation
O2::FV0Simulation
O2::FDDSimulation
O2::HMPIDSimulation
O2::PHOSSimulation
O2::CPVSimulation
O2::ZDCSimulation
O2::FOCALSimulation
${upgradeTargets})
o2_add_test_root_macro(checkTOFMatching.C
PUBLIC_LINK_LIBRARIES O2::GlobalTracking
O2::ReconstructionDataFormats
O2::SimulationDataFormat
O2::DataFormatsTOF)
o2_add_test_root_macro(convert_onnx_to_root_serialized.C
PUBLIC_LINK_LIBRARIES O2::GlobalTracking)
# FIXME: move to subsystem dir
o2_add_test_root_macro(compareTopologyDistributions.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsITSMFT
LABELS its)
o2_add_test_root_macro(initSimGeomAndField.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsParameters O2::Field O2::DetectorsBase)
o2_add_test_root_macro(analyzeDigitLabels.C
PUBLIC_LINK_LIBRARIES O2::SimulationDataFormat
O2::ITSMFTSimulation
O2::TOFSimulation
O2::EMCALBase
O2::TRDSimulation
O2::FV0Simulation
O2::FT0Simulation
O2::DataFormatsFV0
O2::HMPIDBase
O2::TPCSimulation
O2::PHOSBase
O2::PHOSSimulation
O2::FDDSimulation
O2::MCHSimulation
O2::MIDSimulation
O2::ZDCSimulation
O2::CPVBase
O2::CPVSimulation
O2::ZDCSimulation)
if(Geant4_FOUND AND BUILD_SIMULATION)
o2_add_test_root_macro(o2sim.C
PUBLIC_LINK_LIBRARIES O2::Generators
O2::DetectorsPassive
O2::Field
O2::MFTSimulation
O2::MCHSimulation
O2::MIDSimulation
O2::EMCALSimulation
O2::TOFSimulation
O2::TRDSimulation
O2::FT0Simulation
O2::FV0Simulation
O2::FDDSimulation
O2::HMPIDSimulation
O2::PHOSSimulation
O2::CPVSimulation
O2::ZDCSimulation
O2::CommonTypes
O2::SimSetup
O2::Steer)
endif()
# FIXME: move to subsystem dir + add includes if one wants to compile it...
# o2_add_test_root_macro( putCondition.C)
o2_add_test_root_macro(checkGeomOverlaps.C)
# FIXME: move to subsystem dir
o2_add_test_root_macro(readEMCHits.C
PUBLIC_LINK_LIBRARIES O2::SimulationDataFormat
O2::EMCALBase
LABELS emcal)
# FIXME: move to subsystem dir
o2_add_test_root_macro(readITSDigits.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsITSMFT
O2::ITSMFTBase
O2::SimulationDataFormat
LABELS its)
# FIXME: move to subsystem dir
o2_add_test_root_macro(runTPCRefit.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsTPC
O2::ReconstructionDataFormats
O2::SimulationDataFormat
O2::TPCReconstruction
LABELS tpc COMPILE_ONLY)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_CRUDataSkimming_its.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTReconstruction
O2::DataFormatsITSMFT
O2::ITSMFTBase
O2::ITSMFTReconstruction
LABELS its)
# FIXME: move to subsystem dir ?
o2_add_test_root_macro(run_calib_tof.C
PUBLIC_LINK_LIBRARIES O2::Field O2::DataFormatsParameters
O2::DetectorsBase
O2::GlobalTracking)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_clus_tof.C
PUBLIC_LINK_LIBRARIES O2::TOFReconstruction O2::Framework O2::TOFBase
O2::SimulationDataFormat O2::TOFCalibration O2::DataFormatsTOF
LABELS tof)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_clus_tpc.C
PUBLIC_LINK_LIBRARIES O2::TPCReconstruction
LABELS tpc)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_clus_emcal.C
PUBLIC_LINK_LIBRARIES O2::EMCALReconstruction
LABELS emcal)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_collect_calib_tof.C
PUBLIC_LINK_LIBRARIES O2::GlobalTracking)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_digi2raw_its.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTReconstruction
O2::DataFormatsITSMFT
O2::ITSMFTBase
O2::ITSMFTReconstruction
LABELS its)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_digi2raw_mft.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTReconstruction
O2::DataFormatsITSMFT
O2::ITSMFTBase
O2::ITSMFTReconstruction
LABELS mft)
o2_add_test_root_macro(run_digi2raw_tof.C
PUBLIC_LINK_LIBRARIES O2::TOFSimulation
O2::TOFReconstruction
LABELS tof)
o2_add_test_root_macro(run_cmp2digit_tof.C
PUBLIC_LINK_LIBRARIES O2::TOFBase
O2::TOFReconstruction
LABELS tof)
o2_add_test_root_macro(compareTOFDigits.C
PUBLIC_LINK_LIBRARIES O2::TOFBase
LABELS tof)
o2_add_test_root_macro(compareTOFClusters.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsTOF
LABELS tof)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_rawdecoding_its.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTReconstruction
O2::DataFormatsITSMFT
O2::CommonDataFormat
LABELS its)
# FIXME: move to subsystem dir
o2_add_test_root_macro(run_rawdecoding_mft.C
PUBLIC_LINK_LIBRARIES O2::ITSMFTReconstruction
O2::DataFormatsITSMFT
O2::CommonDataFormat
LABELS mft)
o2_add_test_root_macro(CreateBCPattern.C
PUBLIC_LINK_LIBRARIES O2::CommonDataFormat)
o2_add_test_root_macro(UploadDummyAlignment.C
PUBLIC_LINK_LIBRARIES O2::CCDB
O2::DetectorsCommonDataFormats
O2::CommonDataFormat)
o2_add_test_root_macro(CreateCTPOrbitResetObject.C
PUBLIC_LINK_LIBRARIES O2::CCDB)
# FIXME: move to subsystem dir + check compilation o2_add_test_root_macro(
# run_rec_ca.C PUBLIC_LINK_LIBRARIES O2::DetectorsCommonDataFormats
# O2::DataFormatsITSMFT O2::DataFormatsParameters O2::DetectorsBase O2::Field
# O2::ITSBase O2::ITStracking O2::MathUtils O2::SimulationDataFormat)
o2_add_test_root_macro(CreateGRPECSObject.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsParameters
O2::DetectorsCommonDataFormats
O2::CCDB)
o2_add_test_root_macro(CreateGRPMagFieldObject.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsParameters
O2::CommonTypes
O2::CCDB)
o2_add_test_root_macro(CreateGRPLHCIFObject.C
PUBLIC_LINK_LIBRARIES O2::DataFormatsParameters
O2::CommonTypes
O2::CommonDataFormat
O2::CCDB)
o2_add_test_root_macro(UploadMatBudLUT.C
PUBLIC_LINK_LIBRARIES O2::DetectorsCommonDataFormats
O2::CCDB
O2::DataFormatsParameters
O2::DetectorsBase
O2::CommonUtils)
o2_add_test_root_macro(getTimeStamp.C
PUBLIC_LINK_LIBRARIES O2::CommonConstants
O2::CCDB
O2::CommonUtils)
#
# NOTE: commented out until unit testing reenabled FIXME : re-enable or delete ?
#
# add_test_wrap(run_sim_tpc_TGeant3 ${CMAKE_BINARY_DIR}/macro/run_sim_tpc.sh 10
# \TGeant3\) Set_Tests_Properties(run_sim_tpc_TGeant3 PROPERTIES TIMEOUT 30)
# Set_Tests_Properties(run_sim_tpc_TGeant3 PROPERTIES PASS_REGULAR_EXPRESSION
# Macro finished succesfully)
# add_test_wrap(run_sim_tpc_TGeant4 ${CMAKE_BINARY_DIR}/macro/run_sim_tpc.sh 10
# \TGeant4\) Set_Tests_Properties(run_sim_tpc_TGeant4 PROPERTIES DEPENDS
# run_sim_tpc_TGeant3) Set_Tests_Properties(run_sim_tpc_TGeant4 PROPERTIES
# TIMEOUT 30) Set_Tests_Properties(run_sim_tpc_TGeant4 PROPERTIES
# PASS_REGULAR_EXPRESSION Macro finished succesfully)
# GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/run_clusterer.C)
# add_test_wrap(run_clusterer_TGeant3 ${CMAKE_BINARY_DIR}/macro/run_clusterer.sh
# 10 \TGeant3\) Set_Tests_Properties(run_clusterer_TGeant3 PROPERTIES DEPENDS
# run_digi_tpc_TGeant3) Set_Tests_Properties(run_clusterer_TGeant3 PROPERTIES
# TIMEOUT 30) Set_Tests_Properties(run_clusterer_TGeant3 PROPERTIES
# PASS_REGULAR_EXPRESSION Macro finished succesfully)
# add_test_wrap(comp_clusterer_TGeant3
# ${CMAKE_BINARY_DIR}/macro/compare_cluster.sh 10 \TGeant3\)
# Set_Tests_Properties(comp_clusterer_TGeant3 PROPERTIES DEPENDS
# run_clusterer_TGeant3) Set_Tests_Properties(comp_clusterer_TGeant3 PROPERTIES
# TIMEOUT 30) Set_Tests_Properties(comp_clusterer_TGeant3 PROPERTIES
# PASS_REGULAR_EXPRESSION Macro finished succesfully)
# add_test_wrap(run_clusterer_TGeant4 ${CMAKE_BINARY_DIR}/macro/run_clusterer.sh
# 10 \TGeant4\) Set_Tests_Properties(run_clusterer_TGeant4 PROPERTIES DEPENDS
# run_digi_tpc_TGeant4) Set_Tests_Properties(run_clusterer_TGeant4 PROPERTIES
# TIMEOUT 30) Set_Tests_Properties(run_clusterer_TGeant4 PROPERTIES
# PASS_REGULAR_EXPRESSION Macro finished succesfully)
# GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/test_GBTFrame.C)
# GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/test_fixedPoint.C)
# GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/compare_cluster.C)
# add_test_wrap(comp_clusterer_TGeant3
# ${CMAKE_BINARY_DIR}/macro/compare_cluster.sh 10 \TGeant3\)
# Set_Tests_Properties(comp_clusterer_TGeant3 PROPERTIES DEPENDS
# run_clusterer_TGeant3) Set_Tests_Properties(comp_clusterer_TGeant3 PROPERTIES
# TIMEOUT 30) Set_Tests_Properties(comp_clusterer_TGeant3 PROPERTIES
# PASS_REGULAR_EXPRESSION Macro finished succesfully)
# add_test_wrap(test_GBTFrame ${CMAKE_BINARY_DIR}/macro/test_GBTFrame.sh)
# Set_Tests_Properties(test_GBTFrame PROPERTIES TIMEOUT 30)
# Set_Tests_Properties(test_GBTFrame PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully)
# GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/load_all_libs.C)
# #ITS tests with G3 configure_file(${CMAKE_SOURCE_DIR}/macro/run_sim_its.sh
# ${CMAKE_BINARY_DIR}/macro/run_sim_its.sh)
# configure_file(${CMAKE_SOURCE_DIR}/macro/run_sim_its.C
# ${CMAKE_BINARY_DIR}/macro/run_sim_its.C)
# configure_file(${CMAKE_SOURCE_DIR}/macro/SetIncludePath.C
# ${CMAKE_BINARY_DIR}/macro/SetIncludePath.C)
# add_test_wrap(NAME run_sim_its_G3 COMMAND
# ${CMAKE_BINARY_DIR}/macro/run_sim_its.sh 10 TGeant3)
# set_tests_properties(run_sim_its_G3 PROPERTIES TIMEOUT 30)
# set_tests_properties(run_sim_its_G3 PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully)
# add_test_wrap(NAME run_digi_its_G3 COMMAND
# ${CMAKE_BINARY_DIR}/macro/run_digi_its.sh 10 TGeant3)
# set_tests_properties(run_digi_its_G3 PROPERTIES TIMEOUT 30)
# set_tests_properties(run_digi_its_G3 PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully) set_tests_properties(run_digi_its_G3 PROPERTIES DEPENDS
# run_sim_its_G3)
# configure_file(${CMAKE_SOURCE_DIR}/macro/run_clus_its.sh
# ${CMAKE_BINARY_DIR}/macro/run_clus_its.sh)
# configure_file(${CMAKE_SOURCE_DIR}/macro/run_clus_its.C
# ${CMAKE_BINARY_DIR}/macro/run_clus_its.C)
# add_test_wrap(NAME run_clus_its_G3 COMMAND
# ${CMAKE_BINARY_DIR}/macro/run_clus_its.sh 10 TGeant3)
# set_tests_properties(run_clus_its_G3 PROPERTIES TIMEOUT 30)
# set_tests_properties(run_clus_its_G3 PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully) set_tests_properties(run_clus_its_G3 PROPERTIES DEPENDS
# run_digi_its_G3)
# #ITS tests with G4
# add_test_wrap(NAME run_sim_its_G4 COMMAND
# ${CMAKE_BINARY_DIR}/macro/run_sim_its.sh 10 TGeant4)
# set_tests_properties(run_sim_its_G4 PROPERTIES TIMEOUT 30)
# set_tests_properties(run_sim_its_G4 PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully)
# add_test_wrap(NAME run_digi_its_G4 COMMAND
# ${CMAKE_BINARY_DIR}/macro/run_digi_its.sh 10 TGeant4)
# set_tests_properties(run_digi_its_G4 PROPERTIES TIMEOUT 30)
# set_tests_properties(run_digi_its_G4 PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully) set_tests_properties(run_digi_its_G4 PROPERTIES DEPENDS
# run_sim_its_G4)
# add_test_wrap(NAME run_clus_its_G4 COMMAND
# ${CMAKE_BINARY_DIR}/macro/run_clus_its.sh 10 TGeant4)
# set_tests_properties(run_clus_its_G4 PROPERTIES TIMEOUT 30)
# set_tests_properties(run_clus_its_G4 PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully) set_tests_properties(run_clus_its_G4 PROPERTIES DEPENDS
# run_digi_its_G4)
# GENERATE_ROOT_TEST_SCRIPT(${CMAKE_SOURCE_DIR}/macro/load_all_libs.C)
# add_test_wrap(load_all_libs ${CMAKE_BINARY_DIR}/macro/load_all_libs.sh)
# Set_Tests_Properties(load_all_libs PROPERTIES TIMEOUT 30)
# Set_Tests_Properties(load_all_libs PROPERTIES PASS_REGULAR_EXPRESSION Macro
# finished succesfully.)