Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward port of remaining CMSSW_7_2_X bits into CMSSW_7_3_X. #5706

Merged
merged 13 commits into from Oct 7, 2014

Conversation

ktf
Copy link
Contributor

@ktf ktf commented Oct 6, 2014

No description provided.

@@ -185,10 +184,9 @@ namespace HepMCValidationHelper {
for (unsigned int i = 0; i < taus.size(); ++i){
std::vector<const HepMC::GenParticle*> taudaughters;
findDescendents(taus[i], taudaughters);
assert(taudaughters.size()>0);
if ( taudaughters.size()==0 ) {
if ( taudaughters.size()<=0 ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

taudaughters.size() is never < 0...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, Alessandro changed this accordingly.

On Oct 6, 2014, at 7:08 PM, Giulio Eulisse notifications@github.com
wrote:

In Validation/EventGenerator/src/HepMCValidationHelper.cc:

@@ -185,10 +184,9 @@ namespace HepMCValidationHelper {
for (unsigned int i = 0; i < taus.size(); ++i){
std::vector<const HepMC::GenParticle*> taudaughters;
findDescendents(taus[i], taudaughters);

  •  assert(taudaughters.size()>0);
    
  •  if ( taudaughters.size()==0 ) {
    
  •  if ( taudaughters.size()<=0 ) {
    

taudaughters.size() is never < 0...


Reply to this email directly or view it on GitHub.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah - never mind my comment.. yes - indeed - can be fixed when we re-enable the abort

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah... it should probably use std::vector::empty() as well..

@ktf
Copy link
Contributor Author

ktf commented Oct 7, 2014

+1

@ktf
Copy link
Contributor Author

ktf commented Oct 7, 2014

@vadler @lveldere can you have a look and sign-off?

@lveldere
Copy link
Contributor

lveldere commented Oct 7, 2014

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants