#include <GammaShape.h>
Public Member Functions | |
double | de (const double eorigin, const double peak) |
double | de (const double eorigin, const double peak) |
double | fitm (double x, double pk, double width, double tail, double mean) |
double | fitm (double x, double pk, double width, double tail, double mean) |
GammaShape (const HepLorentzVector p4, const double dphi, const double dthe, const double de) | |
GammaShape (const double eorigin, const double epeak) | |
GammaShape (const GammaShape &) | |
GammaShape () | |
GammaShape (const HepLorentzVector p4, const double dphi, const double dthe, const double de) | |
GammaShape (const double eorigin, const double epeak) | |
GammaShape (const GammaShape &) | |
GammaShape () | |
double | getde () const |
double | getde () const |
double | getdphi () const |
double | getdphi () const |
double | getdthe () const |
double | getdthe () const |
double | gete () const |
double | gete () const |
double | getpeak () const |
double | getpeak () const |
double | gettail () const |
double | gettail () const |
double | getwidth () const |
double | getwidth () const |
double | mean (const double epeak) |
double | mean (const double epeak) |
GammaShape & | operator= (const GammaShape &) |
GammaShape & | operator= (const GammaShape &) |
double | peak (const double fitvalue) |
double | peak (const double fitvalue) |
void | setde (const double de) |
void | setde (const double de) |
void | setdphi (const double dphi) |
void | setdphi (const double dphi) |
void | setdtheta (const double dtheta) |
void | setdtheta (const double dtheta) |
void | sete (const double e) |
void | sete (const double e) |
void | setpeak (const double peak) |
void | setpeak (const double peak) |
void | settail (const double tail) |
void | settail (const double tail) |
void | setwidth (const double width) |
void | setwidth (const double width) |
double | tail (const double epeak) |
double | tail (const double epeak) |
double | width (const double epeak) |
double | width (const double epeak) |
~GammaShape () | |
~GammaShape () | |
Private Attributes | |
double | m_de |
double | m_dphi |
double | m_dtheta |
double | m_e |
double | m_peak |
double | m_tail |
double | m_width |
|
00005 { 00006 m_tail = 0; 00007 m_width = 0; 00008 m_peak = 0; 00009 m_e = 0; 00010 m_de = 0; 00011 m_dphi = 0; 00012 m_dtheta = 0; 00013 }
|
|
00032 {;}
|
|
00015 { 00016 m_tail = gammashape.m_tail; 00017 m_width = gammashape.m_width; 00018 m_peak = gammashape.m_peak; 00019 m_e = gammashape.m_e; 00020 m_de = gammashape.m_de; 00021 m_dphi = gammashape.m_dphi; 00022 m_dtheta = gammashape.m_dtheta; 00023 }
|
|
00036 { 00037 m_tail = tail(peak); 00038 m_width = width(peak); 00039 m_peak = peak; 00040 m_e = eorigin; 00041 m_de = de(eorigin, peak); 00042 m_dphi = 0; 00043 m_dtheta = 0; 00044 }
|
|
00047 { 00048 m_tail = 0; 00049 m_width = 0; 00050 m_peak = 0; 00051 m_e = 0; 00052 m_de = 0; 00053 m_dphi = dphi; 00054 m_dtheta = dthe; 00055 }
|
|
|
|
00032 {;}
|
|
|
|
|
|
|
|
|
|
00092 { 00093 double f1; 00094 double tail1 = tail(peak); 00095 double width1 = width(peak); 00096 double mean1 = mean(peak); 00097 double qa = tail1*sqrt(log(4)); 00098 double qb = sinh(qa)/qa; 00099 double qx = (eorigin-peak)/width1*qb*tail1; 00100 //cout<<"qx ="<<qx<<endl; 00101 // f1 = (eorigin-peak)/fitm(eorigin,peak, width1, tail1); 00102 00103 if(fabs(qx)>0.001){ 00104 f1 = (eorigin-peak)/fitm(eorigin,peak, width1, tail1, mean1); 00105 // cout<<"dynamic"<<endl; 00106 } 00107 else { 00108 // f1=width1/qb; 00109 f1 = width1/(qb*tail1); 00110 // cout<<"gaus"<<endl; 00111 } 00112 00113 // else f1 = 0; 00114 // return f1*eorigin; 00115 return f1; 00116 }
|
|
|
|
00122 { 00123 00124 double qa = tail*sqrt(log(4)); 00125 double qb = sinh(qa)/qa; 00126 double qx = ((x-pk)/pk)/width*qb; 00127 double qy = 1 + tail * qx; 00128 double qc; 00129 if(qy < 1.e-7) qc = 15; 00130 else 00131 qc = log(qy)/tail; 00132 double val = qc; 00133 return val-mean; 00134 }
|
|
00061 {return m_de;}
|
|
00061 {return m_de;}
|
|
00062 {return m_dphi;}
|
|
00062 {return m_dphi;}
|
|
00063 {return m_dtheta;}
|
|
00063 {return m_dtheta;}
|
|
00060 {return m_e;}
|
|
00060 {return m_e;}
|
|
00059 {return m_peak;}
|
|
00059 {return m_peak;}
|
|
00057 {return m_tail;}
|
|
00057 {return m_tail;}
|
|
00058 {return m_width;}
|
|
00058 {return m_width;}
|
|
|
|
00088 {
00089 return -0.7984 + 0.7759*peak - 0.6356*peak*peak + 0.1476*peak*peak*peak;
00090 }
|
|
|
|
00025 { 00026 m_tail = gammashape.m_tail; 00027 m_width = gammashape.m_width; 00028 m_peak = gammashape.m_peak; 00029 m_e = gammashape.m_e; 00030 m_de = gammashape.m_de; 00031 m_dphi = gammashape.m_dphi; 00032 m_dtheta = gammashape.m_dtheta; 00033 return (*this); 00034 }
|
|
|
|
|
|
00052 {m_de = de;}
|
|
00052 {m_de = de;}
|
|
00053 {m_dphi = dphi;}
|
|
00053 {m_dphi = dphi;}
|
|
00054 {m_dtheta = dtheta;}
|
|
00054 {m_dtheta = dtheta;}
|
|
00051 {m_e = e;}
|
|
00051 {m_e = e;}
|
|
00050 {m_peak = peak;}
|
|
00050 {m_peak = peak;}
|
|
00048 {m_tail = tail;}
|
|
00048 {m_tail = tail;}
|
|
00049 {m_width = width;}
|
|
00049 {m_width = width;}
|
|
|
|
00080 {
00081 return -0.7931 + 0.8026*peak - 0.6694*peak*peak + 0.1476*peak*peak*peak;
00082 }
|
|
|
|
00084 {
00085 return 0.002496/sqrt(peak) + 0.01861 + 0.0001788*peak;
00086 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|