Skip to content
Snippets Groups Projects

Clean up LHCbID

Merged Michel De Cian requested to merge decianm-cleanUpLHCbID into master
Files
7
@@ -191,7 +191,7 @@ BOOST_AUTO_TEST_CASE( test_track_lhcbids ) {
BOOST_CHECK( tracks[0].nCommonLhcbIDs( tracks[1] ) == 0 );
BOOST_CHECK( tracks[1].nCommonLhcbIDs( tracks[2] ) == 2 );
std::vector<LHCb::LHCbID> lhcbids{velo_id, ut_id, ft_id};
std::vector<LHCb::LHCbID> lhcbids{velo_id, ft_id, ut_id};
BOOST_CHECK( std::is_sorted( begin( lhcbids ), end( lhcbids ) ) == false );
auto tr = Track{};
tr.setLhcbIDs( lhcbids, LHCb::Tag::Unordered );
@@ -205,7 +205,7 @@ BOOST_AUTO_TEST_CASE( test_track_lhcbids ) {
ut_id.setID( 100 );
ft_id.setID( 20 );
std::vector<LHCb::LHCbID> more_lhcbids{velo_id, ut_id, ft_id};
std::vector<LHCb::LHCbID> more_lhcbids{velo_id, ft_id, ut_id};
std::sort( begin( more_lhcbids ), end( more_lhcbids ) );
// tr.addSortedToLhcbIDs(more_lhcbids);
tr.addToLhcbIDs( more_lhcbids, LHCb::Tag::Sorted );
@@ -215,7 +215,7 @@ BOOST_AUTO_TEST_CASE( test_track_lhcbids ) {
ut_id.setID( 101 );
ft_id.setID( 21 );
std::vector<LHCb::LHCbID> even_more_lhcbids{velo_id, ut_id, ft_id};
std::vector<LHCb::LHCbID> even_more_lhcbids{velo_id, ft_id, ut_id};
BOOST_CHECK( std::is_sorted( begin( even_more_lhcbids ), end( even_more_lhcbids ) ) == false );
BOOST_CHECK( tr.addToLhcbIDs( even_more_lhcbids, LHCb::Tag::Unordered ) == false );
ids = tr.lhcbIDs();
Loading