Skip to content

Commit b583bf3

Browse files
committed
Create workflow for B+->JPsiK
1 parent 3aeea1a commit b583bf3

File tree

10 files changed

+1833
-10
lines changed

10 files changed

+1833
-10
lines changed

PWGHF/Core/HfHelper.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ class HfHelper
171171
return candidate.m(std::array{o2::constants::physics::MassD0, o2::constants::physics::MassPiPlus});
172172
}
173173

174+
template <typename T>
175+
auto invMassBplusToJPsiK(const T& candidate)
176+
{
177+
return candidate.m(std::array{o2::constants::physics::MassJPsi, o2::constants::physics::MassKPlus});
178+
}
179+
174180
template <typename T>
175181
auto cosThetaStarBplus(const T& candidate)
176182
{

PWGHF/Core/SelectorCuts.h

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,53 @@ static const std::vector<std::string> labelsPt = {
896896
static const std::vector<std::string> labelsCutVar = {"m", "DCA_xy", "DCA_z", "pT El", "chi2PCA"};
897897
} // namespace hf_cuts_jpsi_to_e_e
898898

899+
namespace hf_cuts_jpsi_to_mu_mu
900+
{
901+
static constexpr int NBinsPt = 9;
902+
static constexpr int NCutVars = 7;
903+
// default values for the pT bin edges (can be used to configure histogram axis)
904+
// offset by 1 from the bin numbers in cuts array
905+
constexpr double BinsPt[NBinsPt + 1] = {
906+
0,
907+
0.5,
908+
1.0,
909+
2.0,
910+
3.0,
911+
4.0,
912+
5.0,
913+
6.0,
914+
10.0,
915+
16.0,
916+
};
917+
auto vecBinsPt = std::vector<double>{BinsPt, BinsPt + NBinsPt + 1};
918+
919+
// default values for the cuts
920+
constexpr double Cuts[NBinsPt][NCutVars] = {{0.6, 1.0, 0.2, 0.2, 0.9, 0.9, 0.}, /* 0 < pT < 0.5 */
921+
{0.6, 1.0, 0.2, 0.2, 0.9, 0.9, 0.}, /* 0.5 < pT < 1 */
922+
{0.6, 1.0, 0.2, 0.2, 0.9, 0.9, 0.}, /* 1 < pT < 2 */
923+
{0.6, 1.0, 0.2, 0.2, 0.9, 0.9, 0.}, /* 2 < pT < 3 */
924+
{0.6, 1.0, 0.2, 0.2, 0.9, 0.9, 0.}, /* 3 < pT < 4 */
925+
{0.6, 1.0, 0.2, 0.2, 0.9, 0.9, 0.}, /* 4 < pT < 5 */
926+
{0.8, 1.0, 0.3, 0.3, 0.9, 0.9, 0.}, /* 5 < pT < 6 */
927+
{0.8, 1.0, 0.3, 0.3, 0.9, 0.9, 1.}, /* 6 < pT < 10 */
928+
{0.8, 1.0, 0.3, 0.3, 0.9, 0.9, 1.}}; /* 10 < pT < 16 */
929+
930+
// row labels
931+
static const std::vector<std::string> labelsPt = {
932+
"pT bin 0",
933+
"pT bin 1",
934+
"pT bin 2",
935+
"pT bin 3",
936+
"pT bin 4",
937+
"pT bin 5",
938+
"pT bin 6",
939+
"pT bin 7",
940+
"pT bin 8"};
941+
942+
// column labels
943+
static const std::vector<std::string> labelsCutVar = {"m", "pT mu", "decay length", "decay length xy", "cpa", "cpa xy", "d0xd0"};
944+
} // namespace hf_cuts_jpsi_to_mu_mu
945+
899946
namespace hf_cuts_b0_to_d_pi
900947
{
901948
static constexpr int NBinsPt = 12;

PWGHF/D2H/DataModel/ReducedDataModel.h

Lines changed: 222 additions & 5 deletions
Large diffs are not rendered by default.

PWGHF/D2H/TableProducer/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111

1212
# Candidate creators
1313

14+
o2physics_add_dpl_workflow(candidate-creator-b-to-j-psi-reduced
15+
SOURCES candidateCreatorBToJPsiReduced.cxx
16+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::MLCore
17+
COMPONENT_NAME Analysis)
18+
1419
o2physics_add_dpl_workflow(candidate-creator-b0-reduced
1520
SOURCES candidateCreatorB0Reduced.cxx
1621
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2::DCAFitter
@@ -70,6 +75,11 @@ o2physics_add_dpl_workflow(data-creator-charm-reso-reduced
7075
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::EventFilteringUtils
7176
COMPONENT_NAME Analysis)
7277

78+
o2physics_add_dpl_workflow(data-creator-j-psi-had-reduced
79+
SOURCES dataCreatorJPsiHadReduced.cxx
80+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::EventFilteringUtils
81+
COMPONENT_NAME Analysis)
82+
7383
# Converters
7484

7585
o2physics_add_dpl_workflow(converter-reduced-3-prongs-ml

PWGHF/D2H/TableProducer/candidateCreatorBToJPsiReduced.cxx

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

0 commit comments

Comments
 (0)