CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/RecoMuon/Navigation/src/MuonNavigableLayer.cc File Reference

#include "RecoMuon/Navigation/interface/MuonNavigableLayer.h"
#include "TrackingTools/DetLayers/interface/DetLayer.h"
#include "TrackingTools/DetLayers/interface/BarrelDetLayer.h"
#include "RecoMuon/Navigation/interface/MuonDetLayerMap.h"
#include "RecoMuon/Navigation/interface/MuonEtaRange.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include <algorithm>

Go to the source code of this file.

Functions

float calculateEta (float r, float z)

Function Documentation

float calculateEta ( float  r,
float  z 
)

Definition at line 33 of file MuonNavigableLayer.cc.

References create_public_lumi_plots::log, and funct::tan().

Referenced by MuonNavigableLayer::trackingRange().

                                             {
  if ( z > 0 ) return -log((tan(atan(r/z)/2.)));
  return log(-(tan(atan(r/z)/2.)));

}