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.

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

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  }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Abs< T >::type abs(const T &t)
Definition: Abs.h:22

Member Function Documentation

◆ pass()

bool egPM::AbsEtaNrClusEt::pass ( float  absEtaMin,
float  absEtaMax,
size_t  nrClusMin,
size_t  nrClusMax,
float  etMin,
float  etMax 
) const
inline

Member Data Documentation

◆ x

float egPM::AbsEtaNrClusEt::x

◆ y

size_t egPM::AbsEtaNrClusEt::y

◆ z

float egPM::AbsEtaNrClusEt::z