CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
GsfEleFull5x5SigmaIEtaIEtaWithSatCut Class Reference
Inheritance diagram for GsfEleFull5x5SigmaIEtaIEtaWithSatCut:
CutApplicatorWithEventContentBase CutApplicatorBase candidate_functions::CandidateCut

Public Member Functions

CandidateType candidateType () const override final
 
void getEventContent (const edm::EventBase &) override final
 
 GsfEleFull5x5SigmaIEtaIEtaWithSatCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const override final
 
void setConsumes (edm::ConsumesCollector &) override final
 
double value (const reco::CandidatePtr &cand) const override final
 
- Public Member Functions inherited from CutApplicatorWithEventContentBase
 CutApplicatorWithEventContentBase ()
 
 CutApplicatorWithEventContentBase (const edm::ParameterSet &c)
 
 CutApplicatorWithEventContentBase (const CutApplicatorWithEventContentBase &)=delete
 
CutApplicatorWithEventContentBaseoperator= (const CutApplicatorWithEventContentBase &)=delete
 
virtual ~CutApplicatorWithEventContentBase ()
 Destructor. More...
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
virtual const std::string & name () const
 
virtual result_type operator() (const argument_type &) const final
 
virtual result_type operator() (const pat::ElectronPtr &) const
 
virtual result_type operator() (const reco::PhotonPtr &) const
 
virtual result_type operator() (const pat::PhotonPtr &) const
 
virtual result_type operator() (const reco::MuonPtr &) const
 
virtual result_type operator() (const pat::MuonPtr &) const
 
virtual result_type operator() (const reco::PFTauPtr &) const
 
virtual result_type operator() (const pat::TauPtr &) const
 
CutApplicatorBaseoperator= (const CutApplicatorBase &)=delete
 
virtual ~CutApplicatorBase ()
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

EBEECutValuesInt maxNrSatCrysIn5x5Cut_
 
EBEECutValues maxSigmaIEtaIEtaCut_
 
edm::Handle< edm::ValueMap< int > > nrSatCrysValueMap_
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 
- Protected Attributes inherited from CutApplicatorWithEventContentBase
std::unordered_map< std::string, edm::InputTagcontentTags_
 
std::unordered_map< std::string, edm::EDGetTokencontentTokens_
 

Detailed Description

Definition at line 6 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

Constructor & Destructor Documentation

GsfEleFull5x5SigmaIEtaIEtaWithSatCut::GsfEleFull5x5SigmaIEtaIEtaWithSatCut ( const edm::ParameterSet c)

Definition at line 32 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

References CutApplicatorWithEventContentBase::contentTags_, and edm::ParameterSet::getParameter().

32  :
34  maxSigmaIEtaIEtaCut_(params,"maxSigmaIEtaIEta"),
35 
36  maxNrSatCrysIn5x5Cut_(params,"maxNrSatCrysIn5x5"){
37  contentTags_.emplace("nrSatCrysValueMap",params.getParameter<edm::InputTag>("nrSatCrysValueMap"));
38 }
std::unordered_map< std::string, edm::InputTag > contentTags_

Member Function Documentation

CandidateType GsfEleFull5x5SigmaIEtaIEtaWithSatCut::candidateType ( ) const
inlinefinaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 17 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

References CutApplicatorBase::ELECTRON.

17  {
18  return ELECTRON;
19  }
void GsfEleFull5x5SigmaIEtaIEtaWithSatCut::getEventContent ( const edm::EventBase ev)
finaloverridevirtual

Implements CutApplicatorWithEventContentBase.

Definition at line 44 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

References CutApplicatorWithEventContentBase::contentTags_, edm::EventBase::getByLabel(), nrSatCrysValueMap_, and operator()().

44  {
45  ev.getByLabel(contentTags_["nrSatCrysValueMap"],nrSatCrysValueMap_);
46 
47 }
std::unordered_map< std::string, edm::InputTag > contentTags_
bool getByLabel(InputTag const &, Handle< T > &) const
Definition: EventBase.h:94
edm::Handle< edm::ValueMap< int > > nrSatCrysValueMap_
CutApplicatorBase::result_type GsfEleFull5x5SigmaIEtaIEtaWithSatCut::operator() ( const reco::GsfElectronPtr cand) const
finaloverridevirtual
void GsfEleFull5x5SigmaIEtaIEtaWithSatCut::setConsumes ( edm::ConsumesCollector cc)
finaloverridevirtual

Implements CutApplicatorWithEventContentBase.

Definition at line 40 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

References edm::ConsumesCollector::consumes(), CutApplicatorWithEventContentBase::contentTags_, and CutApplicatorWithEventContentBase::contentTokens_.

40  {
41  contentTokens_.emplace("nrSatCrysValueMap",cc.consumes<edm::ValueMap<int> >(contentTags_["nrSatCrysValueMap"]));
42 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
std::unordered_map< std::string, edm::EDGetToken > contentTokens_
std::unordered_map< std::string, edm::InputTag > contentTags_
double GsfEleFull5x5SigmaIEtaIEtaWithSatCut::value ( const reco::CandidatePtr cand) const
finaloverridevirtual

Implements candidate_functions::CandidateCut.

Definition at line 60 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

References reco::GsfElectron::full5x5_sigmaIetaIeta().

Referenced by operator()().

60  {
61  reco::GsfElectronPtr ele(cand);
62  return ele->full5x5_sigmaIetaIeta();
63 }

Member Data Documentation

EBEECutValuesInt GsfEleFull5x5SigmaIEtaIEtaWithSatCut::maxNrSatCrysIn5x5Cut_
private

Definition at line 23 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

Referenced by operator()().

EBEECutValues GsfEleFull5x5SigmaIEtaIEtaWithSatCut::maxSigmaIEtaIEtaCut_
private

Definition at line 22 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

Referenced by operator()().

edm::Handle<edm::ValueMap<int> > GsfEleFull5x5SigmaIEtaIEtaWithSatCut::nrSatCrysValueMap_
private

Definition at line 24 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

Referenced by getEventContent(), and operator()().