CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
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 30 of file MuonNavigableLayer.cc.

References log, and funct::tan().

Referenced by MuonNavigableLayer::trackingRange().

30  {
31  if (z > 0)
32  return -log((tan(atan(r / z) / 2.)));
33  return log(-(tan(atan(r / z) / 2.)));
34 }
static std::vector< std::string > checklist log
float float float z
Tan< T >::type tan(const T &t)
Definition: Tan.h:22