31 : hltLabel(iConfig.getParameter<
edm::
InputTag>(
"HltLabel")),
33 m_electronSrc(iConfig.getParameter<
edm::
InputTag>(
"electronCollection")),
34 m_pfelectronSrc(iConfig.getParameter<
edm::
InputTag>(
"pfElectronCollection")),
35 m_muonSrc(iConfig.getParameter<
edm::
InputTag>(
"muonCollection")),
36 m_jetsSrc(iConfig.getParameter<
edm::
InputTag>(
"caloJetCollection")),
37 m_pfjetsSrc(iConfig.getParameter<
edm::
InputTag>(
"PFJetCollection")),
38 m_ebRecHitsSrc(iConfig.getParameter<
edm::
InputTag>(
"ecalBarrelRecHitsCollection")),
39 m_eeRecHitsSrc(iConfig.getParameter<
edm::
InputTag>(
"ecalEndcapRecHitsCollection")),
40 useElectronSelection(iConfig.getParameter<
bool>(
"UseElectronSelection")),
41 usePfElectronSelection(iConfig.getParameter<
bool>(
"UsePfElectronSelection")),
42 useMuonSelection(iConfig.getParameter<
bool>(
"UseMuonSelection")),
43 useHtSelection(iConfig.getParameter<
bool>(
"UseHtSelection")),
44 usePFHtSelection(iConfig.getParameter<
bool>(
"UsePFHtSelection")),
45 ptElecMin(iConfig.getParameter<double>(
"electronPtMin")),
46 ptPfElecMin(iConfig.getParameter<double>(
"pfElectronPtMin")),
47 nSelectedElectrons(iConfig.getParameter<
int>(
"electronN")),
48 nSelectedPfElectrons(iConfig.getParameter<
int>(
"pfElectronN")),
49 ptGlobalMuonMin(iConfig.getParameter<double>(
"globalMuonPtMin")),
50 ptTrackerMuonMin(iConfig.getParameter<double>(
"trackerMuonPtMin")),
51 nSelectedMuons(iConfig.getParameter<
int>(
"muonN")),
52 htMin(iConfig.getParameter<double>(
"HtMin")),
53 pfHtMin(iConfig.getParameter<double>(
"PFHtMin")),
54 htJetThreshold(iConfig.getParameter<double>(
"HtJetThreshold")),
55 pfHtJetThreshold(iConfig.getParameter<double>(
"PFHtJetThreshold")) {
97 int nElecPassingCut = 0;
101 float elpt = electron.
pt();
109 LogDebug(
"LeptonRecoSkim") <<
"elpt = " << elpt << endl;
118 int nPfElecPassingCut = 0;
125 float pfelpt = thePfCandidate.
pt();
129 LogDebug(
"LeptonRecoSkim") <<
"pfelpt = " << pfelpt << endl;
137 int nMuonPassingCut = 0;
148 muonpt =
max(siTrack->pt(), globalTrack->pt());
151 muonpt = globalTrack->pt();
154 muonpt = siTrack->pt();
160 if (muonpt > ptMuonMin)
162 LogDebug(
"RecoSelectorCuts") <<
"muonpt = " << muonpt << endl;
const reco::CaloJetCollection * theCaloJetCollection
edm::InputTag m_ebRecHitsSrc
void handleObjects(const edm::Event &, const edm::EventSetup &iSetup)
virtual TrackRef innerTrack() const
edm::InputTag m_eeRecHitsSrc
bool filter(edm::Event &, const edm::EventSetup &) override
bool usePfElectronSelection
const reco::PFCandidateCollection * thePfCandidateCollection
double pt() const final
transverse momentum
edm::InputTag m_pfelectronSrc
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
edm::InputTag m_pfjetsSrc
bool isTrackerMuon() const override
#define DEFINE_FWK_MODULE(type)
const reco::GsfElectronCollection * theElectronCollection
bool isGlobalMuon() const override
bool useElectronSelection
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
bool isNull() const
Checks for null.
T const * product() const
const reco::MuonCollection * theMuonCollection
Particle reconstructed by the particle flow algorithm.
const EcalRecHitCollection * theEcalBarrelCollection
reco::GsfTrackRef gsfTrackRef() const
~LeptonRecoSkim() override
LeptonRecoSkim(const edm::ParameterSet &)
const reco::PFJetCollection * thePFJetCollection
edm::InputTag m_electronSrc
virtual ParticleType particleId() const
T const * product() const
const CaloGeometry * theCaloGeometry
const CaloTopology * theCaloTopology
const EcalRecHitCollection * theEcalEndcapCollection
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector