60 cut_(iConfig.existsAs<
std::
string>(
"cut") ? iConfig.getParameter<
std::
string>(
"cut") :
""),
61 filter_(iConfig.existsAs<
bool>(
"filter") ? iConfig.getParameter<
bool>(
"filter") :
false),
62 sortDescendingBy_(iConfig.existsAs<
std::
string>(
"sortDescendingBy")
63 ? iConfig.getParameter<
std::
string>(
"sortDescendingBy")
65 sortFunction_(!sortDescendingBy_.
empty() ? sortDescendingBy_ :
"pt"),
66 maxProbes_(iConfig.existsAs<int32_t>(
"maxProbes") ? iConfig.getParameter<int32_t>(
"maxProbes") : -1),
67 probeFiller_(new
tnp::BaseTreeFiller(
"probe_tree", iConfig, consumesCollector())) {}
79 typedef std::pair<reco::CandidateBaseRef, double> Pair;
80 std::vector<Pair> selectedProbes;
81 for (
size_t i = 0;
i < probes->
size(); ++
i) {
89 sort(selectedProbes.begin(), selectedProbes.end(), [&](
auto& arg1,
auto& arg2) {
90 return arg1.second > arg2.second;