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.

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

46  {
47  reco::SuperClusterRef scRef = seed.caloCluster().castTo<reco::SuperClusterRef>();
48  x = std::abs(scRef->eta());
49  y = scRef->clustersSize();
50  }
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

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.

References IsoPhotonEBSkim_cff::absEtaMin, x, and y.

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

Member Data Documentation

◆ x

float egPM::AbsEtaNrClus::x

◆ y

size_t egPM::AbsEtaNrClus::y