CMS 3D CMS Logo

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

Constructor & Destructor Documentation

◆ AbsEtaNrClus()

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

Definition at line 46 of file EgammaHLTPixelMatchParamObjects.h.

46  {
47  reco::SuperClusterRef scRef = seed.caloCluster().castTo<reco::SuperClusterRef>();
48  x = std::abs(scRef->eta());
49  y = scRef->clustersSize();
50  }

References funct::abs(), SurveyInfoScenario_cff::seed, x, and y.

Member Function Documentation

◆ pass()

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

Definition at line 51 of file EgammaHLTPixelMatchParamObjects.h.

51  {
52  return x >= absEtaMin && x < absEtaMax && y >= nrClusMin && y <= nrClusMax;
53  }

References ZElectronSkim_cff::absEtaMin, x, and y.

Member Data Documentation

◆ x

float egPM::AbsEtaNrClus::x

◆ y

size_t egPM::AbsEtaNrClus::y
edm::Ref< SuperClusterCollection >
egPM::AbsEtaNrClus::x
float x
Definition: EgammaHLTPixelMatchParamObjects.h:43
egPM::AbsEtaNrClus::y
size_t y
Definition: EgammaHLTPixelMatchParamObjects.h:44
ZElectronSkim_cff.absEtaMin
absEtaMin
Definition: ZElectronSkim_cff.py:35
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
SurveyInfoScenario_cff.seed
seed
Definition: SurveyInfoScenario_cff.py:295