Skip to content

Commit

Permalink
Merge pull request #375 from kkrizka/fixleadingjetsinfoswitch
Browse files Browse the repository at this point in the history
Fixed LeadingJets option for number of leading jets in JetInfoSwitch
  • Loading branch information
kkrizka committed Nov 24, 2015
2 parents 42c9f69 + 096d785 commit ecc3eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Root/HelperClasses.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ namespace HelperClasses{
}
} // sfFTagFlt
m_area = has_exact("area");
if( has_exact("LeadingJets") ){
if( has_match("LeadingJets") ){
m_numLeadingJets = std::atoi( (m_configStr.substr( m_configStr.find("LeadingJets")-2 , 2)).c_str() );
if (m_numLeadingJets == 0){ //Perhaps infoSwitches are combined and Njets < 10
m_numLeadingJets = std::atoi( (m_configStr.substr( m_configStr.find("LeadingJets")-1 , 1)).c_str() );
Expand Down

0 comments on commit ecc3eb9

Please sign in to comment.