CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 36 of file NominalEfficiencyThresholds.h.

Member Enumeration Documentation

anonymous enum

Constructor & Destructor Documentation

NominalEfficiencyThresholds::EtaBounds::EtaBounds ( )

Definition at line 11 of file NominalEfficiencyThresholds.cc.

12 {
13  float BaseEtaBin = 0.087;
14  theBounds[0]=0.0;
15  for (int it=1; it <= 20; it++) 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 41 of file NominalEfficiencyThresholds.h.

References i, and theBounds.

41 { return theBounds[i]; }
int i
Definition: DBlmapReader.cc:9
int NominalEfficiencyThresholds::EtaBounds::towerFromEta ( double  eta) const

Definition at line 30 of file NominalEfficiencyThresholds.cc.

References pileupDistInMC::num.

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

Member Data Documentation

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

Definition at line 43 of file NominalEfficiencyThresholds.h.

Referenced by operator()().