CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
muonisolation::NominalEfficiencyThresholds::EtaBounds Class Reference

Public Types

enum  { NumberOfTowers = 32 }
 

Public Member Functions

 EtaBounds ()
 
float operator() (unsigned int i) const
 
int towerFromEta (double eta) const
 

Private Attributes

float theBounds [NumberOfTowers+1]
 

Detailed Description

Definition at line 35 of file NominalEfficiencyThresholds.h.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

NominalEfficiencyThresholds::EtaBounds::EtaBounds ( )

Definition at line 11 of file NominalEfficiencyThresholds.cc.

11  {
12  float BaseEtaBin = 0.087;
13  theBounds[0] = 0.0;
14  for (int it = 1; it <= 20; it++)
15  theBounds[it] = it * BaseEtaBin;
16  theBounds[21] = 1.83;
17  theBounds[22] = 1.93;
18  theBounds[23] = 2.043;
19  theBounds[24] = 2.172;
20  theBounds[25] = 2.322;
21  theBounds[26] = 2.5;
22  theBounds[27] = 2.65;
23  theBounds[28] = 3.0;
24  theBounds[29] = 3.13;
25  theBounds[30] = 3.305;
26  theBounds[31] = 3.48;
27  theBounds[32] = 3.655;
28 }

Member Function Documentation

float muonisolation::NominalEfficiencyThresholds::EtaBounds::operator() ( unsigned int  i) const
inline

Definition at line 40 of file NominalEfficiencyThresholds.h.

References mps_fire::i.

int NominalEfficiencyThresholds::EtaBounds::towerFromEta ( double  eta) const

Definition at line 30 of file NominalEfficiencyThresholds.cc.

References EgammaValidation_cff::num, and contentValuesFiles::number.

30  {
31  int number = 0;
32  for (int num = 1; num <= NumberOfTowers; num++) {
33  if (fabs(eta) > theBounds[num - 1]) {
34  number = num;
35  if (eta < 0)
36  number = -num;
37  }
38  }
39  if (fabs(eta) >= theBounds[NumberOfTowers - 1])
40  number = 0;
41  return number;
42 }

Member Data Documentation

float muonisolation::NominalEfficiencyThresholds::EtaBounds::theBounds[NumberOfTowers+1]
private

Definition at line 43 of file NominalEfficiencyThresholds.h.