CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< GsfEleDEtaInSeedCut
s_maker__LINE__ ("GsfEleDEtaInSeedCut")
 

Function Documentation

float dEtaInSeed ( const reco::GsfElectronPtr ele)

Definition at line 30 of file GsfEleDEtaInSeedCut.cc.

References edm::Ptr< T >::isNonnull(), and bookConverter::max.

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: Ptr.h:169
static const CutApplicatorFactory ::PMaker< GsfEleDEtaInSeedCut > s_maker__LINE__ ( "GsfEleDEtaInSeedCut"  )
static