33 hltLabel(iConfig.getParameter<edm::
InputTag>(
"HltLabel")),
35 m_electronSrc(iConfig.getParameter<edm::
InputTag>(
"electronCollection")),
36 m_pfelectronSrc(iConfig.getParameter<edm::
InputTag>(
"pfElectronCollection")),
37 m_muonSrc(iConfig.getParameter<edm::
InputTag>(
"muonCollection")),
38 m_jetsSrc(iConfig.getParameter<edm::
InputTag>(
"caloJetCollection")),
39 m_pfjetsSrc(iConfig.getParameter<edm::
InputTag>(
"PFJetCollection")),
40 m_ebRecHitsSrc(iConfig.getParameter<edm::
InputTag>(
"ecalBarrelRecHitsCollection")),
41 m_eeRecHitsSrc(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"))
109 int nElecPassingCut = 0;
113 float elpt = electron.
pt();
120 LogDebug(
"LeptonRecoSkim") <<
"elpt = " << elpt << endl;
128 int nPfElecPassingCut = 0;
133 float pfelpt = thePfCandidate.
pt();
136 LogDebug(
"LeptonRecoSkim") <<
"pfelpt = " << pfelpt << endl;
145 int nMuonPassingCut = 0;
155 muonpt =
max(siTrack->pt(), globalTrack->pt());
159 muonpt = globalTrack->pt();
163 muonpt = siTrack->pt();
170 if(muonpt>ptMuonMin) nMuonPassingCut++;
171 LogDebug(
"RecoSelectorCuts") <<
"muonpt = " << muonpt << endl;
const reco::CaloJetCollection * theCaloJetCollection
virtual bool filter(edm::Event &, const edm::EventSetup &)
edm::InputTag m_ebRecHitsSrc
void handleObjects(const edm::Event &, const edm::EventSetup &iSetup)
virtual TrackRef innerTrack() const
#define DEFINE_FWK_MODULE(type)
bool isTrackerMuon() const
edm::InputTag m_eeRecHitsSrc
bool usePfElectronSelection
const reco::PFCandidateCollection * thePfCandidateCollection
bool isGlobalMuon() const
edm::InputTag m_pfelectronSrc
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
virtual double pt() const
transverse momentum
edm::InputTag m_pfjetsSrc
const reco::GsfElectronCollection * theElectronCollection
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
T const * product() const
Particle reconstructed by the particle flow algorithm.
const EcalRecHitCollection * theEcalBarrelCollection
reco::GsfTrackRef gsfTrackRef() const
LeptonRecoSkim(const edm::ParameterSet &)
const reco::PFJetCollection * thePFJetCollection
edm::InputTag m_electronSrc
virtual ParticleType particleId() const
const CaloGeometry * theCaloGeometry
const CaloTopology * theCaloTopology
const EcalRecHitCollection * theEcalEndcapCollection
virtual TrackRef globalTrack() const
reference to Track reconstructed in both tracked and muon detector