CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions
GsfEleNormalizedGsfChi2Cut.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  GsfEleNormalizedGsfChi2Cut
 

Functions

float normalizedGsfChi2 (const reco::GsfElectronPtr &ele)
 
static const
CutApplicatorFactory::PMaker
< GsfEleNormalizedGsfChi2Cut
s_maker__LINE__ ("GsfEleNormalizedGsfChi2Cut")
 

Function Documentation

float normalizedGsfChi2 ( const reco::GsfElectronPtr ele)

Definition at line 29 of file GsfEleNormalizedGsfChi2Cut.cc.

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

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

29  {
30  return ele->gsfTrack().isNonnull() ? ele->gsfTrack()->normalizedChi2() : std::numeric_limits<float>::max();
31 }
bool isNonnull() const
Checks for non-null.
Definition: Ptr.h:169
static const CutApplicatorFactory ::PMaker< GsfEleNormalizedGsfChi2Cut > s_maker__LINE__ ( "GsfEleNormalizedGsfChi2Cut"  )
static