Skip to content

Commit

Permalink
replaced boost::bind for standard alternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
camolezi committed Jun 7, 2020
1 parent 442ae07 commit 22245ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion CalibFormats/SiStripObjects/BuildFile.xml
Expand Up @@ -3,7 +3,6 @@
<use name="CondFormats/SiStripObjects"/>
<use name="CalibTracker/SiStripCommon"/>
<use name="DataFormats/TrackerCommon"/>
<use name="boost"/>
<export>
<lib name="1"/>
</export>
13 changes: 4 additions & 9 deletions CalibFormats/SiStripObjects/src/SiStripQuality.cc
Expand Up @@ -14,9 +14,6 @@
// Needed only for output
#include "DataFormats/DetId/interface/DetId.h"

#include <boost/bind.hpp>
#include <boost/function.hpp>

SiStripQuality::SiStripQuality()
: toCleanUp(false),
FileInPath_("CalibTracker/SiStripCommon/data/SiStripDetInfo.dat"),
Expand Down Expand Up @@ -147,12 +144,10 @@ void SiStripQuality::add(const RunInfo *runInfo) {
// Take the list of active feds from RunInfo
std::vector<int> activeFedsFromRunInfo;
// Take only Tracker feds (remove all non Tracker)
std::remove_copy_if(runInfo->m_fed_in.begin(),
runInfo->m_fed_in.end(),
std::back_inserter(activeFedsFromRunInfo),
!boost::bind(std::logical_and<bool>(),
boost::bind(std::greater_equal<int>(), _1, int(FEDNumbering::MINSiStripFEDID)),
boost::bind(std::less_equal<int>(), _1, int(FEDNumbering::MAXSiStripFEDID))));
std::remove_copy_if(
runInfo->m_fed_in.begin(), runInfo->m_fed_in.end(), std::back_inserter(activeFedsFromRunInfo), [&](int x) {
return !((x >= int(FEDNumbering::MINSiStripFEDID)) && (x <= int(FEDNumbering::MAXSiStripFEDID)));
});

// Compare the two. If a fedId from RunInfo is not present in the fedCabling
// we need to get all the corresponding fedChannels and then the single apv
Expand Down

0 comments on commit 22245ba

Please sign in to comment.