32 desc.add<
double>(
"relCombIsoCut", 0.15)->setComment(
"cut on the relative combined isolation");
33 desc.add<
bool>(
"useTrackerOnlyIsolation",
false)->setComment(
"use only tracker isolation");
34 desc.add<
bool>(
"filter",
true);
40 relCombIsoCut_(iConfig.getParameter<double>(
"relCombIsoCut")),
41 useTrackerOnlyIsolation_(iConfig.getParameter<
bool>(
"useTrackerOnlyIsolation")),
42 filterEvents_(iConfig.getParameter<
bool>(
"filter")) {
43 produces<reco::MuonCollection>();
50 auto selectedMuons = std::make_unique<reco::MuonCollection>();
56 relCombIso =
muon.isolationR03().sumPt /
muon.pt();
59 relCombIso = (
muon.isolationR03().sumPt +
muon.isolationR03().emEt +
muon.isolationR03().hadEt) /
muon.pt();
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
~AlignmentRelCombIsoMuonSelector() override=default
edm::EDGetTokenT< reco::MuonCollection > muonToken_
const double relCombIsoCut_
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
std::vector< Muon > MuonCollection
collection of Muon objects
#define DEFINE_FWK_MODULE(type)
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
const bool useTrackerOnlyIsolation_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
AlignmentRelCombIsoMuonSelector(const edm::ParameterSet &)