Skip to content
Closed
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
106 changes: 10 additions & 96 deletions EventFiltering/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in EventFiltering/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Use kebab-case for names of workflows and match the name of the workflow file.
# See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
# All rights not expressly granted are reserved.
#
Expand All @@ -9,109 +9,23 @@
# 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

Check failure on line 13 in EventFiltering/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name central-event-filter-task does not match its file name cefpTask.cxx. (Matches centralEventFilterTask.cxx.)
SOURCES cefpTask.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DataFormatsCTP
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(selected-bc-range-task

Check failure on line 18 in EventFiltering/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name selected-bc-range-task does not match its file name selectBCRange.cxx. (Matches selectedBcRangeTask.cxx.)
SOURCES selectBCRange.cxx
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)
20 changes: 20 additions & 0 deletions EventFiltering/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// or submit itself to any jurisdiction.
//

#include "Zorro.h"
#include "EventFiltering/Zorro.h"

#include "EventFiltering/ZorroHelper.h"

Expand Down Expand Up @@ -232,8 +232,8 @@
mLastBCglobalId = bcGlobalId;
for (size_t i = mLastSelectedIdx; i < mBCranges.size(); i++) {
if (!mBCranges[i].isOutside(bcFrame)) {
for (int iMask{0}; iMask < 2; ++iMask) {

Check failure on line 235 in EventFiltering/Core/Zorro.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
for (int iTOI{0}; iTOI < 64; ++iTOI) {

Check failure on line 236 in EventFiltering/Core/Zorro.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[magic-number]

Avoid magic numbers in expressions. Assign the value to a clearly named variable or constant.
if (mZorroHelpers->at(i).selMask[iMask] & (1ull << iTOI)) {
mLastResult.set(iMask * 64 + iTOI, 1);
if (!mAccountedBCranges[i]) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <TCollection.h>
#include <TObject.h>
Expand All @@ -33,7 +33,7 @@
return n;
}

for (auto* obj : *list) {

Check failure on line 36 in EventFiltering/Core/ZorroSummary.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[const-ref-in-for-loop]

Use constant references for non-modified iterators in range-based for loops.
auto* entry = dynamic_cast<ZorroSummary*>(obj);
if (!entry || entry->getTOInames() != mTOInames) {
continue;
Expand Down
15 changes: 15 additions & 0 deletions EventFiltering/PWGCF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check failure on line 1 in EventFiltering/PWGCF/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Use kebab-case for names of workflows and match the name of the workflow file.
# 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

Check failure on line 12 in EventFiltering/PWGCF/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name cf-filter does not match its file name CFFilterAll.cxx. (Matches cfFilter.cxx.)
SOURCES CFFilterAll.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore KFParticle::KFParticle O2::ReconstructionDataFormats O2::DetectorsBase
COMPONENT_NAME Analysis)
25 changes: 25 additions & 0 deletions EventFiltering/PWGEM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 12 in EventFiltering/PWGEM/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name em-photon-filter does not match its file name EMPhotonFilter.cxx. (Matches emPhotonFilter.cxx.)
SOURCES EMPhotonFilter.cxx
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DetectorsBase O2Physics::PWGEMPhotonMesonCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(em-photon-filter-qc

Check failure on line 17 in EventFiltering/PWGEM/CMakeLists.txt

View workflow job for this annotation

GitHub Actions / O2 linter

[name/o2-workflow]

Workflow name em-photon-filter-qc does not match its file name EMPhotonFilterQC.cxx. (Matches emPhotonFilterQc.cxx.)
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)
28 changes: 28 additions & 0 deletions EventFiltering/PWGHF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
25 changes: 25 additions & 0 deletions EventFiltering/PWGJE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
30 changes: 30 additions & 0 deletions EventFiltering/PWGLF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
15 changes: 15 additions & 0 deletions EventFiltering/PWGMM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
20 changes: 20 additions & 0 deletions EventFiltering/PWGUD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
4 changes: 2 additions & 2 deletions EventFiltering/Zorro.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <CommonDataFormat/IRFrame.h>
#include <Framework/HistogramRegistry.h>
Expand Down
Loading