CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 overridefinal
 
void getEventContent (const edm::EventBase &) overridefinal
 
 GsfEleFull5x5SigmaIEtaIEtaWithSatCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const overridefinal
 
void setConsumes (edm::ConsumesCollector &) overridefinal
 
double value (const reco::CandidatePtr &cand) const overridefinal
 
- 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::InputTag
contentTags_
 
std::unordered_map
< std::string, edm::EDGetToken
contentTokens_
 

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(), and nrSatCrysValueMap_.

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:89
edm::Handle< edm::ValueMap< int > > nrSatCrysValueMap_
CutApplicatorBase::result_type GsfEleFull5x5SigmaIEtaIEtaWithSatCut::operator() ( const reco::GsfElectronPtr cand) const
finaloverridevirtual

Reimplemented from CutApplicatorBase.

Definition at line 52 of file GsfEleFull5x5SigmaIEtaIEtaWithSatCut.cc.

References maxNrSatCrysIn5x5Cut_, maxSigmaIEtaIEtaCut_, and nrSatCrysValueMap_.

52  {
53 
54  if((*nrSatCrysValueMap_)[cand]>maxNrSatCrysIn5x5Cut_(cand)) return true;
55  else return cand->full5x5_sigmaIetaIeta() < maxSigmaIEtaIEtaCut_(cand);
56 
57 }
edm::Handle< edm::ValueMap< int > > nrSatCrysValueMap_
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.

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()().