Skip to content

Commit

Permalink
gcc7 compilation warnings fix in ElectroWeakAnalysis/ZMuMu pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodozov committed Jul 25, 2017
1 parent 3b3a9c0 commit 8678429
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ElectroWeakAnalysis/ZMuMu/plugins/ZMuMuEfficiency.cc
Expand Up @@ -537,7 +537,7 @@ bool ZMuMuEfficiency::check_ifZmumu(const Candidate * dauGen0, const Candidate *
if (partId0==13 || partId1==13 || partId2==13) muminusFound=true;
if (partId0==-13 || partId1==-13 || partId2==-13) muplusFound=true;
if (partId0==23 || partId1==23 || partId2==23) ZFound=true;
return muplusFound*muminusFound*ZFound;
return ( muplusFound && muminusFound && ZFound );
}

float ZMuMuEfficiency::getParticlePt(const int ipart, const Candidate * dauGen0, const Candidate * dauGen1, const Candidate * dauGen2)
Expand Down
2 changes: 1 addition & 1 deletion ElectroWeakAnalysis/ZMuMu/plugins/ZMuMuPerformances.cc
Expand Up @@ -1016,7 +1016,7 @@ bool ZMuMuPerformances::check_ifZmumu(const Candidate * dauGen0, const Candidate
if (partId0==13 || partId1==13 || partId2==13) muminusFound=true;
if (partId0==-13 || partId1==-13 || partId2==-13) muplusFound=true;
if (partId0==23 || partId1==23 || partId2==23) ZFound=true;
return muplusFound*muminusFound*ZFound;
return (muplusFound && muminusFound && ZFound);
}

float ZMuMuPerformances::getParticlePt(const int ipart, const Candidate * dauGen0, const Candidate * dauGen1, const Candidate * dauGen2)
Expand Down
2 changes: 1 addition & 1 deletion ElectroWeakAnalysis/ZMuMu/plugins/ZMuMu_MCanalyzer.cc
Expand Up @@ -431,7 +431,7 @@ bool ZMuMu_MCanalyzer::check_ifZmumu(const Candidate * dauGen0, const Candidate
if (partId0==13 || partId1==13 || partId2==13) muminusFound=true;
if (partId0==-13 || partId1==-13 || partId2==-13) muplusFound=true;
if (partId0==23 || partId1==23 || partId2==23) ZFound=true;
return muplusFound*muminusFound*ZFound;
return (muplusFound && muminusFound && ZFound);
}

float ZMuMu_MCanalyzer::getParticlePt(const int ipart, const Candidate * dauGen0, const Candidate * dauGen1, const Candidate * dauGen2)
Expand Down
Expand Up @@ -600,7 +600,7 @@ bool ZMuMu_efficiencyAnalyzer::check_ifZmumu(const Candidate * dauGen0, const Ca
if (partId0==13 || partId1==13 || partId2==13) muminusFound=true;
if (partId0==-13 || partId1==-13 || partId2==-13) muplusFound=true;
if (partId0==23 || partId1==23 || partId2==23) ZFound=true;
return muplusFound*muminusFound*ZFound;
return (muplusFound && muminusFound && ZFound);
}

float ZMuMu_efficiencyAnalyzer::getParticlePt(const int ipart, const Candidate * dauGen0, const Candidate * dauGen1, const Candidate * dauGen2)
Expand Down
2 changes: 1 addition & 1 deletion ElectroWeakAnalysis/ZMuMu/plugins/ZMuMu_vtxAnalyzer.cc
Expand Up @@ -445,7 +445,7 @@ bool ZMuMu_vtxAnalyzer::check_ifZmumu(const Candidate * dauGen0, const Candidate
if (partId0==13 || partId1==13 || partId2==13) muminusFound=true;
if (partId0==-13 || partId1==-13 || partId2==-13) muplusFound=true;
if (partId0==23 || partId1==23 || partId2==23) ZFound=true;
return muplusFound*muminusFound*ZFound;
return ( muplusFound && muminusFound && ZFound );
}

float ZMuMu_vtxAnalyzer::getParticlePt(const int ipart, const Candidate * dauGen0, const Candidate * dauGen1, const Candidate * dauGen2)
Expand Down

0 comments on commit 8678429

Please sign in to comment.