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

#include <EgammaHLTPixelMatchParamObjects.h>

Public Member Functions

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

Public Attributes

float x
 
size_t y
 
float z
 

Detailed Description

Definition at line 71 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

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

Definition at line 76 of file EgammaHLTPixelMatchParamObjects.h.

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

76  {
78  x = std::abs(scRef->eta());
79  y = scRef->clustersSize();
80  z = scRef->energy()*sin(scRef->position().Theta());
81  }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
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::AbsEtaNrClusEt::pass ( float  absEtaMin,
float  absEtaMax,
size_t  nrClusMin,
size_t  nrClusMax,
float  etMin,
float  etMax 
) const
inline

Definition at line 82 of file EgammaHLTPixelMatchParamObjects.h.

References x, y, and z.

83  {
84  return x>=absEtaMin && x<absEtaMax && y>=nrClusMin && y<=nrClusMax
85  && z>=etMin && z < etMax;
86  }

Member Data Documentation

float egPM::AbsEtaNrClusEt::x
size_t egPM::AbsEtaNrClusEt::y
float egPM::AbsEtaNrClusEt::z