Skip to content

Commit ced631e

Browse files
committed
PWGEM/Dilepton: add a task for polarization
1 parent 814cc6d commit ced631e

File tree

7 files changed

+1726
-1
lines changed

7 files changed

+1726
-1
lines changed

PWGEM/Dilepton/Core/DileptonProducer.h

Lines changed: 778 additions & 0 deletions
Large diffs are not rendered by default.

PWGEM/Dilepton/DataModel/dileptonTables.h

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ DECLARE_SOA_TABLE(EMEoIs, "AOD", "EMEOI", //! joinable to aod::Collisions in cre
293293
using EMEoI = EMEoIs::iterator;
294294

295295
DECLARE_SOA_TABLE(EMEventNormInfos, "AOD", "EMEVENTNORMINFO", //! event information for normalization
296-
o2::soa::Index<>, evsel::Alias, evsel::Selection, evsel::Rct, emevent::PosZint16, cent::CentFT0C, emevent::PosZ<emevent::PosZint16>, emevent::Sel8<evsel::Selection>);
296+
o2::soa::Index<>, evsel::Alias, evsel::Selection, evsel::Rct, emevent::PosZint16, cent::CentFT0C, emevent::PosZ<emevent::PosZint16>, emevent::Sel8<evsel::Selection>, o2::soa::Marker<1>);
297297
using EMEventNormInfo = EMEventNormInfos::iterator;
298298

299299
namespace emmcevent
@@ -937,6 +937,44 @@ DECLARE_SOA_TABLE(EMPrimaryTrackEMEventIdsTMP, "AOD", "PRMTRKEVIDTMP", track::Co
937937
// iterators
938938
using EMPrimaryTrackEMEventIdTMP = EMPrimaryTrackEMEventIdsTMP::iterator;
939939

940+
namespace emthinevent
941+
{
942+
DECLARE_SOA_COLUMN(EP2, ep2, float); //!
943+
} // namespace emthinevent
944+
DECLARE_SOA_TABLE_VERSIONED(EMThinEvents_000, "AOD", "EMTHINEVENT", 0, //! Thin event information table
945+
o2::soa::Index<>, bc::RunNumber, bc::GlobalBC, timestamp::Timestamp, collision::PosZ,
946+
evsel::NumTracksInTimeRange, evsel::SumAmpFT0CInTimeRange, cent::CentFT0C, emthinevent::EP2);
947+
using EMThinEvents = EMThinEvents_000;
948+
using EMThinEvent = EMThinEvents::iterator;
949+
950+
DECLARE_SOA_TABLE(EMThinEventNormInfos, "AOD", "EMTHINEVENTNORM", //! event information for normalization
951+
o2::soa::Index<>, evsel::Alias, evsel::Selection, evsel::Rct, collision::PosZ, cent::CentFT0C, emevent::Sel8<evsel::Selection>, o2::soa::Marker<2>);
952+
using EMThinEventNormInfo = EMThinEventNormInfos::iterator;
953+
954+
namespace emdilepton
955+
{
956+
DECLARE_SOA_INDEX_COLUMN(EMThinEvent, emthinevent); //!
957+
DECLARE_SOA_COLUMN(Pt1, pt1, float); //!
958+
DECLARE_SOA_COLUMN(Eta1, eta1, float); //!
959+
DECLARE_SOA_COLUMN(Phi1, phi1, float); //!
960+
DECLARE_SOA_COLUMN(Sign1, sign1, short); //!
961+
DECLARE_SOA_COLUMN(DCA1, dca1, float); //! DCA in sigma. Users should decide 3D or XY or Z
962+
DECLARE_SOA_COLUMN(Pt2, pt2, float); //!
963+
DECLARE_SOA_COLUMN(Eta2, eta2, float); //!
964+
DECLARE_SOA_COLUMN(Phi2, phi2, float); //!
965+
DECLARE_SOA_COLUMN(DCA2, dca2, float); //! DCA in sigma. Users should decide 3D or XY or Z
966+
DECLARE_SOA_COLUMN(Sign2, sign2, short); //!
967+
DECLARE_SOA_COLUMN(Weight, weight, float); //! possible pair weight
968+
} // namespace emdilepton
969+
970+
DECLARE_SOA_TABLE_VERSIONED(EMDileptons_000, "AOD", "EMDILEPTON", 0,
971+
o2::soa::Index<>, emdilepton::EMThinEventId,
972+
emdilepton::Pt1, emdilepton::Eta1, emdilepton::Phi1, emdilepton::Sign1, emdilepton::DCA1,
973+
emdilepton::Pt2, emdilepton::Eta2, emdilepton::Phi2, emdilepton::Sign2, emdilepton::DCA2,
974+
emdilepton::Weight);
975+
using EMDileptons = EMDileptons_000;
976+
using EMDilepton = EMDileptons::iterator;
977+
940978
// Dummy data for MC
941979
namespace emdummydata
942980
{

PWGEM/Dilepton/TableProducer/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,13 @@ o2physics_add_dpl_workflow(filter-eoi
6464
SOURCES filterEoI.cxx
6565
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
6666
COMPONENT_NAME Analysis)
67+
68+
o2physics_add_dpl_workflow(dielectron-producer
69+
SOURCES dielectronProducer.cxx
70+
PUBLIC_LINK_LIBRARIES O2::Framework O2::DetectorsBase O2Physics::AnalysisCore O2Physics::PWGEMDileptonCore
71+
COMPONENT_NAME Analysis)
72+
73+
o2physics_add_dpl_workflow(dimuon-producer
74+
SOURCES dimuonProducer.cxx
75+
PUBLIC_LINK_LIBRARIES O2::Framework O2::DetectorsBase O2Physics::AnalysisCore O2Physics::PWGEMDileptonCore
76+
COMPONENT_NAME Analysis)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright 2019-2020 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.
11+
//
12+
// ========================
13+
//
14+
// This code is for dielectron analyses.
15+
// Please write to: daiki.sekihata@cern.ch
16+
17+
#include "PWGEM/Dilepton/Core/DileptonProducer.h"
18+
19+
#include "Framework/ASoAHelpers.h"
20+
#include "Framework/AnalysisTask.h"
21+
#include "Framework/runDataProcessing.h"
22+
23+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
24+
{
25+
return WorkflowSpec{adaptAnalysisTask<DileptonProducer<o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDielectron, FilteredMyElectrons>>(cfgc, TaskName{"dielectron-producer"})};
26+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright 2019-2020 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.
11+
//
12+
// ========================
13+
//
14+
// This code is for dimuon analyses.
15+
// Please write to: daiki.sekihata@cern.ch
16+
17+
#include "PWGEM/Dilepton/Core/DileptonProducer.h"
18+
19+
#include "Framework/ASoAHelpers.h"
20+
#include "Framework/AnalysisTask.h"
21+
#include "Framework/runDataProcessing.h"
22+
23+
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
24+
{
25+
return WorkflowSpec{adaptAnalysisTask<DileptonProducer<o2::aod::pwgem::dilepton::utils::pairutil::DileptonPairType::kDimuon, FilteredMyMuons>>(cfgc, TaskName{"dimuon-producer"})};
26+
}

PWGEM/Dilepton/Tasks/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,8 @@ o2physics_add_dpl_workflow(evaluate-acceptance
175175
SOURCES evaluateAcceptance.cxx
176176
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
177177
COMPONENT_NAME Analysis)
178+
179+
o2physics_add_dpl_workflow(dilepton-polarization
180+
SOURCES dileptonPolarization.cxx
181+
PUBLIC_LINK_LIBRARIES O2::Framework O2Physics::AnalysisCore
182+
COMPONENT_NAME Analysis)

0 commit comments

Comments
 (0)