diff --git a/EventFiltering/CMakeLists.txt b/EventFiltering/CMakeLists.txt index 8c65d4f8f1a..96979b864b7 100644 --- a/EventFiltering/CMakeLists.txt +++ b/EventFiltering/CMakeLists.txt @@ -9,6 +9,7 @@ # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. +# Core event filtering workflows o2physics_add_dpl_workflow(central-event-filter-task SOURCES cefpTask.cxx PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DataFormatsCTP @@ -19,99 +20,12 @@ o2physics_add_dpl_workflow(selected-bc-range-task PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore COMPONENT_NAME Analysis) -o2physics_add_dpl_workflow(nuclei-filter - SOURCES PWGLF/nucleiFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::TOFBase - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(diffraction-filter - SOURCES PWGUD/diffractionFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::DGCutparHolder - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(diffraction-bcfilter - SOURCES PWGUD/diffractionBCFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::DGCutparHolder - COMPONENT_NAME Analysis) - -o2physics_add_header_only_library(HFFilterHelpers - HEADERS PWGHF/HFFilterHelpers.h) - -o2physics_add_dpl_workflow(hf-filter - SOURCES PWGHF/HFFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::HFFilterHelpers O2::DetectorsBase - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(hf-filter-charm-hadron-signals - SOURCES PWGHF/HFFilterCharmHadronSignals.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::HFFilterHelpers - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(hf-filter-prepare-ml-samples - SOURCES PWGHF/HFFilterPrepareMLSamples.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::HFFilterHelpers O2::DetectorsBase - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(cf-filter - SOURCES PWGCF/CFFilterAll.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore KFParticle::KFParticle O2::ReconstructionDataFormats O2::DetectorsBase - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(je-filter - SOURCES PWGJE/jetFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(je-hf-filter - SOURCES PWGJE/jetHFFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(fje-filter - SOURCES PWGJE/fullJetFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib Boost::system - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(lf-strangeness-filter - SOURCES PWGLF/strangenessFilter.cxx - PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore KFParticle::KFParticle O2::ReconstructionDataFormats O2::DetectorsBase - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(mult-filter - SOURCES PWGMM/multFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(em-photon-filter - SOURCES PWGEM/EMPhotonFilter.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase O2Physics::PWGEMPhotonMesonCore - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(em-photon-filter-qc - SOURCES PWGEM/EMPhotonFilterQC.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase O2Physics::PWGEMPhotonMesonCore - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(heavy-neutral-meson-filter - SOURCES PWGEM/HeavyNeutralMesonFilter.cxx - PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore - COMPONENT_NAME Analysis) - -o2physics_add_dpl_workflow(lf-f1proton-filter - SOURCES PWGLF/filterf1proton.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore KFParticle::KFParticle O2::DetectorsBase - COMPONENT_NAME Analysis) - - o2physics_add_dpl_workflow(lf-doublephi-filter - SOURCES PWGLF/filterdoublephi.cxx - PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase - COMPONENT_NAME Analysis) - -o2physics_add_library(EventFilteringUtils - SOURCES Zorro.cxx ZorroSummary.cxx - INSTALL_HEADERS ZorroHelper.h ZorroSummary.h - PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore Arrow::arrow_shared) - -o2physics_target_root_dictionary(EventFilteringUtils - HEADERS ZorroHelper.h ZorroSummary.h - LINKDEF EventFilteringUtilsLinkDef.h) +add_subdirectory(Core) +# Add PWG-specific subdirectories +add_subdirectory(PWGCF) +add_subdirectory(PWGEM) +add_subdirectory(PWGHF) +add_subdirectory(PWGJE) +add_subdirectory(PWGLF) +add_subdirectory(PWGMM) +add_subdirectory(PWGUD) diff --git a/EventFiltering/Core/CMakeLists.txt b/EventFiltering/Core/CMakeLists.txt new file mode 100644 index 00000000000..23bdf94b438 --- /dev/null +++ b/EventFiltering/Core/CMakeLists.txt @@ -0,0 +1,20 @@ +# 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. + +# Core event filtering utilities library +o2physics_add_library(EventFilteringUtils + SOURCES Zorro.cxx ZorroSummary.cxx + INSTALL_HEADERS ../ZorroHelper.h ../ZorroSummary.h + PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore Arrow::arrow_shared) + +o2physics_target_root_dictionary(EventFilteringUtils + HEADERS ../ZorroHelper.h ../ZorroSummary.h + LINKDEF EventFilteringUtilsLinkDef.h) diff --git a/EventFiltering/EventFilteringUtilsLinkDef.h b/EventFiltering/Core/EventFilteringUtilsLinkDef.h similarity index 100% rename from EventFiltering/EventFilteringUtilsLinkDef.h rename to EventFiltering/Core/EventFilteringUtilsLinkDef.h diff --git a/EventFiltering/Zorro.cxx b/EventFiltering/Core/Zorro.cxx similarity index 99% rename from EventFiltering/Zorro.cxx rename to EventFiltering/Core/Zorro.cxx index f10fbd66552..5ada6779cd9 100644 --- a/EventFiltering/Zorro.cxx +++ b/EventFiltering/Core/Zorro.cxx @@ -10,7 +10,7 @@ // or submit itself to any jurisdiction. // -#include "Zorro.h" +#include "EventFiltering/Zorro.h" #include "EventFiltering/ZorroHelper.h" diff --git a/EventFiltering/ZorroSummary.cxx b/EventFiltering/Core/ZorroSummary.cxx similarity index 98% rename from EventFiltering/ZorroSummary.cxx rename to EventFiltering/Core/ZorroSummary.cxx index 0a1012c3edc..1c03df0d569 100644 --- a/EventFiltering/ZorroSummary.cxx +++ b/EventFiltering/Core/ZorroSummary.cxx @@ -9,7 +9,7 @@ // granted to it by virtue of its status as an Intergovernmental Organization // or submit itself to any jurisdiction. -#include "ZorroSummary.h" +#include "EventFiltering/ZorroSummary.h" #include #include diff --git a/EventFiltering/PWGCF/CMakeLists.txt b/EventFiltering/PWGCF/CMakeLists.txt new file mode 100644 index 00000000000..0ce1a69501b --- /dev/null +++ b/EventFiltering/PWGCF/CMakeLists.txt @@ -0,0 +1,15 @@ +# 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. + +o2physics_add_dpl_workflow(cf-filter + SOURCES CFFilterAll.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore KFParticle::KFParticle O2::ReconstructionDataFormats O2::DetectorsBase + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/PWGEM/CMakeLists.txt b/EventFiltering/PWGEM/CMakeLists.txt new file mode 100644 index 00000000000..91891a19c82 --- /dev/null +++ b/EventFiltering/PWGEM/CMakeLists.txt @@ -0,0 +1,25 @@ +# 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. + +o2physics_add_dpl_workflow(em-photon-filter + SOURCES EMPhotonFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase O2Physics::PWGEMPhotonMesonCore + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(em-photon-filter-qc + SOURCES EMPhotonFilterQC.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase O2Physics::PWGEMPhotonMesonCore + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(heavy-neutral-meson-filter + SOURCES HeavyNeutralMesonFilter.cxx + PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/PWGHF/CMakeLists.txt b/EventFiltering/PWGHF/CMakeLists.txt new file mode 100644 index 00000000000..f2a1d94747b --- /dev/null +++ b/EventFiltering/PWGHF/CMakeLists.txt @@ -0,0 +1,28 @@ +# 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. + +o2physics_add_header_only_library(HFFilterHelpers + HEADERS HFFilterHelpers.h) + +o2physics_add_dpl_workflow(hf-filter + SOURCES HFFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::HFFilterHelpers O2::DetectorsBase + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(hf-filter-charm-hadron-signals + SOURCES HFFilterCharmHadronSignals.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::HFFilterHelpers + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(hf-filter-prepare-ml-samples + SOURCES HFFilterPrepareMLSamples.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::HFFilterHelpers O2::DetectorsBase + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/PWGJE/CMakeLists.txt b/EventFiltering/PWGJE/CMakeLists.txt new file mode 100644 index 00000000000..f2ec25fe4b0 --- /dev/null +++ b/EventFiltering/PWGJE/CMakeLists.txt @@ -0,0 +1,25 @@ +# 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. + +o2physics_add_dpl_workflow(je-filter + SOURCES jetFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(je-hf-filter + SOURCES jetHFFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(fje-filter + SOURCES fullJetFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::PWGJECore FastJet::FastJet FastJet::Contrib Boost::system + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/PWGLF/CMakeLists.txt b/EventFiltering/PWGLF/CMakeLists.txt new file mode 100644 index 00000000000..114b25d9b73 --- /dev/null +++ b/EventFiltering/PWGLF/CMakeLists.txt @@ -0,0 +1,30 @@ +# 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. + +o2physics_add_dpl_workflow(nuclei-filter + SOURCES nucleiFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::TOFBase + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(lf-strangeness-filter + SOURCES strangenessFilter.cxx + PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore KFParticle::KFParticle O2::ReconstructionDataFormats O2::DetectorsBase + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(lf-f1proton-filter + SOURCES filterf1proton.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore KFParticle::KFParticle O2::DetectorsBase + COMPONENT_NAME Analysis) + + o2physics_add_dpl_workflow(lf-doublephi-filter + SOURCES filterdoublephi.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/PWGMM/CMakeLists.txt b/EventFiltering/PWGMM/CMakeLists.txt new file mode 100644 index 00000000000..f9a487cd224 --- /dev/null +++ b/EventFiltering/PWGMM/CMakeLists.txt @@ -0,0 +1,15 @@ +# 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. + +o2physics_add_dpl_workflow(mult-filter + SOURCES multFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/PWGUD/CMakeLists.txt b/EventFiltering/PWGUD/CMakeLists.txt new file mode 100644 index 00000000000..dbda264f1da --- /dev/null +++ b/EventFiltering/PWGUD/CMakeLists.txt @@ -0,0 +1,20 @@ +# 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. + +o2physics_add_dpl_workflow(diffraction-filter + SOURCES diffractionFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::DGCutparHolder + COMPONENT_NAME Analysis) + +o2physics_add_dpl_workflow(diffraction-bcfilter + SOURCES diffractionBCFilter.cxx + PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::DGCutparHolder + COMPONENT_NAME Analysis) \ No newline at end of file diff --git a/EventFiltering/Zorro.h b/EventFiltering/Zorro.h index f5cb580061a..a33715be49d 100644 --- a/EventFiltering/Zorro.h +++ b/EventFiltering/Zorro.h @@ -19,8 +19,8 @@ #ifndef EVENTFILTERING_ZORRO_H_ #define EVENTFILTERING_ZORRO_H_ -#include "ZorroHelper.h" -#include "ZorroSummary.h" +#include "EventFiltering/ZorroHelper.h" +#include "EventFiltering/ZorroSummary.h" #include #include