Skip to content

Commit 96f9da0

Browse files
author
Francesco Mazzaschi
committed
Fix histogram filling
1 parent 0438000 commit 96f9da0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

PWGLF/Tasks/Resonances/lambda1405analysis.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,13 @@ struct lambda1405analysis {
178178
if (std::abs(sigmaCand.dcaMothPv()) > cutDCAtoPVSigma || std::abs(sigmaCand.dcaDaugPv()) < cutDCAtoPVPiFromSigma || sigmaRad < cutSigmaRadius) {
179179
return false;
180180
}
181-
rLambda1405.fill(HIST("h2PtMassSigmaBeforeCuts"), sigmaCand.mothSign() * sigmaCand.ptMoth(), sigmaCand.mSigmaMinus());
181+
if (lambda1405Cand.isSigmaMinus){
182+
rLambda1405.fill(HIST("h2PtMassSigmaBeforeCuts_0"), sigmaCand.mothSign() * sigmaCand.ptMoth(), sigmaCand.mSigmaMinus());
183+
}
184+
if (lambda1405Cand.isSigmaPlus){
185+
rLambda1405.fill(HIST("h2PtMassSigmaBeforeCuts_1"), sigmaCand.mothSign() * sigmaCand.ptMoth(), sigmaCand.mSigmaPlus());
186+
}
187+
182188
for (const auto& piTrack : tracks) {
183189
if (!doLSBkg) {
184190
if (piTrack.sign() == sigmaCand.mothSign()) {

0 commit comments

Comments
 (0)