test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
egPM::AbsEtaNrClus Struct Reference

#include <EgammaHLTPixelMatchParamObjects.h>

Public Member Functions

 AbsEtaNrClus (const reco::ElectronSeed &seed)
 
bool pass (float absEtaMin, float absEtaMax, size_t nrClusMin, size_t nrClusMax) const
 

Public Attributes

float x
 
size_t y
 

Detailed Description

Definition at line 40 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

egPM::AbsEtaNrClus::AbsEtaNrClus ( const reco::ElectronSeed seed)
inline

Definition at line 44 of file EgammaHLTPixelMatchParamObjects.h.

References funct::abs(), reco::ElectronSeed::caloCluster(), edm::RefToBase< T >::castTo(), x, and y.

44  {
46  x = std::abs(scRef->eta());
47  y = scRef->clustersSize();
48  }
CaloClusterRef caloCluster() const
Definition: ElectronSeed.h:70
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
REF castTo() const
Definition: RefToBase.h:271

Member Function Documentation

bool egPM::AbsEtaNrClus::pass ( float  absEtaMin,
float  absEtaMax,
size_t  nrClusMin,
size_t  nrClusMax 
) const
inline

Definition at line 49 of file EgammaHLTPixelMatchParamObjects.h.

References x, and y.

49  {
50  return x>=absEtaMin && x<absEtaMax && y>=nrClusMin && y<=nrClusMax;
51  }

Member Data Documentation

float egPM::AbsEtaNrClus::x
size_t egPM::AbsEtaNrClus::y