Skip to content

Commit 66aede8

Browse files
authored
[PWGEM] PM: Change conversion tagging task to produce derived data (#17195)
1 parent fc349d6 commit 66aede8

2 files changed

Lines changed: 118 additions & 91 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
/// \file ConversionMl.h
13+
/// \brief This header provides the table definitions to store cluster pairs to analyze and potentially tag late conversions
14+
/// \author Marvin Hemmer (marvin.hemmer@cern.ch) - Goethe University Frankfurt
15+
16+
#ifndef PWGEM_PHOTONMESON_DATAMODEL_CONVERSIONML_H_
17+
#define PWGEM_PHOTONMESON_DATAMODEL_CONVERSIONML_H_
18+
19+
#include <Framework/AnalysisDataModel.h>
20+
21+
#include <cstdint>
22+
23+
namespace o2::aod
24+
{
25+
26+
namespace convtag
27+
{
28+
DECLARE_SOA_COLUMN(PMEvent, pmevent, int); //! index column to the pmevent
29+
DECLARE_SOA_COLUMN(Minv, minv, float); //! invariant mass of the pair
30+
DECLARE_SOA_COLUMN(HarmonicET, harmonicET, float); //! ET1 * ET2 / (ET1 + ET2) in GeV
31+
DECLARE_SOA_COLUMN(DeltaEta, deltaEta, float); //! difference in eta of the two clusters
32+
DECLARE_SOA_COLUMN(DeltaPhi, deltaPhi, float); //! difference in phi of the two clusters in rad
33+
DECLARE_SOA_COLUMN(Phiv, phiv, float); //! angle between plane spanned by the two clusters and the plane between the B-field direction the their combined momentum
34+
DECLARE_SOA_COLUMN(E1, e1, float); //! energy of first cluster in GeV
35+
DECLARE_SOA_COLUMN(E2, e2, float); //! energy of second cluster in GeV
36+
DECLARE_SOA_COLUMN(M021, m021, float); //! M02 of first cluster
37+
DECLARE_SOA_COLUMN(M022, m022, float); //! M02 of second cluster
38+
DECLARE_SOA_COLUMN(Time1, time1, float); //! time of first cluster in ns
39+
DECLARE_SOA_COLUMN(Time2, time2, float); //! time of second cluster in ns
40+
DECLARE_SOA_COLUMN(NCells1, nCells1, uint8_t); //! NCells of first cluster
41+
DECLARE_SOA_COLUMN(NCells2, nCells2, uint8_t); //! NCells of second cluster
42+
DECLARE_SOA_COLUMN(TruthLabel, truthLabel, int8_t); //! truth label for ML training (0 == conversion, 1 == from Pi0, 2 == background)
43+
DECLARE_SOA_COLUMN(CentOrMult, centOrMult, float); //! centrality or multiplicity value of the collision
44+
} // namespace convtag
45+
DECLARE_SOA_TABLE(ConvTagCandidates, "AOD", "CONVTAGCAND",
46+
convtag::PMEvent,
47+
convtag::Minv, convtag::HarmonicET, convtag::DeltaEta, convtag::DeltaPhi, convtag::Phiv,
48+
convtag::E1, convtag::E2, convtag::M021, convtag::M022,
49+
convtag::Time1, convtag::Time2, convtag::NCells1, convtag::NCells2,
50+
convtag::TruthLabel, convtag::CentOrMult);
51+
} // namespace o2::aod
52+
53+
#endif // PWGEM_PHOTONMESON_DATAMODEL_CONVERSIONML_H_

0 commit comments

Comments
 (0)