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

anonymous enum
Enumerator
NumberOfTowers 

Definition at line 37 of file NominalEfficiencyThresholds.h.

37 { NumberOfTowers = 32 };

Constructor & Destructor Documentation

◆ EtaBounds()

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

◆ operator()()

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

Definition at line 40 of file NominalEfficiencyThresholds.h.

40 { return theBounds[i]; }

References mps_fire::i, and theBounds.

◆ towerFromEta()

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

Definition at line 30 of file NominalEfficiencyThresholds.cc.

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 }

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

Member Data Documentation

◆ theBounds

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

Definition at line 43 of file NominalEfficiencyThresholds.h.

Referenced by operator()().

muonisolation::NominalEfficiencyThresholds::EtaBounds::NumberOfTowers
Definition: NominalEfficiencyThresholds.h:37
muonisolation::NominalEfficiencyThresholds::EtaBounds::theBounds
float theBounds[NumberOfTowers+1]
Definition: NominalEfficiencyThresholds.h:43
mps_fire.i
i
Definition: mps_fire.py:428
contentValuesFiles.number
number
Definition: contentValuesFiles.py:53
PVValHelper::eta
Definition: PVValidationHelpers.h:69
EgammaValidation_cff.num
num
Definition: EgammaValidation_cff.py:34