33 hltLabel(iConfig.getParameter<edm::
InputTag>(
"HltLabel")),
35 gsfElectronCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"electronCollection"))),
36 pfCandidateCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"pfElectronCollection"))),
37 muonCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"muonCollection"))),
38 caloJetCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"caloJetCollection"))),
39 pfJetCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"PFJetCollection"))),
40 ebRecHitCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"ecalBarrelRecHitsCollection"))),
41 eeRecHitCollectionToken_(consumes(iConfig.getParameter<edm::
InputTag>(
"ecalEndcapRecHitsCollection"))),
42 useElectronSelection(iConfig.getParameter<bool>(
"UseElectronSelection")),
43 usePfElectronSelection(iConfig.getParameter<bool>(
"UsePfElectronSelection")),
44 useMuonSelection(iConfig.getParameter<bool>(
"UseMuonSelection")),
45 useHtSelection(iConfig.getParameter<bool>(
"UseHtSelection")),
46 usePFHtSelection(iConfig.getParameter<bool>(
"UsePFHtSelection")),
47 ptElecMin(iConfig.getParameter<double>(
"electronPtMin")),
48 ptPfElecMin(iConfig.getParameter<double>(
"pfElectronPtMin")),
49 nSelectedElectrons(iConfig.getParameter<int>(
"electronN")),
50 nSelectedPfElectrons(iConfig.getParameter<int>(
"pfElectronN")),
51 ptGlobalMuonMin(iConfig.getParameter<double>(
"globalMuonPtMin")),
52 ptTrackerMuonMin(iConfig.getParameter<double>(
"trackerMuonPtMin")),
53 nSelectedMuons(iConfig.getParameter<int>(
"muonN")),
54 htMin(iConfig.getParameter<double>(
"HtMin")),
55 pfHtMin(iConfig.getParameter<double>(
"PFHtMin")),
56 htJetThreshold(iConfig.getParameter<double>(
"HtJetThreshold")),
57 pfHtJetThreshold(iConfig.getParameter<double>(
"PFHtJetThreshold")) {
99 int nElecPassingCut = 0;
103 float elpt = electron.
pt();
111 LogDebug(
"LeptonRecoSkim") <<
"elpt = " << elpt << endl;
120 int nPfElecPassingCut = 0;
127 float pfelpt = thePfCandidate.
pt();
131 LogDebug(
"LeptonRecoSkim") <<
"pfelpt = " << pfelpt << endl;
139 int nMuonPassingCut = 0;
150 muonpt =
max(siTrack->pt(), globalTrack->pt());
153 muonpt = globalTrack->pt();
156 muonpt = siTrack->pt();
162 if (muonpt > ptMuonMin)
164 LogDebug(
"RecoSelectorCuts") <<
"muonpt = " << muonpt << endl;
const reco::CaloJetCollection * theCaloJetCollection
edm::EDGetTokenT< reco::GsfElectronCollection > gsfElectronCollectionToken_
double pt() const final
transverse momentum
edm::EDGetTokenT< reco::CaloJetCollection > caloJetCollectionToken_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_CaloGeoToken
edm::EDGetTokenT< reco::PFCandidateCollection > pfCandidateCollectionToken_
void handleObjects(const edm::Event &, const edm::EventSetup &iSetup)
virtual TrackRef innerTrack() const
#define DEFINE_FWK_MODULE(type)
bool filter(edm::Event &, const edm::EventSetup &) override
bool usePfElectronSelection
const reco::PFCandidateCollection * thePfCandidateCollection
edm::EDGetTokenT< EcalRecHitCollection > eeRecHitCollectionToken_
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
bool isTrackerMuon() const override
bool getData(T &iHolder) const
const reco::GsfElectronCollection * theElectronCollection
bool useElectronSelection
bool get(ProductID const &oid, Handle< PROD > &result) const
edm::EDGetTokenT< reco::MuonCollection > muonCollectionToken_
Log< level::Warning, true > LogPrint
bool isNull() const
Checks for null.
edm::EDGetTokenT< EcalRecHitCollection > ebRecHitCollectionToken_
const reco::MuonCollection * theMuonCollection
Particle reconstructed by the particle flow algorithm.
const EcalRecHitCollection * theEcalBarrelCollection
reco::GsfTrackRef gsfTrackRef() const
const edm::ESGetToken< CaloTopology, CaloTopologyRecord > m_CaloTopoToken
~LeptonRecoSkim() override
LeptonRecoSkim(const edm::ParameterSet &)
const reco::PFJetCollection * thePFJetCollection
virtual ParticleType particleId() const
edm::EDGetTokenT< reco::PFJetCollection > pfJetCollectionToken_
bool isGlobalMuon() const override
const CaloGeometry * theCaloGeometry
const CaloTopology * theCaloTopology
const EcalRecHitCollection * theEcalEndcapCollection
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector