@@ -215,7 +215,7 @@ struct HfTaskSingleElectron {
215215 anc.push_back (mpdg);
216216
217217 // check if electron from charm hadrons
218- if ((int (motherPdg / 100 .) % 10 ) == kCharm || (int (motherPdg / 1000 .) % 10 ) == kCharm ) {
218+ if ((static_cast < int > (motherPdg / 100 .) % 10 ) == kCharm || (static_cast < int > (motherPdg / 1000 .) % 10 ) == kCharm ) {
219219
220220 // iterate until B hadron is found as an ancestor
221221 while (partMother.size ()) {
@@ -229,7 +229,7 @@ struct HfTaskSingleElectron {
229229 grmotherPt = mctrack.front ().pt ();
230230 grmotherPdg = std::abs (mctrack.front ().pdgCode ());
231231 anc.push_back (mctrack.front ().pdgCode ());
232- if ((int (grmotherPdg / 100 .) % 10 ) == kBottom || (int (grmotherPdg / 1000 .) % 10 ) == kBottom ) {
232+ if ((static_cast < int > (grmotherPdg / 100 .) % 10 ) == kBottom || (static_cast < int > (grmotherPdg / 1000 .) % 10 ) == kBottom ) {
233233 mpt = grmotherPt;
234234 mpdg = grmotherPdg;
235235 return BeautyCharm;
@@ -238,15 +238,9 @@ struct HfTaskSingleElectron {
238238 }
239239 partMother = mctrack;
240240 }
241- }
242-
243- // check if electron from beauty hadrons
244- else if ((int (motherPdg / 100 .) % 10 ) == kBottom || (int (motherPdg / 1000 .) % 10 ) == kBottom ) {
241+ } else if ((static_cast <int >(motherPdg / 100 .) % 10 ) == kBottom || (static_cast <int >(motherPdg / 1000 .) % 10 ) == kBottom ) { // check if electron from beauty hadrons
245242 return DirectBeauty;
246- }
247-
248- // check if electron from photon conversion
249- else if (motherPdg == kGamma ) {
243+ } else if (motherPdg == kGamma ) { // check if electron from photon conversion
250244 mctrack = partMother.front ().template mothers_as <aod::McParticles>();
251245 if (mctrack.size ()) {
252246 auto const & grmothersIdsVec = mctrack.front ().mothersIds ();
@@ -325,10 +319,7 @@ struct HfTaskSingleElectron {
325319 }
326320 }
327321 }
328- }
329-
330- // check if electron from Dalitz decays
331- else {
322+ } else { // check if electron from Dalitz decays
332323 mctrack = partMother.front ().template mothers_as <aod::McParticles>();
333324 if (mctrack.size ()) {
334325 auto const & grmothersIdsVec = mctrack.front ().mothersIds ();
0 commit comments