Skip to content

Commit 3605f6e

Browse files
committed
Modifications based on comments
1 parent 243e788 commit 3605f6e

3 files changed

Lines changed: 65 additions & 68 deletions

File tree

PWGHF/TableProducer/HFBsToDsPiCandidateSelector.cxx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
/// \file HFLbToLcPiCandidateSelector.cxx
12+
/// \file HFBsToDsPiCandidateSelector.cxx
1313
/// \brief Bs → Ds+ π- candidate selector
1414
///
1515
/// \author Panos Christakoglou <panos.christakoglou@cern.ch>, Nikhef
@@ -65,13 +65,8 @@ struct HfBsToDsPiCandidateSelector {
6565
return false;
6666
}
6767

68-
// check that the candidate pT is within the analysis range
69-
if (candpT < pTCandMin || candpT >= pTCandMax) {
70-
return false;
71-
}
72-
73-
//Λb0 mass cut
74-
if (std::abs(InvMassBsToDsPi(hfCandBs) - RecoDecay::getMassPDG(pdg::Code::kLambdaB0)) > cuts->get(pTBin, "m")) {
68+
//Bs mass cut
69+
if (std::abs(InvMassBsToDsPi(hfCandBs) - RecoDecay::getMassPDG(pdg::Code::kBs)) > cuts->get(pTBin, "m")) {
7570
//Printf("Bs topol selection failed at mass diff check");
7671
return false;
7772
}
@@ -88,7 +83,7 @@ struct HfBsToDsPiCandidateSelector {
8883

8984
//Ds mass
9085
//if (trackPi.sign() < 0) {
91-
//if (std::abs(InvMassDspKpi(hfCandDs) - RecoDecay::getMassPDG(pdg::Code::kLambdaCPlus)) > cuts->get(pTBin, "DeltaMDs")) {
86+
//if (std::abs(InvMassDspKpi(hfCandDs) - RecoDecay::getMassPDG(pdg::Code::kDs)) > cuts->get(pTBin, "DeltaMDs")) {
9287
//return false;
9388
//}
9489
//}
@@ -133,15 +128,14 @@ struct HfBsToDsPiCandidateSelector {
133128

134129
int statusBs = 0;
135130

136-
// check if flagged as Λb --> Λc+ π-
131+
// check if flagged as Bs --> Ds+ π-
137132
if (!(hfCandBs.hfflag() & 1 << hf_cand_bs::DecayType::BsToDsPi)) {
138133
hfSelBsToDsPiCandidate(statusBs);
139134
//Printf("Bs candidate selection failed at hfflag check");
140135
continue;
141136
}
142137

143138
// Ds is always index0 and pi is index1 by default
144-
//auto candDs = hfCandBs.index0();
145139
auto candDs = hfCandBs.index0_as<soa::Join<aod::HfCandProng3, aod::HFSelDsCandidate>>();
146140
auto trackPi = hfCandBs.index1_as<aod::BigTracksPID>();
147141

PWGHF/TableProducer/HFCandidateCreatorBs.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ struct HFCandidateCreatorBs {
135135
int index0Ds = track0.globalIndex();
136136
int index1Ds = track1.globalIndex();
137137
int index2Ds = track2.globalIndex();
138-
int charge = track0.sign() + track1.sign() + track2.sign();
138+
//int charge = track0.sign() + track1.sign() + track2.sign();
139139

140140
for (auto& trackPion : tracks) {
141141
if (trackPion.pt() < ptPionMin) {
@@ -159,7 +159,7 @@ struct HFCandidateCreatorBs {
159159
// calculate relevant properties
160160
const auto& secondaryVertexBs = df2.getPCACandidate();
161161
auto chi2PCA = df2.getChi2AtPCACandidate();
162-
auto covMatrixPCA = df2.calcPCACovMatrix().Array();
162+
auto covMatrixPCA = df2.calcPCACovMatrixFlat();
163163

164164
df2.propagateTracksToVertex();
165165
df2.getTrack(0).getPxPyPzGlo(pvecDs);
@@ -272,6 +272,7 @@ struct HFCandidateCreatorBsMC {
272272
if (RecoDecay::isMatchedMCGen(particlesMC, particle, pdg::Code::kLambdaB0, array{int(pdg::Code::kDs), -kPiPlus}, true)) {
273273
// Match Ds+ -> φπ -> K+K-π
274274
auto DsCandMC = particlesMC.iteratorAt(particle.daughter0Id());
275+
275276
// Printf("Checking Ds+ -> φπ -> K+K-π");
276277
if (RecoDecay::isMatchedMCGen(particlesMC, DsCandMC, int(pdg::Code::kDs), array{+kKPlus, -kKPlus, +kPiPlus}, true, &sign)) {
277278
flag = sign * (1 << hf_cand_bs::DecayType::BsToDsPi);

0 commit comments

Comments
 (0)