45 produces<std::vector<reco::CompositeCandidate>>();
58 auto bestZ = std::make_unique<std::vector<reco::CompositeCandidate>>();
59 if (!zCandidates->empty()) {
63 auto bestZCand = std::min_element(std::cbegin(*zCandidates), std::cend(*zCandidates),
64 [ZmassPDG](
auto const& firstCand,
auto const& secondCand) {
65 return std::abs(firstCand.mass()-ZmassPDG) <
std::abs(secondCand.mass()-ZmassPDG);
67 bestZ->push_back(*bestZCand);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const override
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
ZllArbitrator(edm::ParameterSet const &)
edm::EDGetTokenT< std::vector< reco::CompositeCandidate > > srcZCand_