CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

muonisolation::NominalEfficiencyThresholds::EtaBounds Class Reference

List of all members.

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
Enumerator:
NumberOfTowers 

Definition at line 38 of file NominalEfficiencyThresholds.h.

{ NumberOfTowers = 32 };

Constructor & Destructor Documentation

NominalEfficiencyThresholds::EtaBounds::EtaBounds ( )

Definition at line 11 of file NominalEfficiencyThresholds.cc.

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

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.

{ return theBounds[i]; }
int NominalEfficiencyThresholds::EtaBounds::towerFromEta ( double  eta) const

Definition at line 30 of file NominalEfficiencyThresholds.cc.

{
  int number = 0;
  for (int num = 1; num <= NumberOfTowers; num++) {
    if ( fabs(eta) > theBounds[num-1]) {
      number = num;
      if (eta < 0) number = -num;
    }
  }
  if (fabs(eta) >= theBounds[NumberOfTowers-1]) number = 0;
  return number;
}

Member Data Documentation

Definition at line 43 of file NominalEfficiencyThresholds.h.

Referenced by operator()().