CMS 3D CMS Logo

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< GsfEleNormalizedGsfChi2Cuts_maker__LINE__ ("GsfEleNormalizedGsfChi2Cut")
 

Function Documentation

float normalizedGsfChi2 ( const reco::GsfElectronPtr ele)

Definition at line 29 of file GsfEleNormalizedGsfChi2Cut.cc.

References reco::GsfElectron::gsfTrack(), edm::Ref< C, T, F >::isNonnull(), SiStripPI::max, and GsfEleNormalizedGsfChi2Cut::operator()().

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

29  {
30  return ele->gsfTrack().isNonnull() ? ele->gsfTrack()->normalizedChi2() : std::numeric_limits<float>::max();
31 }
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
Definition: GsfElectron.h:186
bool isNonnull() const
Checks for non-null.
Definition: Ref.h:251
static const CutApplicatorFactory ::PMaker< GsfEleNormalizedGsfChi2Cut > s_maker__LINE__ ( "GsfEleNormalizedGsfChi2Cut"  )
static