CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
egPM::AbsEtaNrClusPhi Struct Reference

#include <EgammaHLTPixelMatchParamObjects.h>

Public Member Functions

 AbsEtaNrClusPhi (const reco::ElectronSeed &seed)
 
bool pass (float absEtaMin, float absEtaMax, size_t nrClusMin, size_t nrClusMax, float phiMin, float phiMax) const
 

Public Attributes

float x
 
size_t y
 
float z
 

Detailed Description

Definition at line 55 of file EgammaHLTPixelMatchParamObjects.h.

Constructor & Destructor Documentation

◆ AbsEtaNrClusPhi()

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

Definition at line 60 of file EgammaHLTPixelMatchParamObjects.h.

60  {
61  reco::SuperClusterRef scRef = seed.caloCluster().castTo<reco::SuperClusterRef>();
62  x = std::abs(scRef->eta());
63  y = scRef->clustersSize();
64  z = scRef->phi();
65  }

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

Member Function Documentation

◆ pass()

bool egPM::AbsEtaNrClusPhi::pass ( float  absEtaMin,
float  absEtaMax,
size_t  nrClusMin,
size_t  nrClusMax,
float  phiMin,
float  phiMax 
) const
inline

Definition at line 66 of file EgammaHLTPixelMatchParamObjects.h.

66  {
67  return x >= absEtaMin && x < absEtaMax && y >= nrClusMin && y <= nrClusMax && z >= phiMin && z < phiMax;
68  }

References ZElectronSkim_cff::absEtaMin, AlignmentTrackSelector_cfi::phiMax, AlignmentTrackSelector_cfi::phiMin, x, and z.

Member Data Documentation

◆ x

float egPM::AbsEtaNrClusPhi::x

◆ y

size_t egPM::AbsEtaNrClusPhi::y

◆ z

float egPM::AbsEtaNrClusPhi::z
edm::Ref< SuperClusterCollection >
egPM::AbsEtaNrClusPhi::x
float x
Definition: EgammaHLTPixelMatchParamObjects.h:56
fileCollector.seed
seed
Definition: fileCollector.py:127
AlignmentTrackSelector_cfi.phiMin
phiMin
Definition: AlignmentTrackSelector_cfi.py:18
AlignmentTrackSelector_cfi.phiMax
phiMax
Definition: AlignmentTrackSelector_cfi.py:17
ZElectronSkim_cff.absEtaMin
absEtaMin
Definition: ZElectronSkim_cff.py:35
egPM::AbsEtaNrClusPhi::z
float z
Definition: EgammaHLTPixelMatchParamObjects.h:58
egPM::AbsEtaNrClusPhi::y
size_t y
Definition: EgammaHLTPixelMatchParamObjects.h:57
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22