|
| 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_ |
0 commit comments