Skip to content

Commit

Permalink
Fix a remaining bug from updated el LH WPs (#1646)
Browse files Browse the repository at this point in the history
* add str support

* Update MuonContainer.cxx

* Update Muon.h

* Update MuonContainer.h

* Fix the breaking code due to the WP

---------

Co-authored-by: Sagar Addepalli <sagara17@bnl.gov>
Co-authored-by: gfrattar <120020707+gfrattar@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 10, 2023
1 parent 4180a5b commit 051c0f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Root/ParticlePIDManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ StatusCode ElectronLHPIDManager :: setupWPs( bool configTools, std::string selec
for ( auto it : (m_allWPAuxDecors) ) {

HelperClasses::EnumParser<LikeEnum::Menu> WP_parser;
unsigned int WP_enum = static_cast<unsigned int>( WP_parser.parseEnum(it) );
std::string WPParseString = it;
if (it.find("NoPix") != std::string::npos) WPParseString = it.substr(0, it.size()-5) + "LLP";
unsigned int WP_enum = static_cast<unsigned int>( WP_parser.parseEnum(WPParseString) );

/* if this WP is looser than user's WP, skip to next */
if ( WP_enum < selectedWP_enum ) { continue; }
Expand Down

0 comments on commit 051c0f4

Please sign in to comment.