|
ATLAS Offline Software
|
Go to the documentation of this file.
12 inline double sqr(
double a) {
return a*
a;}
14 inline double area(
double R) {
return M_PI*R*R;}
16 inline double gaugeDiam(
int gauge) {
return 0.127e-3*
pow(92,
double(36-gauge)/39.0);}
22 double dens_cu = 8.94e3;
23 double dens_al = 2.70e3;
24 return 0.1*dens_cu + 0.9*dens_al;
39 double res_cu = 16.78e-9;
40 double res_al = 28.2e-9;
43 double R_al = res_al/(
s*0.9);
44 double R_cu = res_cu/(
s*0.1);
46 double invR = 1/R_al + 1/R_cu;
59 if (newres >
res)
break;
62 if ( fabs( 1-newres/
res) < fabs( 1-
res/oldres))
return gauge;
68 if (newres <
res)
break;
71 if ( fabs( 1-newres/
res) < fabs( 1-
res/oldres))
return gauge;
double gaugeSurface(int gauge)
double gaugeDiam(int gauge)
double ccawDensity()
Units: kg/m3.
std::pair< std::vector< unsigned int >, bool > res
int closestResistivityCcawGauge(double res)
double insulatorWeight(int gauge, double thick=90.e-6, double dens=1.27e3)
Weight per unit of length for the insulator.
double conductorWeight(int gauge)
Weight per unit of length for the CCAW conductor, in kg/meter.
double ccawResistivity(int gauge)
constexpr int pow(int base, int exp) noexcept