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

Constructor & Destructor Documentation

◆ AbsEtaNrClusEt()

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

Definition at line 76 of file EgammaHLTPixelMatchParamObjects.h.

76  {
77  reco::SuperClusterRef scRef = seed.caloCluster().castTo<reco::SuperClusterRef>();
78  x = std::abs(scRef->eta());
79  y = scRef->clustersSize();
80  z = scRef->energy() * sin(scRef->position().Theta());
81  }

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

Member Function Documentation

◆ pass()

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.

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

References ZElectronSkim_cff::absEtaMin, cosmicPhotonAnalyzer_cfi::etMax, photonAnalyzer_cfi::etMin, x, and z.

Member Data Documentation

◆ x

float egPM::AbsEtaNrClusEt::x

◆ y

size_t egPM::AbsEtaNrClusEt::y

◆ z

float egPM::AbsEtaNrClusEt::z
photonAnalyzer_cfi.etMin
etMin
Definition: photonAnalyzer_cfi.py:54
edm::Ref< SuperClusterCollection >
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
fileCollector.seed
seed
Definition: fileCollector.py:127
egPM::AbsEtaNrClusEt::z
float z
Definition: EgammaHLTPixelMatchParamObjects.h:74
egPM::AbsEtaNrClusEt::y
size_t y
Definition: EgammaHLTPixelMatchParamObjects.h:73
ZElectronSkim_cff.absEtaMin
absEtaMin
Definition: ZElectronSkim_cff.py:35
cosmicPhotonAnalyzer_cfi.etMax
etMax
Definition: cosmicPhotonAnalyzer_cfi.py:11
egPM::AbsEtaNrClusEt::x
float x
Definition: EgammaHLTPixelMatchParamObjects.h:72
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22