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;
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;
142 if (!(
muon.isGlobalMuon() ||
muon.isTrackerMuon()))
149 if (
muon.isGlobalMuon() &&
muon.isTrackerMuon()) {
152 }
else if (
muon.isGlobalMuon() && !(
muon.isTrackerMuon())) {
155 }
else if (
muon.isTrackerMuon() && !(
muon.isGlobalMuon())) {
156 muonpt = siTrack->pt();
162 if (muonpt > ptMuonMin)
164 LogDebug(
"RecoSelectorCuts") <<
"muonpt = " << muonpt << endl;
reco::GsfTrackRef gsfTrackRef() const
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)
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)
const reco::GsfElectronCollection * theElectronCollection
bool useElectronSelection
edm::EDGetTokenT< reco::MuonCollection > muonCollectionToken_
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
bool isNull() const
Checks for null.
Log< level::Warning, true > LogPrint
edm::EDGetTokenT< EcalRecHitCollection > ebRecHitCollectionToken_
const reco::MuonCollection * theMuonCollection
Particle reconstructed by the particle flow algorithm.
const EcalRecHitCollection * theEcalBarrelCollection
const edm::ESGetToken< CaloTopology, CaloTopologyRecord > m_CaloTopoToken
~LeptonRecoSkim() override
LeptonRecoSkim(const edm::ParameterSet &)
const reco::PFJetCollection * thePFJetCollection
edm::EDGetTokenT< reco::PFJetCollection > pfJetCollectionToken_
const CaloGeometry * theCaloGeometry
const CaloTopology * theCaloTopology
const EcalRecHitCollection * theEcalEndcapCollection
virtual ParticleType particleId() const