#include <GammaShape.h>
Public Member Functions | |
GammaShape () | |
~GammaShape () | |
GammaShape (const GammaShape &) | |
GammaShape (const double eorigin, const double epeak) | |
GammaShape (const HepLorentzVector p4, const double dphi, const double dthe, const double de) | |
GammaShape & | operator= (const GammaShape &) |
double | peak (const double fitvalue) |
double | mean (const double epeak) |
double | tail (const double epeak) |
double | width (const double epeak) |
double | de (const double eorigin, const double peak) |
double | fitm (double x, double pk, double width, double tail, double mean) |
void | settail (const double tail) |
void | setwidth (const double width) |
void | setpeak (const double peak) |
void | sete (const double e) |
void | setde (const double de) |
void | setdphi (const double dphi) |
void | setdtheta (const double dtheta) |
double | gettail () const |
double | getwidth () const |
double | getpeak () const |
double | gete () const |
double | getde () const |
double | getdphi () const |
double | getdthe () const |
Private Attributes | |
double | m_tail |
double | m_width |
double | m_peak |
double | m_e |
double | m_de |
double | m_dphi |
double | m_dtheta |
Definition at line 26 of file GammaShape.h.
GammaShape::GammaShape | ( | ) |
GammaShape::~GammaShape | ( | ) | [inline] |
GammaShape::GammaShape | ( | const GammaShape & | ) |
Definition at line 16 of file GammaShape.cxx.
References m_de, m_dphi, m_dtheta, m_e, m_peak, m_tail, and m_width.
00016 { 00017 m_tail = gammashape.m_tail; 00018 m_width = gammashape.m_width; 00019 m_peak = gammashape.m_peak; 00020 m_e = gammashape.m_e; 00021 m_de = gammashape.m_de; 00022 m_dphi = gammashape.m_dphi; 00023 m_dtheta = gammashape.m_dtheta; 00024 }
GammaShape::GammaShape | ( | const double | eorigin, | |
const double | epeak | |||
) |
Definition at line 37 of file GammaShape.cxx.
References de(), m_de, m_dphi, m_dtheta, m_e, m_peak, m_tail, m_width, tail(), and width().
00037 { 00038 m_tail = tail(peak); 00039 m_width = width(peak); 00040 m_peak = peak; 00041 m_e = eorigin; 00042 m_de = de(eorigin, peak); 00043 m_dphi = 0; 00044 m_dtheta = 0; 00045 }
GammaShape::GammaShape | ( | const HepLorentzVector | p4, | |
const double | dphi, | |||
const double | dthe, | |||
const double | de | |||
) |
double GammaShape::de | ( | const double | eorigin, | |
const double | peak | |||
) |
Definition at line 93 of file GammaShape.cxx.
References f1, fitm(), mean(), tail(), and width().
Referenced by GammaShape().
00093 { 00094 double f1; 00095 double tail1 = tail(peak); 00096 double width1 = width(peak); 00097 double mean1 = mean(peak); 00098 double qa = tail1*sqrt(log(4.)); 00099 double qb = sinh(qa)/qa; 00100 double qx = (eorigin-peak)/width1*qb*tail1; 00101 //cout<<"qx ="<<qx<<endl; 00102 // f1 = (eorigin-peak)/fitm(eorigin,peak, width1, tail1); 00103 00104 if(fabs(qx)>0.001){ 00105 f1 = (eorigin-peak)/fitm(eorigin,peak, width1, tail1, mean1); 00106 // cout<<"dynamic"<<endl; 00107 } 00108 else { 00109 // f1=width1/qb; 00110 f1 = width1/(qb*tail1); 00111 // cout<<"gaus"<<endl; 00112 } 00113 00114 // else f1 = 0; 00115 // return f1*eorigin; 00116 return f1; 00117 }
double GammaShape::fitm | ( | double | x, | |
double | pk, | |||
double | width, | |||
double | tail, | |||
double | mean | |||
) |
Definition at line 123 of file GammaShape.cxx.
Referenced by de().
00123 { 00124 00125 double qa = tail*sqrt(log(4.)); 00126 double qb = sinh(qa)/qa; 00127 double qx = ((x-pk)/pk)/width*qb; 00128 double qy = 1 + tail * qx; 00129 double qc; 00130 if(qy < 1.e-7) qc = 15; 00131 else 00132 qc = log(qy)/tail; 00133 double val = qc; 00134 return val-mean; 00135 }
double GammaShape::getde | ( | ) | const [inline] |
double GammaShape::getdphi | ( | ) | const [inline] |
double GammaShape::getdthe | ( | ) | const [inline] |
double GammaShape::gete | ( | ) | const [inline] |
double GammaShape::getpeak | ( | ) | const [inline] |
double GammaShape::gettail | ( | ) | const [inline] |
double GammaShape::getwidth | ( | ) | const [inline] |
double GammaShape::mean | ( | const double | epeak | ) |
GammaShape & GammaShape::operator= | ( | const GammaShape & | ) |
Definition at line 26 of file GammaShape.cxx.
References m_de, m_dphi, m_dtheta, m_e, m_peak, m_tail, and m_width.
00026 { 00027 m_tail = gammashape.m_tail; 00028 m_width = gammashape.m_width; 00029 m_peak = gammashape.m_peak; 00030 m_e = gammashape.m_e; 00031 m_de = gammashape.m_de; 00032 m_dphi = gammashape.m_dphi; 00033 m_dtheta = gammashape.m_dtheta; 00034 return (*this); 00035 }
double GammaShape::peak | ( | const double | fitvalue | ) |
void GammaShape::setde | ( | const double | de | ) | [inline] |
void GammaShape::setdphi | ( | const double | dphi | ) | [inline] |
void GammaShape::setdtheta | ( | const double | dtheta | ) | [inline] |
void GammaShape::sete | ( | const double | e | ) | [inline] |
void GammaShape::setpeak | ( | const double | peak | ) | [inline] |
void GammaShape::settail | ( | const double | tail | ) | [inline] |
void GammaShape::setwidth | ( | const double | width | ) | [inline] |
double GammaShape::tail | ( | const double | epeak | ) |
double GammaShape::width | ( | const double | epeak | ) |
double GammaShape::m_de [private] |
Definition at line 75 of file GammaShape.h.
Referenced by GammaShape(), getde(), operator=(), and setde().
double GammaShape::m_dphi [private] |
Definition at line 76 of file GammaShape.h.
Referenced by GammaShape(), getdphi(), operator=(), and setdphi().
double GammaShape::m_dtheta [private] |
Definition at line 77 of file GammaShape.h.
Referenced by GammaShape(), getdthe(), operator=(), and setdtheta().
double GammaShape::m_e [private] |
Definition at line 74 of file GammaShape.h.
Referenced by GammaShape(), gete(), operator=(), and sete().
double GammaShape::m_peak [private] |
Definition at line 73 of file GammaShape.h.
Referenced by GammaShape(), getpeak(), operator=(), and setpeak().
double GammaShape::m_tail [private] |
Definition at line 71 of file GammaShape.h.
Referenced by GammaShape(), gettail(), operator=(), and settail().
double GammaShape::m_width [private] |
Definition at line 72 of file GammaShape.h.
Referenced by GammaShape(), getwidth(), operator=(), and setwidth().