Skip to content
Snippets Groups Projects

Fixed bug switching kpi and kpipi0 mode in Dstar selection

Merged Gregory James Ottino requested to merge DSelBugFix into master
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -375,7 +375,7 @@ StatusCode DSelectionAlg ::execute() {
if (m_doD0Kpi && (k1+p2).M() > m_minMassD0in_Kpi &&
(k1+p2).M() < m_maxMassD0in_Kpi &&
(k1+p2).Pt() > 3.5*CLHEP::GeV ) {
bool found = FindDstarCandidate(0, m_primaryVertex, trk1, trk2, composites.get());
bool found = FindDstarCandidate(1, m_primaryVertex, trk1, trk2, composites.get());
if ( found ) {
m_NDstar++;
ATH_MSG_VERBOSE("Found a D0 -> K pi candidate!");
@@ -385,7 +385,7 @@ StatusCode DSelectionAlg ::execute() {
if (m_doD0K2pi && (k1 + p2).M() > m_minMassD0in_Kpipi0 &&
(k1 + p2).M() < m_maxMassD0in_Kpipi0 &&
(k1 + p2).Pt() > 3.5 * CLHEP::GeV) {
bool found = FindDstarCandidate(1, m_primaryVertex, trk1, trk2, composites.get());
bool found = FindDstarCandidate(0, m_primaryVertex, trk1, trk2, composites.get());
if ( found ) {
m_NDstar++;
ATH_MSG_VERBOSE("Found a D0 -> K pi pi0 candidate!");
@@ -395,7 +395,7 @@ StatusCode DSelectionAlg ::execute() {
if (m_doD0Kpi && (k2 + p1).M() > m_minMassD0in_Kpi &&
(k2 + p1).M() < m_maxMassD0in_Kpi &&
(k2 + p1).Pt() > 3.5 * CLHEP::GeV) {
bool found = FindDstarCandidate(0, m_primaryVertex, trk2, trk1, composites.get());
bool found = FindDstarCandidate(1, m_primaryVertex, trk2, trk1, composites.get());
if ( found ) {
m_NDstar++;
ATH_MSG_VERBOSE("Found a D0 -> K pi candidate!");
@@ -405,7 +405,7 @@ StatusCode DSelectionAlg ::execute() {
if (m_doD0K2pi && (k2 + p1).M() > m_minMassD0in_Kpipi0 &&
(k2 + p1).M() < m_maxMassD0in_Kpipi0 &&
(k2 + p1).Pt() > 3.5 * CLHEP::GeV) {
bool found = FindDstarCandidate(1, m_primaryVertex, trk2, trk1, composites.get());
bool found = FindDstarCandidate(0, m_primaryVertex, trk2, trk1, composites.get());
if ( found ) {
m_NDstar++;
ATH_MSG_VERBOSE("Found a D0 -> K pi pi0 candidate!");
Loading