@@ -107,9 +107,6 @@ struct HfCandidateSelectorDstarToD0Pi {
107107 Configurable<int64_t > timestampCCDB{" timestampCCDB" , -1 , " timestamp of the ONNX file for ML model used to query in CCDB" };
108108 Configurable<bool > loadModelsFromCCDB{" loadModelsFromCCDB" , false , " Flag to enable or disable the loading of models from CCDB" };
109109
110- // PDG mass for kaon, pion and D0
111- double massD0, massPi, massK;
112-
113110 HfHelper hfHelper;
114111 o2::analysis::HfMlResponseDstarToD0Pi<float > hfMlResponse;
115112 std::vector<float > outputMlDstarToD0Pi = {};
@@ -129,9 +126,6 @@ struct HfCandidateSelectorDstarToD0Pi {
129126
130127 void init (InitContext&)
131128 {
132- massPi = MassPiPlus;
133- massK = MassKPlus;
134- massD0 = MassD0;
135129
136130 selectorPion.setRangePtTpc (ptPidTpcMin, ptPidTpcMax);
137131 selectorPion.setRangeNSigmaTpc (-nSigmaTpcMax, nSigmaTpcMax);
@@ -293,10 +287,10 @@ struct HfCandidateSelectorDstarToD0Pi {
293287 if (prongSoftPi.sign () > 0 .) { // Selection of D*+
294288 mInvDstar = candidate.invMassDstar ();
295289 mInvD0 = candidate.invMassD0 ();
296- if (std::abs (mInvD0 - massD0 ) > cutsD0->get (binPt, " m" )) {
290+ if (std::abs (mInvD0 - MassD0 ) > cutsD0->get (binPt, " m" )) {
297291 return false ;
298292 }
299- if (useTriggerMassCut && !isCandidateInMassRange (mInvD0 , massD0 , candidate.ptD0 (), hfTriggerCuts)) {
293+ if (useTriggerMassCut && !isCandidateInMassRange (mInvD0 , MassD0 , candidate.ptD0 (), hfTriggerCuts)) {
300294 return false ;
301295 }
302296 // cut on daughter pT
@@ -321,10 +315,10 @@ struct HfCandidateSelectorDstarToD0Pi {
321315 } else if (prongSoftPi.sign () < 0 .) { // Selection of D*-
322316 mInvAntiDstar = candidate.invMassAntiDstar ();
323317 mInvD0Bar = candidate.invMassD0Bar ();
324- if (std::abs (mInvD0Bar - massD0 ) > cutsD0->get (binPt, " m" )) {
318+ if (std::abs (mInvD0Bar - MassD0 ) > cutsD0->get (binPt, " m" )) {
325319 return false ;
326320 }
327- if (useTriggerMassCut && !isCandidateInMassRange (mInvD0Bar , massD0 , candidate.ptD0 (), hfTriggerCuts)) {
321+ if (useTriggerMassCut && !isCandidateInMassRange (mInvD0Bar , MassD0 , candidate.ptD0 (), hfTriggerCuts)) {
328322 return false ;
329323 }
330324 // cut on daughter pT
@@ -349,11 +343,11 @@ struct HfCandidateSelectorDstarToD0Pi {
349343
350344 // in case only sideband candidates have to be stored, additional invariant-mass cut
351345 if (keepOnlySidebandCandidates && prongSoftPi.sign () > 0 .) {
352- if (std::abs ((mInvDstar - mInvD0 ) - massPi ) < distanceFromDeltaMassForSidebands) {
346+ if (std::abs ((mInvDstar - mInvD0 ) - MassPiPlus ) < distanceFromDeltaMassForSidebands) {
353347 return false ;
354348 }
355349 } else if (keepOnlySidebandCandidates && prongSoftPi.sign () < 0 .) {
356- if (std::abs ((mInvAntiDstar - mInvD0Bar ) - massPi ) < distanceFromDeltaMassForSidebands) {
350+ if (std::abs ((mInvAntiDstar - mInvD0Bar ) - MassPiPlus ) < distanceFromDeltaMassForSidebands) {
357351 return false ;
358352 }
359353 }
0 commit comments