1 #ifndef MuonIdentification_MuonSelectionTypeValueMapProducer_h 2 #define MuonIdentification_MuonSelectionTypeValueMapProducer_h 49 values.reserve(muonsH->size());
52 for(reco::MuonCollection::const_iterator it = muonsH->begin(); it != muonsH->end(); ++it)
56 auto out = std::make_unique<edm::ValueMap<bool>>();
58 filler.insert(muonsH, values.begin(), values.end());
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::InputTag inputMuonCollection_
MuonSelectionTypeValueMapProducer(const edm::ParameterSet &iConfig)
muon::SelectionType selectionType_
edm::EDGetTokenT< reco::MuonCollection > muonToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string selectionTypeLabel_
~MuonSelectionTypeValueMapProducer() override
SelectionType
Selector type.
void produce(edm::Event &, const edm::EventSetup &) override
bool isGoodMuon(const reco::Muon &muon, SelectionType type, reco::Muon::ArbitrationType arbitrationType=reco::Muon::SegmentAndTrackArbitration)
main GoodMuon wrapper call
SelectionType selectionTypeFromString(const std::string &label)