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
782 changes: 782 additions & 0 deletions PWGEM/Dilepton/Core/DileptonProducer.h

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions PWGEM/Dilepton/Core/DileptonSV.h
Original file line number Diff line number Diff line change
Expand Up @@ -1108,15 +1108,15 @@ struct DileptonSV {
candidate.phi2 = t2.phi();
}

if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
if (!cut.IsSelectedPair(t1, t2)) {
return false;
}
} else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
if (!cut.IsSelectedPair(t1, t2)) {
return false;
}
}
// if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron) {
// if (!cut.IsSelectedPair(t1, t2)) {
// return false;
// }
// } else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
// if (!cut.IsSelectedPair(t1, t2)) {
// return false;
// }
// }

float weight = 1.f;
if constexpr (ev_id == 0) {
Expand Down
12 changes: 6 additions & 6 deletions PWGEM/Dilepton/Core/DileptonSVMC.h
Original file line number Diff line number Diff line change
Expand Up @@ -1573,9 +1573,9 @@ struct DileptonSVMC {
return false;
}

if (!cut.IsSelectedPair(t1, t2)) {
return false;
}
// if (!cut.IsSelectedPair(t1, t2)) {
// return false;
// }
} else if constexpr (pairtype == o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon) {
if (!cut.template IsSelectedTrack<false>(t1) || !cut.template IsSelectedTrack<false>(t2)) {
return false;
Expand Down Expand Up @@ -1617,9 +1617,9 @@ struct DileptonSVMC {
return false;
}

if (!cut.IsSelectedPair(t1, t2)) {
return false;
}
// if (!cut.IsSelectedPair(t1, t2)) {
// return false;
// }
}

float pt1 = 0.f, eta1 = 0.f, phi1 = 0.f, pt2 = 0.f, eta2 = 0.f, phi2 = 0.f;
Expand Down
10 changes: 10 additions & 0 deletions PWGEM/Dilepton/TableProducer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ o2physics_add_dpl_workflow(filter-eoi
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(dielectron-producer
SOURCES dielectronProducer.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2::DetectorsBase O2Physics::AnalysisCore O2Physics::PWGEMDileptonCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(dimuon-producer
SOURCES dimuonProducer.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2::DetectorsBase O2Physics::AnalysisCore O2Physics::PWGEMDileptonCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(qvector-dummy-otf
SOURCES qVectorDummyOTF.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
Expand Down
28 changes: 28 additions & 0 deletions PWGEM/Dilepton/TableProducer/dielectronProducer.cxx
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.
//
// ========================
//
// This code is for dielectron analyses.
// Please write to: daiki.sekihata@cern.ch

#include "PWGEM/Dilepton/Core/DileptonProducer.h"
#include "PWGEM/Dilepton/Utils/PairUtilities.h"

#include <Framework/AnalysisTask.h>
#include <Framework/runDataProcessing.h>

using namespace o2::framework;

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{adaptAnalysisTask<DileptonProducer<o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron, FilteredMyElectrons>>(cfgc, TaskName{"dielectron-producer"})};
}
28 changes: 28 additions & 0 deletions PWGEM/Dilepton/TableProducer/dimuonProducer.cxx
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.
//
// ========================
//
// This code is for dimuon analyses.
// Please write to: daiki.sekihata@cern.ch

#include "PWGEM/Dilepton/Core/DileptonProducer.h"
#include "PWGEM/Dilepton/Utils/PairUtilities.h"

#include <Framework/AnalysisTask.h>
#include <Framework/runDataProcessing.h>

using namespace o2::framework;

WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
{
return WorkflowSpec{adaptAnalysisTask<DileptonProducer<o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon, FilteredMyMuons>>(cfgc, TaskName{"dimuon-producer"})};
}
5 changes: 5 additions & 0 deletions PWGEM/Dilepton/Tasks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ o2physics_add_dpl_workflow(evaluate-acceptance
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(dilepton-polarization
SOURCES dileptonPolarization.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(check-mc-template
SOURCES checkMCTemplate.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore O2::GlobalTracking
Expand Down
Loading
Loading