Port of CERNLIB routines vvidis/vviden (G116) to calculate higher quality Vavilov density and distribution functions
Definition at line 25 of file VVIObj.h.
VVIObj::VVIObj |
( |
double |
kappa = 0.01 , |
|
|
double |
beta2 = 1. , |
|
|
int |
mode = 0 |
|
) |
| |
Constructor.
Constructor Set Vavilov parameters kappa and beta2 and define whether to calculate density fcn or distribution fcn
- Parameters
-
kappa | - (input) Vavilov kappa parameter [0.01 (Landau-like) < kappa < 10. (Gaussian-like)] |
beta2 | - (input) Vavilov beta2 parameter (square of particle speed in v/c units) |
mode | - (input) set to 0 to calculate the density function and to 1 to calculate the distribution function |
Definition at line 49 of file VVIObj.cc.
50 const double xp[9] = {9.29, 2.47, .89, .36, .15, .07, .03, .02, 0.0};
51 const double xq[7] = {.012, .03, .08, .26, .87, 3.83, 11.0};
53 double q, u,
x,
c1, c2, c3, c4,
d1, h4, h5, h6,
q2,
x1,
d, ll, ul, xf1, xf2, rv;
67 h_[4] = 1. - beta2 * 0.42278433999999998 + 7.6 /
kappa;
70 h4 = -7.6 /
kappa - (beta2 * .57721566 + 1);
77 for (lp = 0; lp < 9; ++lp) {
82 for (lq = 0; lq < 7; ++lq) {
93 h_[0] =
kappa * (beta2 * .57721566 + 2.) + 9.9166128600000008;
97 h_[1] = beta2 *
kappa;
99 h_[3] =
omega_ * 1.5707963250000001;
103 d =
exp(
kappa * (beta2 * (.57721566 - h5) + 1.)) * .31830988654751274;
110 for (
k = 1;
k <
n; ++
k) {
118 xf1 =
kappa * (beta2 *
c1 - c4) - x * c2;
119 xf2 =
x *
c1 +
kappa * (c3 + beta2 * c2) +
t0_ * x;
References a_, b_, alignmentValidation::c1, funct::cos(), ztail::d, d1, sistripvvi::VVIObjDetails::dzero(), MillePedeFileConverter_cfg::e, JetChargeProducer_cfi::exp, sistripvvi::VVIObjDetails::expint(), sistripvvi::VVIObjDetails::f1(), sistripvvi::VVIObjDetails::f2(), dqmdumpme::k, kappa, cmsLHEtoEOSManager::l, dqm-mbProfile::log, mode_, dqmiodumpmetadata::n, omega_, submitPVResolutionJobs::q, q2, funct::sin(), sistripvvi::VVIObjDetails::sincosint(), t0_, t1_, t_, x0_, and testProducerWithPsetDescEmpty_cfi::x1.
double VVIObj::fcn |
( |
double |
x | ) |
const |
Vavilov function method Returns density fcn (mode=0) or distribution fcn (mode=1)
- Parameters
-
x | - (input) Argument of function [typically defined as (Q-mpv)/sigma] |
Definition at line 142 of file VVIObj.cc.
145 double f, u,
y,
a0, a1;
153 }
else if (x <=
t1_) {
155 u =
omega_ *
y - 3.141592653589793;
160 for (
k = 2;
k <= n1; ++
k) {
163 a0 =
a_[
k - 1] + cof * a1 -
a2;
167 for (
k = 2;
k <=
n; ++
k) {
References a0, testProducerWithPsetDescEmpty_cfi::a2, a_, b0, b1, b2, b_, funct::cos(), f, dqmdumpme::k, mode_, dqmiodumpmetadata::n, omega_, funct::sin(), t0_, t1_, t_, and x0_.