Skip to content

Commit adc2ec0

Browse files
committed
Move Chic tables to ALICE3
1 parent 9343fd4 commit adc2ec0

2 files changed

Lines changed: 101 additions & 62 deletions

File tree

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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 CandidateReconstructionTables.h
13+
/// \brief Definitions of tables produced by candidate reconstruction workflows
14+
///
15+
/// \author Gian Michele Innocenti <gian.michele.innocenti@cern.ch>, CERN
16+
/// \author Vít Kučera <vit.kucera@cern.ch>, CERN
17+
18+
#ifndef PWGHF_ALICE3_DATAMODEL_CANDIDATERECONSTRUCTIONTABLES_H_
19+
#define PWGHF_ALICE3_DATAMODEL_CANDIDATERECONSTRUCTIONTABLES_H_
20+
21+
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
22+
#include "PWGHF/DataModel/TrackIndexSkimmingTables.h"
23+
#include "PWGHF/Utils/utilsPid.h"
24+
//
25+
#include "PWGLF/DataModel/LFStrangenessTables.h"
26+
27+
#include "Common/Core/RecoDecay.h"
28+
29+
#include <CommonConstants/PhysicsConstants.h>
30+
#include <Framework/ASoA.h>
31+
#include <Framework/AnalysisDataModel.h>
32+
33+
#include <array>
34+
#include <cstdint>
35+
36+
namespace o2::aod
37+
{
38+
// specific chic candidate properties
39+
namespace hf_cand_chic
40+
{
41+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfCand2Prong, "_0"); // Jpsi index
42+
DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, ECALs, "_1");
43+
DECLARE_SOA_COLUMN(JpsiToMuMuMass, jpsiToMuMuMass, float); // Jpsi mass
44+
} // namespace hf_cand_chic
45+
46+
// declare dedicated chi_c candidate table
47+
DECLARE_SOA_TABLE(HfCandChicBase, "AOD", "HFCANDCHICBASE",
48+
// general columns
49+
HFCAND_COLUMNS,
50+
// 2-prong specific columns
51+
hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0,
52+
hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1,
53+
hf_cand::ImpactParameter0, hf_cand::ImpactParameter1,
54+
hf_cand::ErrorImpactParameter0, hf_cand::ErrorImpactParameter1,
55+
hf_cand_chic::Prong0Id, hf_cand_chic::Prong1Id,
56+
hf_track_index::HFflag, hf_cand_chic::JpsiToMuMuMass,
57+
/* dynamic columns */
58+
hf_cand_2prong::M<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
59+
hf_cand_2prong::M2<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
60+
/* prong 2 */
61+
// hf_cand::PtProng1<hf_cand::PxProng1, hf_cand::PyProng1>,
62+
// hf_cand::Pt2Prong1<hf_cand::PxProng1, hf_cand::PyProng1>,
63+
// hf_cand::PVectorProng1<hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
64+
/* dynamic columns that use candidate momentum components */
65+
hf_cand::Pt<hf_cand_2prong::Px, hf_cand_2prong::Py>,
66+
hf_cand::Pt2<hf_cand_2prong::Px, hf_cand_2prong::Py>,
67+
hf_cand::P<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
68+
hf_cand::P2<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
69+
hf_cand::PVector<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
70+
hf_cand::Cpa<collision::PosX, collision::PosY, collision::PosZ, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
71+
hf_cand::CpaXY<collision::PosX, collision::PosY, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py>,
72+
hf_cand::Ct<collision::PosX, collision::PosY, collision::PosZ, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
73+
hf_cand::ImpactParameterXY<collision::PosX, collision::PosY, collision::PosZ, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
74+
hf_cand_2prong::MaxNormalisedDeltaIP<collision::PosX, collision::PosY, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ErrorDecayLengthXY, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand::ImpactParameter0, hf_cand::ErrorImpactParameter0, hf_cand::ImpactParameter1, hf_cand::ErrorImpactParameter1, hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PxProng1, hf_cand::PyProng1>,
75+
hf_cand::Eta<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
76+
hf_cand::Phi<hf_cand_2prong::Px, hf_cand_2prong::Py>,
77+
hf_cand::Y<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
78+
hf_cand::E<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
79+
hf_cand::E2<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>);
80+
81+
// extended table with expression columns that can be used as arguments of dynamic columns
82+
DECLARE_SOA_EXTENDED_TABLE_USER(HfCandChicExt, HfCandChicBase, "HFCANDCHICEXT",
83+
hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz);
84+
85+
using HfCandChic = HfCandChicExt;
86+
87+
// table with results of reconstruction level MC matching
88+
DECLARE_SOA_TABLE(HfCandChicMcRec, "AOD", "HFCANDCHICMCREC", //!
89+
hf_cand_mc_flag::FlagMcMatchRec,
90+
hf_cand_mc_flag::OriginMcRec,
91+
hf_cand_mc_flag::FlagMcDecayChanRec);
92+
93+
// table with results of generator level MC matching
94+
DECLARE_SOA_TABLE(HfCandChicMcGen, "AOD", "HFCANDCHICMCGEN", //!
95+
hf_cand_mc_flag::FlagMcMatchGen,
96+
hf_cand_mc_flag::OriginMcGen,
97+
hf_cand_mc_flag::FlagMcDecayChanGen);
98+
99+
} // namespace o2::aod
100+
101+
#endif // PWGHF_ALICE3_DATAMODEL_CANDIDATERECONSTRUCTIONTABLES_H_

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
//
2424
#include "PWGLF/DataModel/LFStrangenessTables.h"
2525

26-
// #include "ALICE3/DataModel/ECAL.h"
2726
#include "Common/Core/RecoDecay.h"
2827

2928
#include <CommonConstants/PhysicsConstants.h>
@@ -1731,67 +1730,6 @@ DECLARE_SOA_TABLE(HfCandXicResid, "AOD", "HFCANDXICRESID",
17311730
hf_cand_xic_to_xi_pi_pi::YSvPull,
17321731
hf_cand_xic_to_xi_pi_pi::ZSvPull);
17331732

1734-
// specific chic candidate properties
1735-
// namespace hf_cand_chic
1736-
// {
1737-
// DECLARE_SOA_INDEX_COLUMN_FULL(Prong0, prong0, int, HfCand2Prong, "_0"); // Jpsi index
1738-
// DECLARE_SOA_INDEX_COLUMN_FULL(Prong1, prong1, int, ECALs, "_1");
1739-
// DECLARE_SOA_COLUMN(JpsiToMuMuMass, jpsiToMuMuMass, float); // Jpsi mass
1740-
// } // namespace hf_cand_chic
1741-
1742-
// // declare dedicated chi_c candidate table
1743-
// DECLARE_SOA_TABLE(HfCandChicBase, "AOD", "HFCANDCHICBASE",
1744-
// // general columns
1745-
// HFCAND_COLUMNS,
1746-
// // 2-prong specific columns
1747-
// hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0,
1748-
// hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1,
1749-
// hf_cand::ImpactParameter0, hf_cand::ImpactParameter1,
1750-
// hf_cand::ErrorImpactParameter0, hf_cand::ErrorImpactParameter1,
1751-
// hf_cand_chic::Prong0Id, hf_cand_chic::Prong1Id,
1752-
// hf_track_index::HFflag, hf_cand_chic::JpsiToMuMuMass,
1753-
// /* dynamic columns */
1754-
// hf_cand_2prong::M<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
1755-
// hf_cand_2prong::M2<hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PzProng0, hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
1756-
// /* prong 2 */
1757-
// // hf_cand::PtProng1<hf_cand::PxProng1, hf_cand::PyProng1>,
1758-
// // hf_cand::Pt2Prong1<hf_cand::PxProng1, hf_cand::PyProng1>,
1759-
// // hf_cand::PVectorProng1<hf_cand::PxProng1, hf_cand::PyProng1, hf_cand::PzProng1>,
1760-
// /* dynamic columns that use candidate momentum components */
1761-
// hf_cand::Pt<hf_cand_2prong::Px, hf_cand_2prong::Py>,
1762-
// hf_cand::Pt2<hf_cand_2prong::Px, hf_cand_2prong::Py>,
1763-
// hf_cand::P<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1764-
// hf_cand::P2<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1765-
// hf_cand::PVector<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1766-
// hf_cand::Cpa<collision::PosX, collision::PosY, collision::PosZ, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1767-
// hf_cand::CpaXY<collision::PosX, collision::PosY, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py>,
1768-
// hf_cand::Ct<collision::PosX, collision::PosY, collision::PosZ, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1769-
// hf_cand::ImpactParameterXY<collision::PosX, collision::PosY, collision::PosZ, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ZSecondaryVertex, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1770-
// hf_cand_2prong::MaxNormalisedDeltaIP<collision::PosX, collision::PosY, hf_cand::XSecondaryVertex, hf_cand::YSecondaryVertex, hf_cand::ErrorDecayLengthXY, hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand::ImpactParameter0, hf_cand::ErrorImpactParameter0, hf_cand::ImpactParameter1, hf_cand::ErrorImpactParameter1, hf_cand::PxProng0, hf_cand::PyProng0, hf_cand::PxProng1, hf_cand::PyProng1>,
1771-
// hf_cand::Eta<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1772-
// hf_cand::Phi<hf_cand_2prong::Px, hf_cand_2prong::Py>,
1773-
// hf_cand::Y<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1774-
// hf_cand::E<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>,
1775-
// hf_cand::E2<hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz>);
1776-
1777-
// // extended table with expression columns that can be used as arguments of dynamic columns
1778-
// DECLARE_SOA_EXTENDED_TABLE_USER(HfCandChicExt, HfCandChicBase, "HFCANDCHICEXT",
1779-
// hf_cand_2prong::Px, hf_cand_2prong::Py, hf_cand_2prong::Pz);
1780-
1781-
// using HfCandChic = HfCandChicExt;
1782-
1783-
// // table with results of reconstruction level MC matching
1784-
// DECLARE_SOA_TABLE(HfCandChicMcRec, "AOD", "HFCANDCHICMCREC", //!
1785-
// hf_cand_mc_flag::FlagMcMatchRec,
1786-
// hf_cand_mc_flag::OriginMcRec,
1787-
// hf_cand_mc_flag::FlagMcDecayChanRec);
1788-
1789-
// // table with results of generator level MC matching
1790-
// DECLARE_SOA_TABLE(HfCandChicMcGen, "AOD", "HFCANDCHICMCGEN", //!
1791-
// hf_cand_mc_flag::FlagMcMatchGen,
1792-
// hf_cand_mc_flag::OriginMcGen,
1793-
// hf_cand_mc_flag::FlagMcDecayChanGen);
1794-
17951733
// specific Lb candidate properties
17961734
namespace hf_cand_lb
17971735
{

0 commit comments

Comments
 (0)