CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
LeptonRecoSkim Class Reference

#include <Configuration/Skimming/src/LeptonRecoSkim.cc>

Inheritance diagram for LeptonRecoSkim:
edm::EDFilter edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

 LeptonRecoSkim (const edm::ParameterSet &)
 
 ~LeptonRecoSkim () override
 
- Public Member Functions inherited from edm::EDFilter
 EDFilter ()
 
SerialTaskQueueglobalLuminosityBlocksQueue ()
 
SerialTaskQueueglobalRunsQueue ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDFilter () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
std::vector< bool > const & recordProvenanceList () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~ProducerBase () noexcept(false) override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void beginJob () override
 
void endJob () override
 
bool filter (edm::Event &, const edm::EventSetup &) override
 
void handleObjects (const edm::Event &, const edm::EventSetup &iSetup)
 

Private Attributes

bool ElectronCutPassed
 
std::string filterName
 
bool firstEvent
 
edm::InputTag hltLabel
 
bool HtCutPassed
 
double htJetThreshold
 
double htMin
 
edm::InputTag m_ebRecHitsSrc
 
edm::InputTag m_eeRecHitsSrc
 
edm::InputTag m_electronSrc
 
edm::InputTag m_jetsSrc
 
edm::InputTag m_muonSrc
 
edm::InputTag m_pfelectronSrc
 
edm::InputTag m_pfjetsSrc
 
bool MuonCutPassed
 
int NeventsFiltered
 
int NeventsTotal
 
int NHltDiMu3
 
int NHltMu9
 
int NmvaElectrons
 
int nSelectedElectrons
 
int nSelectedMuons
 
int nSelectedPfElectrons
 
int NtotalElectrons
 
bool PfElectronCutPassed
 
bool PFHtCutPassed
 
double pfHtJetThreshold
 
double pfHtMin
 
double ptElecMin
 
double ptGlobalMuonMin
 
double ptPfElecMin
 
double ptTrackerMuonMin
 
const CaloGeometrytheCaloGeometry
 
const reco::CaloJetCollectiontheCaloJetCollection
 
const CaloTopologytheCaloTopology
 
const EcalRecHitCollectiontheEcalBarrelCollection
 
const EcalRecHitCollectiontheEcalEndcapCollection
 
const reco::GsfElectronCollectiontheElectronCollection
 
const reco::MuonCollectiontheMuonCollection
 
const reco::PFCandidateCollectionthePfCandidateCollection
 
const reco::PFJetCollectionthePFJetCollection
 
bool useElectronSelection
 
bool useHtSelection
 
bool useMuonSelection
 
bool usePfElectronSelection
 
bool usePFHtSelection
 

Additional Inherited Members

- Public Types inherited from edm::EDFilter
typedef EDFilter ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex > >
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::EDFilter
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
static bool wantsGlobalLuminosityBlocks ()
 
static bool wantsGlobalRuns ()
 
static bool wantsInputProcessBlocks ()
 
static bool wantsProcessBlocks ()
 
static bool wantsStreamLuminosityBlocks ()
 
static bool wantsStreamRuns ()
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 

Detailed Description

Description: [one line class summary]

Implementation: [Notes on implementation]

Definition at line 57 of file LeptonRecoSkim.h.

Constructor & Destructor Documentation

◆ LeptonRecoSkim()

LeptonRecoSkim::LeptonRecoSkim ( const edm::ParameterSet iConfig)
explicit

Definition at line 30 of file LeptonRecoSkim.cc.

31  : hltLabel(iConfig.getParameter<edm::InputTag>("HltLabel")),
32  filterName(iConfig.getParameter<std::string>("@module_label")),
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")) {
56  NeventsTotal = 0;
57  NeventsFiltered = 0;
58  NHltMu9 = 0;
59  NHltDiMu3 = 0;
60 
61  NtotalElectrons = 0;
62  NmvaElectrons = 0;
63 }

References NeventsFiltered, NeventsTotal, NHltDiMu3, NHltMu9, NmvaElectrons, and NtotalElectrons.

◆ ~LeptonRecoSkim()

LeptonRecoSkim::~LeptonRecoSkim ( )
override

Definition at line 65 of file LeptonRecoSkim.cc.

65  {
66  // do anything here that needs to be done at desctruction time
67  // (e.g. close files, deallocate resources etc.)
68 }

Member Function Documentation

◆ beginJob()

void LeptonRecoSkim::beginJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDFilter.

Definition at line 203 of file LeptonRecoSkim.cc.

203 { firstEvent = true; }

References firstEvent.

◆ endJob()

void LeptonRecoSkim::endJob ( void  )
overrideprivatevirtual

Reimplemented from edm::EDFilter.

Definition at line 206 of file LeptonRecoSkim.cc.

206  {
207  cout << "Filter Name = " << filterName << endl;
208  cout << "Total number of events = " << NeventsTotal << endl;
209  cout << "Total HLT_Mu9 = " << NHltMu9 << endl;
210  cout << "Total HLT_DoubleMu3 = " << NHltDiMu3 << endl;
211  cout << "Filtered events = " << NeventsFiltered << endl;
212  cout << "Filter Efficiency = " << (float)NeventsFiltered / (float)NeventsTotal << endl;
213  cout << endl;
214  cout << "N total electrons = " << NtotalElectrons << endl;
215  cout << "N mva>-0.1 electrons = " << NmvaElectrons << endl;
216  cout << endl;
217  cout << endl;
218 }

References gather_cfg::cout, filterName, dqmMemoryStats::float, NeventsFiltered, NeventsTotal, NHltDiMu3, NHltMu9, NmvaElectrons, and NtotalElectrons.

◆ filter()

bool LeptonRecoSkim::filter ( edm::Event iEvent,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements edm::EDFilter.

Definition at line 75 of file LeptonRecoSkim.cc.

75  {
76  bool accept = false;
77 
78  NeventsTotal++;
79 
80  ElectronCutPassed = false;
81  PfElectronCutPassed = false;
82  MuonCutPassed = false;
83  HtCutPassed = false;
84  PFHtCutPassed = false;
85 
86  // edm::Handle<TriggerResults> trhv;
87  // iEvent.getByLabel(hltLabel,trhv);
88 
89  // const edm::TriggerNames& triggerNames_ = iEvent.triggerNames(*trhv);
90 
91  // if(trhv->at(triggerNames_.triggerIndex("HLT_Mu9")).accept()) NHltMu9++;
92  // if(trhv->at(triggerNames_.triggerIndex("HLT_DoubleMu3")).accept()) NHltDiMu3++;
93 
94  this->handleObjects(iEvent, iSetup);
95 
97  int nElecPassingCut = 0;
98  for (unsigned int i = 0; i < theElectronCollection->size(); i++) {
99  GsfElectron electron = (*theElectronCollection)[i];
100  // if (electron.ecalDrivenSeed()) {
101  float elpt = electron.pt();
102  // if (electron.sigmaIetaIeta() < 0.002) continue;
103  if (elpt > ptElecMin) {
104  NtotalElectrons++;
105  nElecPassingCut++;
106  if (electron.mva_e_pi() > -0.1)
107  NmvaElectrons++;
108  }
109  LogDebug("LeptonRecoSkim") << "elpt = " << elpt << endl;
110  // } // closes if (electron.ecalDrivenSeed()) {
111  }
112  if (nElecPassingCut >= nSelectedElectrons)
113  ElectronCutPassed = true;
114  } else
115  ElectronCutPassed = true;
116 
118  int nPfElecPassingCut = 0;
119  for (unsigned int i = 0; i < thePfCandidateCollection->size(); i++) {
120  const reco::PFCandidate& thePfCandidate = (*thePfCandidateCollection)[i];
121  if (thePfCandidate.particleId() != reco::PFCandidate::e)
122  continue;
123  if (thePfCandidate.gsfTrackRef().isNull())
124  continue;
125  float pfelpt = thePfCandidate.pt();
126  // if (electron.sigmaIetaIeta() < 0.002) continue;
127  if (pfelpt > ptPfElecMin)
128  nPfElecPassingCut++;
129  LogDebug("LeptonRecoSkim") << "pfelpt = " << pfelpt << endl;
130  }
131  if (nPfElecPassingCut >= nSelectedPfElectrons)
132  PfElectronCutPassed = true;
133  } else
134  PfElectronCutPassed = true;
135 
136  if (useMuonSelection) {
137  int nMuonPassingCut = 0;
138  for (unsigned int i = 0; i < theMuonCollection->size(); i++) {
139  Muon muon = (*theMuonCollection)[i];
140  if (!(muon.isGlobalMuon() || muon.isTrackerMuon()))
141  continue;
142  const TrackRef siTrack = muon.innerTrack();
143  const TrackRef globalTrack = muon.globalTrack();
144  float muonpt;
145  float ptMuonMin;
146  // if (siTrack.isNonnull() && globalTrack.isNonnull()) {
147  if (muon.isGlobalMuon() && muon.isTrackerMuon()) {
148  muonpt = max(siTrack->pt(), globalTrack->pt());
149  ptMuonMin = ptGlobalMuonMin;
150  } else if (muon.isGlobalMuon() && !(muon.isTrackerMuon())) {
151  muonpt = globalTrack->pt();
152  ptMuonMin = ptGlobalMuonMin;
153  } else if (muon.isTrackerMuon() && !(muon.isGlobalMuon())) {
154  muonpt = siTrack->pt();
155  ptMuonMin = ptTrackerMuonMin;
156  } else {
157  muonpt = 0; // if we get here this is a STA only muon
158  ptMuonMin = 999999.;
159  }
160  if (muonpt > ptMuonMin)
161  nMuonPassingCut++;
162  LogDebug("RecoSelectorCuts") << "muonpt = " << muonpt << endl;
163  }
164  if (nMuonPassingCut >= nSelectedMuons)
165  MuonCutPassed = true;
166  } else
167  MuonCutPassed = true;
168 
169  if (useHtSelection) {
170  double Ht = 0;
171  for (unsigned int i = 0; i < theCaloJetCollection->size(); i++) {
172  // if((*theCaloJetCollection)[i].eta()<2.6 && (*theCaloJetCollection)[i].emEnergyFraction() <= 0.01) continue;
173  if ((*theCaloJetCollection)[i].pt() > htJetThreshold)
174  Ht += (*theCaloJetCollection)[i].pt();
175  }
176  if (Ht > htMin)
177  HtCutPassed = true;
178  } else
179  HtCutPassed = true;
180 
181  if (usePFHtSelection) {
182  double PFHt = 0;
183  for (unsigned int i = 0; i < thePFJetCollection->size(); i++) {
184  if ((*thePFJetCollection)[i].pt() > pfHtJetThreshold)
185  PFHt += (*thePFJetCollection)[i].pt();
186  }
187  if (PFHt > pfHtMin)
188  PFHtCutPassed = true;
189  } else
190  PFHtCutPassed = true;
191 
193  accept = true;
194 
195  if (accept)
196  NeventsFiltered++;
197 
198  firstEvent = false;
199  return accept;
200 }

References accept(), reco::PFCandidate::e, metsig::electron, ElectronCutPassed, firstEvent, cutBasedMuonId_MuonPOG_V0_cff::globalTrack, reco::PFCandidate::gsfTrackRef(), handleObjects(), HtCutPassed, htJetThreshold, htMin, mps_fire::i, edm::Ref< C, T, F >::isNull(), LogDebug, SiStripPI::max, MuonCutPassed, NeventsFiltered, NeventsTotal, NmvaElectrons, nSelectedElectrons, nSelectedMuons, nSelectedPfElectrons, NtotalElectrons, reco::PFCandidate::particleId(), PfElectronCutPassed, PFHtCutPassed, pfHtJetThreshold, pfHtMin, reco::LeafCandidate::pt(), ptElecMin, ptGlobalMuonMin, ptPfElecMin, ptTrackerMuonMin, theCaloJetCollection, theElectronCollection, theMuonCollection, thePfCandidateCollection, thePFJetCollection, useElectronSelection, useHtSelection, useMuonSelection, usePfElectronSelection, and usePFHtSelection.

◆ handleObjects()

void LeptonRecoSkim::handleObjects ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
private

Definition at line 220 of file LeptonRecoSkim.cc.

220  {
221  //Get the electrons
222  Handle<GsfElectronCollection> theElectronCollectionHandle;
223  iEvent.getByLabel(m_electronSrc, theElectronCollectionHandle);
224  theElectronCollection = theElectronCollectionHandle.product();
225 
226  //Get the pf electrons
227  Handle<reco::PFCandidateCollection> thePfCandidateHandle;
228  iEvent.getByLabel(m_pfelectronSrc, thePfCandidateHandle);
229  thePfCandidateCollection = thePfCandidateHandle.product();
230 
231  //Get the Muons
232  Handle<MuonCollection> theMuonCollectionHandle;
233  iEvent.getByLabel(m_muonSrc, theMuonCollectionHandle);
234  theMuonCollection = theMuonCollectionHandle.product();
235 
236  //Get the CaloJets
237  Handle<CaloJetCollection> theCaloJetCollectionHandle;
238  iEvent.getByLabel(m_jetsSrc, theCaloJetCollectionHandle);
239  theCaloJetCollection = theCaloJetCollectionHandle.product();
240 
241  //Get the PfJets
242  Handle<PFJetCollection> thePFJetCollectionHandle;
243  iEvent.getByLabel(m_pfjetsSrc, thePFJetCollectionHandle);
244  thePFJetCollection = thePFJetCollectionHandle.product();
245 
246  //Get the ECAL rechhits to clean the spikes
247  // Get EB RecHits
248  edm::Handle<EcalRecHitCollection> ebRecHitsHandle;
249  iEvent.getByLabel(m_ebRecHitsSrc, ebRecHitsHandle);
250  theEcalBarrelCollection = ebRecHitsHandle.product();
251  // Get EE RecHits
252  edm::Handle<EcalRecHitCollection> eeRecHitsHandle;
253  iEvent.getByLabel(m_eeRecHitsSrc, eeRecHitsHandle);
254  theEcalEndcapCollection = eeRecHitsHandle.product();
255 
256  // Get topology for spike cleaning
257  edm::ESHandle<CaloGeometry> geometryHandle;
258  iSetup.get<CaloGeometryRecord>().get(geometryHandle);
259  theCaloGeometry = geometryHandle.product();
260  // theCaloBarrelSubdetTopology = new EcalBarrelTopology(geometryHandle);
261  // theCaloEndcapSubdetTopology = new EcalEndcapTopology(geometryHandle);
262 
263  edm::ESHandle<CaloTopology> pTopology;
264  iSetup.get<CaloTopologyRecord>().get(pTopology);
265  theCaloTopology = pTopology.product();
266 }

References edm::EventSetup::get(), get, iEvent, m_ebRecHitsSrc, m_eeRecHitsSrc, m_electronSrc, m_jetsSrc, m_muonSrc, m_pfelectronSrc, m_pfjetsSrc, edm::Handle< T >::product(), edm::ESHandle< T >::product(), theCaloGeometry, theCaloJetCollection, theCaloTopology, theEcalBarrelCollection, theEcalEndcapCollection, theElectronCollection, theMuonCollection, thePfCandidateCollection, and thePFJetCollection.

Referenced by filter().

Member Data Documentation

◆ ElectronCutPassed

bool LeptonRecoSkim::ElectronCutPassed
private

Definition at line 97 of file LeptonRecoSkim.h.

Referenced by filter().

◆ filterName

std::string LeptonRecoSkim::filterName
private

Definition at line 70 of file LeptonRecoSkim.h.

Referenced by endJob().

◆ firstEvent

bool LeptonRecoSkim::firstEvent
private

Definition at line 89 of file LeptonRecoSkim.h.

Referenced by beginJob(), filter(), looper.Looper::loop(), and Printer.Printer::process().

◆ hltLabel

edm::InputTag LeptonRecoSkim::hltLabel
private

Definition at line 69 of file LeptonRecoSkim.h.

◆ HtCutPassed

bool LeptonRecoSkim::HtCutPassed
private

Definition at line 100 of file LeptonRecoSkim.h.

Referenced by filter().

◆ htJetThreshold

double LeptonRecoSkim::htJetThreshold
private

Definition at line 112 of file LeptonRecoSkim.h.

Referenced by filter().

◆ htMin

double LeptonRecoSkim::htMin
private

Definition at line 110 of file LeptonRecoSkim.h.

Referenced by filter().

◆ m_ebRecHitsSrc

edm::InputTag LeptonRecoSkim::m_ebRecHitsSrc
private

Definition at line 76 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ m_eeRecHitsSrc

edm::InputTag LeptonRecoSkim::m_eeRecHitsSrc
private

Definition at line 77 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ m_electronSrc

edm::InputTag LeptonRecoSkim::m_electronSrc
private

Definition at line 71 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ m_jetsSrc

edm::InputTag LeptonRecoSkim::m_jetsSrc
private

Definition at line 74 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ m_muonSrc

edm::InputTag LeptonRecoSkim::m_muonSrc
private

Definition at line 73 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ m_pfelectronSrc

edm::InputTag LeptonRecoSkim::m_pfelectronSrc
private

Definition at line 72 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ m_pfjetsSrc

edm::InputTag LeptonRecoSkim::m_pfjetsSrc
private

Definition at line 75 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ MuonCutPassed

bool LeptonRecoSkim::MuonCutPassed
private

Definition at line 99 of file LeptonRecoSkim.h.

Referenced by filter().

◆ NeventsFiltered

int LeptonRecoSkim::NeventsFiltered
private

Definition at line 116 of file LeptonRecoSkim.h.

Referenced by endJob(), filter(), and LeptonRecoSkim().

◆ NeventsTotal

int LeptonRecoSkim::NeventsTotal
private

Definition at line 115 of file LeptonRecoSkim.h.

Referenced by endJob(), filter(), and LeptonRecoSkim().

◆ NHltDiMu3

int LeptonRecoSkim::NHltDiMu3
private

Definition at line 118 of file LeptonRecoSkim.h.

Referenced by endJob(), and LeptonRecoSkim().

◆ NHltMu9

int LeptonRecoSkim::NHltMu9
private

Definition at line 117 of file LeptonRecoSkim.h.

Referenced by endJob(), and LeptonRecoSkim().

◆ NmvaElectrons

int LeptonRecoSkim::NmvaElectrons
private

Definition at line 121 of file LeptonRecoSkim.h.

Referenced by endJob(), filter(), and LeptonRecoSkim().

◆ nSelectedElectrons

int LeptonRecoSkim::nSelectedElectrons
private

Definition at line 105 of file LeptonRecoSkim.h.

Referenced by filter().

◆ nSelectedMuons

int LeptonRecoSkim::nSelectedMuons
private

Definition at line 109 of file LeptonRecoSkim.h.

Referenced by filter().

◆ nSelectedPfElectrons

int LeptonRecoSkim::nSelectedPfElectrons
private

Definition at line 106 of file LeptonRecoSkim.h.

Referenced by filter().

◆ NtotalElectrons

int LeptonRecoSkim::NtotalElectrons
private

Definition at line 120 of file LeptonRecoSkim.h.

Referenced by endJob(), filter(), and LeptonRecoSkim().

◆ PfElectronCutPassed

bool LeptonRecoSkim::PfElectronCutPassed
private

Definition at line 98 of file LeptonRecoSkim.h.

Referenced by filter().

◆ PFHtCutPassed

bool LeptonRecoSkim::PFHtCutPassed
private

Definition at line 101 of file LeptonRecoSkim.h.

Referenced by filter().

◆ pfHtJetThreshold

double LeptonRecoSkim::pfHtJetThreshold
private

Definition at line 113 of file LeptonRecoSkim.h.

Referenced by filter().

◆ pfHtMin

double LeptonRecoSkim::pfHtMin
private

Definition at line 111 of file LeptonRecoSkim.h.

Referenced by filter().

◆ ptElecMin

double LeptonRecoSkim::ptElecMin
private

Definition at line 103 of file LeptonRecoSkim.h.

Referenced by filter().

◆ ptGlobalMuonMin

double LeptonRecoSkim::ptGlobalMuonMin
private

Definition at line 107 of file LeptonRecoSkim.h.

Referenced by filter().

◆ ptPfElecMin

double LeptonRecoSkim::ptPfElecMin
private

Definition at line 104 of file LeptonRecoSkim.h.

Referenced by filter().

◆ ptTrackerMuonMin

double LeptonRecoSkim::ptTrackerMuonMin
private

Definition at line 108 of file LeptonRecoSkim.h.

Referenced by filter().

◆ theCaloGeometry

const CaloGeometry* LeptonRecoSkim::theCaloGeometry
private

Definition at line 87 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ theCaloJetCollection

const reco::CaloJetCollection* LeptonRecoSkim::theCaloJetCollection
private

Definition at line 82 of file LeptonRecoSkim.h.

Referenced by filter(), and handleObjects().

◆ theCaloTopology

const CaloTopology* LeptonRecoSkim::theCaloTopology
private

Definition at line 86 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ theEcalBarrelCollection

const EcalRecHitCollection* LeptonRecoSkim::theEcalBarrelCollection
private

Definition at line 84 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ theEcalEndcapCollection

const EcalRecHitCollection* LeptonRecoSkim::theEcalEndcapCollection
private

Definition at line 85 of file LeptonRecoSkim.h.

Referenced by handleObjects().

◆ theElectronCollection

const reco::GsfElectronCollection* LeptonRecoSkim::theElectronCollection
private

Definition at line 79 of file LeptonRecoSkim.h.

Referenced by filter(), and handleObjects().

◆ theMuonCollection

const reco::MuonCollection* LeptonRecoSkim::theMuonCollection
private

Definition at line 81 of file LeptonRecoSkim.h.

Referenced by filter(), and handleObjects().

◆ thePfCandidateCollection

const reco::PFCandidateCollection* LeptonRecoSkim::thePfCandidateCollection
private

Definition at line 80 of file LeptonRecoSkim.h.

Referenced by filter(), and handleObjects().

◆ thePFJetCollection

const reco::PFJetCollection* LeptonRecoSkim::thePFJetCollection
private

Definition at line 83 of file LeptonRecoSkim.h.

Referenced by filter(), and handleObjects().

◆ useElectronSelection

bool LeptonRecoSkim::useElectronSelection
private

Definition at line 91 of file LeptonRecoSkim.h.

Referenced by filter().

◆ useHtSelection

bool LeptonRecoSkim::useHtSelection
private

Definition at line 94 of file LeptonRecoSkim.h.

Referenced by filter().

◆ useMuonSelection

bool LeptonRecoSkim::useMuonSelection
private

Definition at line 93 of file LeptonRecoSkim.h.

Referenced by filter().

◆ usePfElectronSelection

bool LeptonRecoSkim::usePfElectronSelection
private

Definition at line 92 of file LeptonRecoSkim.h.

Referenced by filter().

◆ usePFHtSelection

bool LeptonRecoSkim::usePFHtSelection
private

Definition at line 95 of file LeptonRecoSkim.h.

Referenced by filter().

LeptonRecoSkim::ptTrackerMuonMin
double ptTrackerMuonMin
Definition: LeptonRecoSkim.h:108
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
cutBasedMuonId_MuonPOG_V0_cff.globalTrack
globalTrack
Definition: cutBasedMuonId_MuonPOG_V0_cff.py:135
mps_fire.i
i
Definition: mps_fire.py:428
dqmMemoryStats.float
float
Definition: dqmMemoryStats.py:127
LeptonRecoSkim::usePfElectronSelection
bool usePfElectronSelection
Definition: LeptonRecoSkim.h:92
LeptonRecoSkim::theCaloTopology
const CaloTopology * theCaloTopology
Definition: LeptonRecoSkim.h:86
LeptonRecoSkim::firstEvent
bool firstEvent
Definition: LeptonRecoSkim.h:89
edm::Handle::product
T const * product() const
Definition: Handle.h:70
LeptonRecoSkim::PFHtCutPassed
bool PFHtCutPassed
Definition: LeptonRecoSkim.h:101
reco::PFCandidate::e
Definition: PFCandidate.h:47
muon
Definition: MuonCocktails.h:17
LeptonRecoSkim::pfHtMin
double pfHtMin
Definition: LeptonRecoSkim.h:111
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
edm::Ref::isNull
bool isNull() const
Checks for null.
Definition: Ref.h:235
gather_cfg.cout
cout
Definition: gather_cfg.py:144
LeptonRecoSkim::NHltMu9
int NHltMu9
Definition: LeptonRecoSkim.h:117
LeptonRecoSkim::NtotalElectrons
int NtotalElectrons
Definition: LeptonRecoSkim.h:120
CaloTopologyRecord
Definition: CaloTopologyRecord.h:10
reco::LeafCandidate::pt
double pt() const final
transverse momentum
Definition: LeafCandidate.h:146
LeptonRecoSkim::m_eeRecHitsSrc
edm::InputTag m_eeRecHitsSrc
Definition: LeptonRecoSkim.h:77
edm::Handle
Definition: AssociativeIterator.h:50
Muon
Definition: Muon.py:1
edm::Ref< TrackCollection >
LeptonRecoSkim::ElectronCutPassed
bool ElectronCutPassed
Definition: LeptonRecoSkim.h:97
LeptonRecoSkim::theCaloGeometry
const CaloGeometry * theCaloGeometry
Definition: LeptonRecoSkim.h:87
LeptonRecoSkim::pfHtJetThreshold
double pfHtJetThreshold
Definition: LeptonRecoSkim.h:113
accept
bool accept(const edm::Event &event, const edm::TriggerResults &triggerTable, const std::string &triggerPath)
Definition: TopDQMHelpers.h:30
LeptonRecoSkim::thePFJetCollection
const reco::PFJetCollection * thePFJetCollection
Definition: LeptonRecoSkim.h:83
edm::EventSetup::get
T get() const
Definition: EventSetup.h:80
LeptonRecoSkim::MuonCutPassed
bool MuonCutPassed
Definition: LeptonRecoSkim.h:99
metsig::electron
Definition: SignAlgoResolutions.h:48
edm::ESHandle< CaloGeometry >
reco::GsfElectron
Definition: GsfElectron.h:35
LeptonRecoSkim::filterName
std::string filterName
Definition: LeptonRecoSkim.h:70
LeptonRecoSkim::nSelectedMuons
int nSelectedMuons
Definition: LeptonRecoSkim.h:109
LeptonRecoSkim::handleObjects
void handleObjects(const edm::Event &, const edm::EventSetup &iSetup)
Definition: LeptonRecoSkim.cc:220
LeptonRecoSkim::theElectronCollection
const reco::GsfElectronCollection * theElectronCollection
Definition: LeptonRecoSkim.h:79
LeptonRecoSkim::m_muonSrc
edm::InputTag m_muonSrc
Definition: LeptonRecoSkim.h:73
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LeptonRecoSkim::useMuonSelection
bool useMuonSelection
Definition: LeptonRecoSkim.h:93
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
reco::PFCandidate::gsfTrackRef
reco::GsfTrackRef gsfTrackRef() const
Definition: PFCandidate.cc:440
LeptonRecoSkim::thePfCandidateCollection
const reco::PFCandidateCollection * thePfCandidateCollection
Definition: LeptonRecoSkim.h:80
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
reco::PFCandidate::particleId
virtual ParticleType particleId() const
Definition: PFCandidate.h:367
LeptonRecoSkim::htJetThreshold
double htJetThreshold
Definition: LeptonRecoSkim.h:112
LeptonRecoSkim::useHtSelection
bool useHtSelection
Definition: LeptonRecoSkim.h:94
iEvent
int iEvent
Definition: GenABIO.cc:224
LeptonRecoSkim::nSelectedPfElectrons
int nSelectedPfElectrons
Definition: LeptonRecoSkim.h:106
LeptonRecoSkim::theCaloJetCollection
const reco::CaloJetCollection * theCaloJetCollection
Definition: LeptonRecoSkim.h:82
LeptonRecoSkim::NeventsFiltered
int NeventsFiltered
Definition: LeptonRecoSkim.h:116
LeptonRecoSkim::ptPfElecMin
double ptPfElecMin
Definition: LeptonRecoSkim.h:104
get
#define get
LeptonRecoSkim::PfElectronCutPassed
bool PfElectronCutPassed
Definition: LeptonRecoSkim.h:98
LeptonRecoSkim::m_pfjetsSrc
edm::InputTag m_pfjetsSrc
Definition: LeptonRecoSkim.h:75
LeptonRecoSkim::NeventsTotal
int NeventsTotal
Definition: LeptonRecoSkim.h:115
LeptonRecoSkim::NHltDiMu3
int NHltDiMu3
Definition: LeptonRecoSkim.h:118
LeptonRecoSkim::theEcalEndcapCollection
const EcalRecHitCollection * theEcalEndcapCollection
Definition: LeptonRecoSkim.h:85
LeptonRecoSkim::m_pfelectronSrc
edm::InputTag m_pfelectronSrc
Definition: LeptonRecoSkim.h:72
LeptonRecoSkim::ptElecMin
double ptElecMin
Definition: LeptonRecoSkim.h:103
LeptonRecoSkim::m_jetsSrc
edm::InputTag m_jetsSrc
Definition: LeptonRecoSkim.h:74
LeptonRecoSkim::usePFHtSelection
bool usePFHtSelection
Definition: LeptonRecoSkim.h:95
LeptonRecoSkim::htMin
double htMin
Definition: LeptonRecoSkim.h:110
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
LeptonRecoSkim::theEcalBarrelCollection
const EcalRecHitCollection * theEcalBarrelCollection
Definition: LeptonRecoSkim.h:84
LeptonRecoSkim::NmvaElectrons
int NmvaElectrons
Definition: LeptonRecoSkim.h:121
LeptonRecoSkim::nSelectedElectrons
int nSelectedElectrons
Definition: LeptonRecoSkim.h:105
reco::PFCandidate
Particle reconstructed by the particle flow algorithm.
Definition: PFCandidate.h:41
LeptonRecoSkim::hltLabel
edm::InputTag hltLabel
Definition: LeptonRecoSkim.h:69
LeptonRecoSkim::useElectronSelection
bool useElectronSelection
Definition: LeptonRecoSkim.h:91
LeptonRecoSkim::HtCutPassed
bool HtCutPassed
Definition: LeptonRecoSkim.h:100
LeptonRecoSkim::ptGlobalMuonMin
double ptGlobalMuonMin
Definition: LeptonRecoSkim.h:107
edm::InputTag
Definition: InputTag.h:15
LeptonRecoSkim::m_ebRecHitsSrc
edm::InputTag m_ebRecHitsSrc
Definition: LeptonRecoSkim.h:76
LeptonRecoSkim::m_electronSrc
edm::InputTag m_electronSrc
Definition: LeptonRecoSkim.h:71
LeptonRecoSkim::theMuonCollection
const reco::MuonCollection * theMuonCollection
Definition: LeptonRecoSkim.h:81