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);
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
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)
#define DEFINE_FWK_MODULE(type)
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
virtual const CandidateBaseRef & masterClone() const =0