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::AbsEtaNrClusPhi Struct Reference

#include <EgammaHLTPixelMatchParamObjects.h>

Public Member Functions

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

Public Attributes

float x
 
size_t y
 
float z
 

Detailed Description

Definition at line 53 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

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

Definition at line 58 of file EgammaHLTPixelMatchParamObjects.h.

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

58  {
60  x = std::abs(scRef->eta());
61  y = scRef->clustersSize();
62  z = scRef->phi();
63  }
CaloClusterRef caloCluster() const
Definition: ElectronSeed.h:70
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
REF castTo() const
Definition: RefToBase.h:286

Member Function Documentation

bool egPM::AbsEtaNrClusPhi::pass ( float  absEtaMin,
float  absEtaMax,
size_t  nrClusMin,
size_t  nrClusMax,
float  phiMin,
float  phiMax 
) const
inline

Definition at line 64 of file EgammaHLTPixelMatchParamObjects.h.

References x, y, and z.

65  {
66  return x>=absEtaMin && x<absEtaMax && y>=nrClusMin && y<=nrClusMax
67  && z>=phiMin && z < phiMax;
68  }

Member Data Documentation

float egPM::AbsEtaNrClusPhi::x
size_t egPM::AbsEtaNrClusPhi::y
float egPM::AbsEtaNrClusPhi::z