73 : ZmumuCandidates_(consumes<edm::
View<
reco::CompositeCandidate>>(
74 iConfig.getParameter<edm::
InputTag>(
"ZmumuCandidatesCollection"))) {
85 produces<edm::RefVector<pat::MuonCollection>>();
107 double massDifference = -1.0;
111 if (
std::abs(
ZMass - iZCand->mass()) < massDifference || massDifference < 0) {
113 chosenZCand = &(*iZCand);
118 prod->push_back(chosenZCand->daughter(0)->masterClone().castTo<
pat::MuonRef>());
119 prod->push_back(chosenZCand->daughter(1)->masterClone().castTo<
pat::MuonRef>());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addDefault(ParameterSetDescription const &psetDescription)
void beginStream(edm::StreamID) override
~MuMuForEmbeddingSelector() override
Abs< T >::type abs(const T &t)
MuMuForEmbeddingSelector(const edm::ParameterSet &)
void endStream() override
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< edm::View< reco::CompositeCandidate > > ZmumuCandidates_
void produce(edm::Event &, const edm::EventSetup &) override