CMS 3D CMS Logo

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

Public Member Functions

CandidateType candidateType () const final
 
 GsfEleFull5x5E2x5OverE5x5WithSatCut (const edm::ParameterSet &c)
 
result_type operator() (const reco::GsfElectronPtr &) const final
 
double value (const reco::CandidatePtr &cand) const final
 
- Public Member Functions inherited from CutApplicatorBase
virtual result_type asCandidate (const argument_type &) const
 
 CutApplicatorBase ()
 
 CutApplicatorBase (const edm::ParameterSet &c)
 
 CutApplicatorBase (const CutApplicatorBase &)=delete
 
const std::string & name () const override
 
result_type operator() (const argument_type &) const override 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
 
 ~CutApplicatorBase () override
 Destructor. More...
 
- Public Member Functions inherited from candidate_functions::CandidateCut
 CandidateCut ()
 
virtual ~CandidateCut ()
 

Private Attributes

EBEECutValuesInt maxNrSatCrysIn5x5Cut_
 
EBEECutValues minE1x5OverE5x5Cut_
 
EBEECutValues minE2x5OverE5x5Cut_
 

Additional Inherited Members

- Public Types inherited from CutApplicatorBase
enum  CandidateType {
  NONE, ELECTRON, MUON, PHOTON,
  TAU, PATELECTRON, PATMUON, PATPHOTON,
  PATTAU
}
 

Detailed Description

Definition at line 6 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

Constructor & Destructor Documentation

GsfEleFull5x5E2x5OverE5x5WithSatCut::GsfEleFull5x5E2x5OverE5x5WithSatCut ( const edm::ParameterSet c)

Definition at line 30 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

References operator()().

30  :
31  CutApplicatorBase(params),
32  minE1x5OverE5x5Cut_(params,"minE1x5OverE5x5"),
33  minE2x5OverE5x5Cut_(params,"minE2x5OverE5x5"),
34  maxNrSatCrysIn5x5Cut_(params,"maxNrSatCrysIn5x5")
35 {
36 
37 }

Member Function Documentation

CandidateType GsfEleFull5x5E2x5OverE5x5WithSatCut::candidateType ( ) const
inlinefinalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 14 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

References CutApplicatorBase::ELECTRON.

14  {
15  return ELECTRON;
16  }
CutApplicatorBase::result_type GsfEleFull5x5E2x5OverE5x5WithSatCut::operator() ( const reco::GsfElectronPtr cand) const
finalvirtual

Reimplemented from CutApplicatorBase.

Definition at line 42 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

References heepElectronID_HEEPV50_CSA14_25ns_cff::e5x5, reco::GsfElectron::full5x5_e1x5(), reco::GsfElectron::full5x5_e2x5Max(), reco::GsfElectron::full5x5_e5x5(), maxNrSatCrysIn5x5Cut_, minE1x5OverE5x5Cut_, minE2x5OverE5x5Cut_, reco::GsfElectron::nSaturatedXtals(), and value().

Referenced by GsfEleFull5x5E2x5OverE5x5WithSatCut().

42  {
43 
44  if(cand->nSaturatedXtals()>maxNrSatCrysIn5x5Cut_(cand)) return true;
45 
46  const double e5x5 = cand->full5x5_e5x5();
47  const double e2x5OverE5x5 = e5x5!=0 ? cand->full5x5_e2x5Max()/e5x5 : 0;
48  const double e1x5OverE5x5 = e5x5!=0 ? cand->full5x5_e1x5()/e5x5 : 0;
49 
50  return e1x5OverE5x5 > minE1x5OverE5x5Cut_(cand) || e2x5OverE5x5 > minE2x5OverE5x5Cut_(cand);
51 
52 }
float nSaturatedXtals() const
Definition: GsfElectron.h:516
float full5x5_e5x5() const
Definition: GsfElectron.h:462
float full5x5_e1x5() const
Definition: GsfElectron.h:460
float full5x5_e2x5Max() const
Definition: GsfElectron.h:461
double GsfEleFull5x5E2x5OverE5x5WithSatCut::value ( const reco::CandidatePtr cand) const
finalvirtual

Implements candidate_functions::CandidateCut.

Definition at line 55 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

References reco::GsfElectron::full5x5_e1x5(), and reco::GsfElectron::full5x5_e2x5Max().

Referenced by operator()().

55  {
56  reco::GsfElectronPtr ele(cand);
57  //btw we broke somebodies nice model of assuming every cut is 1D....
58  //what this is returning is fairly meaningless...
59  return ele->full5x5_e1x5() ? ele->full5x5_e2x5Max()/ele->full5x5_e1x5() : 0.;
60 }

Member Data Documentation

EBEECutValuesInt GsfEleFull5x5E2x5OverE5x5WithSatCut::maxNrSatCrysIn5x5Cut_
private

Definition at line 21 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

Referenced by operator()().

EBEECutValues GsfEleFull5x5E2x5OverE5x5WithSatCut::minE1x5OverE5x5Cut_
private

Definition at line 19 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

Referenced by operator()().

EBEECutValues GsfEleFull5x5E2x5OverE5x5WithSatCut::minE2x5OverE5x5Cut_
private

Definition at line 20 of file GsfEleFull5x5E2x5OverE5x5WithSatCut.cc.

Referenced by operator()().