CMS 3D CMS Logo

Classes | Functions
GsfEleDEtaInSeedCut.cc File Reference
#include "PhysicsTools/SelectorUtils/interface/CutApplicatorBase.h"
#include "DataFormats/EgammaCandidates/interface/GsfElectron.h"

Go to the source code of this file.

Classes

class  GsfEleDEtaInSeedCut
 

Functions

float dEtaInSeed (const reco::GsfElectronPtr &ele)
 
static const CutApplicatorFactory::PMaker< GsfEleDEtaInSeedCuts_maker__LINE__ ("GsfEleDEtaInSeedCut")
 

Function Documentation

float dEtaInSeed ( const reco::GsfElectronPtr ele)

Definition at line 30 of file GsfEleDEtaInSeedCut.cc.

References reco::GsfElectron::deltaEtaSuperClusterTrackAtVtx(), edm::Ref< C, T, F >::isNonnull(), hpstanc_transforms::max, GsfEleDEtaInSeedCut::operator()(), and reco::GsfElectron::superCluster().

Referenced by GsfEleDEtaInSeedCut::operator()(), and GsfEleDEtaInSeedCut::value().

30  {
31  return ele->superCluster().isNonnull() && ele->superCluster()->seed().isNonnull() ?
32  ele->deltaEtaSuperClusterTrackAtVtx() - ele->superCluster()->eta() + ele->superCluster()->seed()->eta() : std::numeric_limits<float>::max();
33 }
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:253
float deltaEtaSuperClusterTrackAtVtx() const
Definition: GsfElectron.h:249
virtual SuperClusterRef superCluster() const
reference to a SuperCluster
Definition: GsfElectron.h:184
static const CutApplicatorFactory ::PMaker< GsfEleDEtaInSeedCut > s_maker__LINE__ ( "GsfEleDEtaInSeedCut"  )
static