1#include "VertexFit/GammaShape.h"
16 m_tail = gammashape.m_tail;
17 m_width = gammashape.m_width;
18 m_peak = gammashape.m_peak;
20 m_de = gammashape.m_de;
21 m_dphi = gammashape.m_dphi;
22 m_dtheta = gammashape.m_dtheta;
26 m_tail = gammashape.m_tail;
27 m_width = gammashape.m_width;
28 m_peak = gammashape.m_peak;
30 m_de = gammashape.m_de;
31 m_dphi = gammashape.m_dphi;
32 m_dtheta = gammashape.m_dtheta;
41 m_de =
de( eorigin,
peak );
83 return 0.002496 / sqrt(
peak ) + 0.01861 + 0.0001788 *
peak;
95 double qa = tail1 * sqrt( log( 4. ) );
96 double qb = sinh( qa ) / qa;
97 double qx = ( eorigin -
peak ) / width1 * qb * tail1;
101 if ( fabs( qx ) > 0.001 )
103 f1 = ( eorigin -
peak ) /
fitm( eorigin,
peak, width1, tail1, mean1 );
109 f1 = width1 / ( qb * tail1 );
122 double qa =
tail * sqrt( log( 4. ) );
123 double qb = sinh( qa ) / qa;
124 double qx = ( ( x - pk ) / pk ) /
width * qb;
125 double qy = 1 +
tail * qx;
127 if ( qy < 1.e-7 ) qc = 15;
128 else qc = log( qy ) /
tail;
double tail(const double epeak)
double width(const double epeak)
double peak(const double fitvalue)
double de(const double eorigin, const double peak)
double fitm(double x, double pk, double width, double tail, double mean)
double mean(const double epeak)