ATLAS Offline Software
Loading...
Searching...
No Matches
GetRefIndex.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
5#include <algorithm>
6#include <cassert>
7#include <cmath>
8#include <iomanip>
9
11#include "GetRefIndex.h"
12#include "GaudiKernel/PhysicalConstants.h"
13
14
15double GetRefIndexQuartz(double lambda) {
16
17 double const SellCoeu[] = {46.41, 228.71, 0.014};
18 double const SellCoed[] = {10.666, 18.125, 0.125};
19
20 double e = 2.*M_PI*Gaudi::Units::hbarc/(Gaudi::Units::eV*Gaudi::Units::nm)/lambda;
21 double r = 1.;
22
23 for(int i=0; i<3; i++) r += SellCoeu[i]/(SellCoed[i]*SellCoed[i] - e*e);
24
25 return sqrt(r);
26}
#define M_PI
double GetRefIndexQuartz(double lambda)
int r
Definition globals.cxx:22