File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -209,15 +209,14 @@ struct lmeehfcocktailprefilter {
209209 }
210210
211211 int mother_pdg = mcParticles.iteratorAt (p.mothersIds ()[0 ]).pdgCode ();
212- bool direct_charm_mother = abs (mother_pdg) < 1e+9 && (std::to_string (mother_pdg)[std::to_string (mother_pdg).length () - 3 ] == ' 4' || std::to_string (mother_pdg)[std::to_string (mother_pdg).length () - 4 ] == ' 4' );
213- if (abs (mother_pdg) == 443 ) {
214- direct_charm_mother = false ; // we don't want JPsi here
215- }
212+ // Mother is an open-charm hadon (meson or baryon) expected to decay semi-leptonicly
213+ bool direct_charm_mother = ((std::abs (mother_pdg) >= 400 ) && (std::abs (mother_pdg) <= 439 )) || ((std::abs (mother_pdg) >= 4000 ) && (std::abs (mother_pdg) <= 4399 ));
216214 int cHadronId = -1 ;
217215 if (direct_charm_mother) {
218216 cHadronId = p.mothersIds ()[0 ];
219217 }
220- bool direct_beauty_mother = abs (mother_pdg) < 1e+9 && (std::to_string (mother_pdg)[std::to_string (mother_pdg).length () - 3 ] == ' 5' || std::to_string (mother_pdg)[std::to_string (mother_pdg).length () - 4 ] == ' 5' );
218+ // Mother is an open-beuaty hadron (meson or baryon) expected to decay semi-leptonicly
219+ bool direct_beauty_mother = ((std::abs (mother_pdg) >= 500 ) && (std::abs (mother_pdg) <= 549 )) || ((std::abs (mother_pdg) >= 5000 ) && (std::abs (mother_pdg) <= 5499 ));
221220 int bHadronId = IsFromBeauty (p, mcParticles);
222221
223222 int bQuarkId = -1 ;
You can’t perform that action at this time.
0 commit comments