CMS 3D CMS Logo

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 74 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

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

Definition at line 79 of file EgammaHLTPixelMatchParamObjects.h.

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

79  {
81  x = std::abs(scRef->eta());
82  y = scRef->clustersSize();
83  z = scRef->energy()*sin(scRef->position().Theta());
84  }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
const CaloClusterRef & caloCluster() const
Definition: ElectronSeed.h:94
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 85 of file EgammaHLTPixelMatchParamObjects.h.

References conversionPostprocessing_cfi::etMax.

86  {
87  return x>=absEtaMin && x<absEtaMax && y>=nrClusMin && y<=nrClusMax
88  && z>=etMin && z < etMax;
89  }

Member Data Documentation

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