CMS 3D CMS Logo

Functions
MTDNavigableLayer.cc File Reference
#include "RecoMTD/Navigation/interface/MTDNavigableLayer.h"
#include "TrackingTools/DetLayers/interface/DetLayer.h"
#include "TrackingTools/DetLayers/interface/BarrelDetLayer.h"
#include "RecoMTD/Navigation/interface/MTDDetLayerMap.h"
#include "RecoMTD/Navigation/interface/MTDEtaRange.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

◆ calculateEta()

float calculateEta ( float  r,
float  z 
)

Definition at line 30 of file MTDNavigableLayer.cc.

30  {
31  if (z > 0)
32  return -log((tan(atan(r / z) / 2.)));
33  return log(-(tan(atan(r / z) / 2.)));
34 }

References dqm-mbProfile::log, alignCSCRings::r, and funct::tan().

Referenced by MTDNavigableLayer::trackingRange().

detailsBasic3DVector::z
float float float z
Definition: extBasic3DVector.h:14
funct::tan
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
alignCSCRings.r
r
Definition: alignCSCRings.py:93
dqm-mbProfile.log
log
Definition: dqm-mbProfile.py:17