Skip to content

Commit 1bc374d

Browse files
authored
PWGHF: Bug fix to the creator that was pushed (#225)
* Bug fix to the creator that was pushed * Format changes
1 parent 39b4f98 commit 1bc374d

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

PWGHF/TableProducer/HFCandidateCreatorLb.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ struct HFCandidateCreatorLb {
105105
if (lcCand.isSelLcpiKp() >= d_selectionFlagLc) {
106106
hMassLcToPKPi->Fill(InvMassLcpiKp(lcCand), lcCand.pt());
107107
}
108+
hPtLc->Fill(lcCand.pt());
109+
hCPALc->Fill(lcCand.cpa());
110+
108111
auto track0 = lcCand.index0_as<aod::BigTracks>();
109112
auto track1 = lcCand.index1_as<aod::BigTracks>();
110113
auto track2 = lcCand.index2_as<aod::BigTracks>();
@@ -138,12 +141,13 @@ struct HFCandidateCreatorLb {
138141
if (trackPion.pt() < ptPionMin) {
139142
continue;
140143
}
141-
if (trackPion.sign() * charge < 0) {
144+
if (trackPion.sign() > 0) {
142145
continue;
143146
}
144147
if (trackPion.globalIndex() == index0Lc || trackPion.globalIndex() == index1Lc || trackPion.globalIndex() == index2Lc) {
145148
continue;
146149
}
150+
hPtPion->Fill(trackPion.pt());
147151
array<float, 3> pvecPion;
148152
auto trackParVarPi = getTrackParCov(trackPion);
149153

@@ -168,6 +172,9 @@ struct HFCandidateCreatorLb {
168172
trackLc.propagateToDCA(primaryVertex, magneticField, &impactParameter0);
169173
trackParVarPi.propagateToDCA(primaryVertex, magneticField, &impactParameter1);
170174

175+
hCovSVXX->Fill(covMatrixPCA[0]);
176+
hCovPVXX->Fill(covMatrixPV[0]);
177+
171178
// get uncertainty of the decay length
172179
double phi, theta;
173180
getPointDirection(array{collision.posX(), collision.posY(), collision.posZ()}, secondaryVertexLb, phi, theta);

PWGHF/TableProducer/HFLbToLcPiCandidateSelector.cxx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ struct HfLbToLcPiCandidateSelector {
8080
return false;
8181
}
8282

83-
//d0(Lc)xd0(pi)
84-
if (hfCandLb.impactParameterProduct() > cuts->get(pTBin, "Imp. Par. Product")) {
83+
//Lc+ pt
84+
if (hfCandLc.pt() < cuts->get(pTBin, "pT Lc+")) {
8585
return false;
8686
}
8787

@@ -103,16 +103,20 @@ struct HfLbToLcPiCandidateSelector {
103103
}
104104

105105
//Lb CPA cut
106-
//if (hfCandLb.cpa() < cuts->get(pTBin, "CPA")) {
107-
//return false;
108-
//}
106+
if (hfCandLb.cpa() < cuts->get(pTBin, "CPA")) {
107+
return false;
108+
}
109109

110-
//d0 of Lc and pi
111-
if ((std::abs(hfCandLb.impactParameter0()) > cuts->get(pTBin, "d0 Lc+")) ||
112-
(std::abs(hfCandLb.impactParameter1()) > cuts->get(pTBin, "d0 Pi"))) {
110+
//d0 of pi
111+
if (std::abs(hfCandLb.impactParameter1()) < cuts->get(pTBin, "d0 Pi")) {
113112
return false;
114113
}
115114

115+
//d0 of Lc+
116+
//if(std::abs(hfCandLb.impactParameter0()) > cuts->get(pTBin, "d0 Lc+")){
117+
//return false;
118+
//}
119+
116120
return true;
117121
}
118122

PWGHF/Tasks/taskLb.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,8 @@ struct HfTaskLb {
7272
Filter filterSelectCandidates = (aod::hf_selcandidate_lb::isSelLbToLcPi >= selectionFlagLb);
7373

7474
void process(soa::Join<aod::Collisions, aod::CentV0Ms>::iterator const& collision, soa::Filtered<soa::Join<aod::HfCandLb, aod::HFSelLbToLcPiCandidate>> const& candidates, soa::Join<aod::HfCandProng3, aod::HFSelLcCandidate>, aod::BigTracks)
75-
//void process(soa::Filtered<soa::Join<aod::HfCandLb, aod::HFSelLbToLcPiCandidate>> const& candidates, soa::Join<aod::HfCandProng3, aod::HFSelLcCandidate>, aod::BigTracks)
7675
{
77-
float centrality = collision.centV0M(); //FIXME: Add centrality properly;removed for the time being (taking forever to run)
76+
float centrality = collision.centV0M();
7877
registry.fill(HIST("hCentrality"), centrality);
7978

8079
for (auto& candidate : candidates) {

0 commit comments

Comments
 (0)