GammaShape Class Reference

#include <GammaShape.h>

List of all members.

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)
GammaShapeoperator= (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


Detailed Description

Definition at line 26 of file GammaShape.h.


Constructor & Destructor Documentation

GammaShape::GammaShape (  ) 

Definition at line 6 of file GammaShape.cxx.

References m_de, m_dphi, m_dtheta, m_e, m_peak, m_tail, and m_width.

00006                        {
00007   m_tail = 0;
00008   m_width = 0;
00009   m_peak = 0;
00010   m_e = 0;
00011   m_de = 0;
00012   m_dphi = 0;
00013   m_dtheta = 0;
00014 }

GammaShape::~GammaShape (  )  [inline]

Definition at line 32 of file GammaShape.h.

00032 {;}

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 
)

Definition at line 48 of file GammaShape.cxx.

References m_de, m_dphi, m_dtheta, m_e, m_peak, m_tail, and m_width.

00048                                                                                                        {
00049   m_tail = 0;
00050   m_width = 0;
00051   m_peak = 0;
00052   m_e = 0;
00053   m_de = 0;
00054   m_dphi = dphi;
00055   m_dtheta = dthe;
00056 }


Member Function Documentation

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]

Definition at line 61 of file GammaShape.h.

References m_de.

00061 {return m_de;}

double GammaShape::getdphi (  )  const [inline]

Definition at line 62 of file GammaShape.h.

References m_dphi.

00062 {return m_dphi;}

double GammaShape::getdthe (  )  const [inline]

Definition at line 63 of file GammaShape.h.

References m_dtheta.

00063 {return m_dtheta;}

double GammaShape::gete (  )  const [inline]

Definition at line 60 of file GammaShape.h.

References m_e.

00060 {return m_e;}

double GammaShape::getpeak (  )  const [inline]

Definition at line 59 of file GammaShape.h.

References m_peak.

00059 {return m_peak;}

double GammaShape::gettail (  )  const [inline]

Definition at line 57 of file GammaShape.h.

References m_tail.

00057 {return m_tail;}

double GammaShape::getwidth (  )  const [inline]

Definition at line 58 of file GammaShape.h.

References m_width.

00058 {return m_width;}

double GammaShape::mean ( const double  epeak  ) 

Definition at line 89 of file GammaShape.cxx.

Referenced by de().

00089                                          {
00090      return -0.7984 + 0.7759*peak - 0.6356*peak*peak + 0.1476*peak*peak*peak; 
00091 }

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]

Definition at line 52 of file GammaShape.h.

References m_de.

00052 {m_de = de;}

void GammaShape::setdphi ( const double  dphi  )  [inline]

Definition at line 53 of file GammaShape.h.

References m_dphi.

00053 {m_dphi = dphi;}

void GammaShape::setdtheta ( const double  dtheta  )  [inline]

Definition at line 54 of file GammaShape.h.

References m_dtheta.

00054 {m_dtheta = dtheta;}

void GammaShape::sete ( const double  e  )  [inline]

Definition at line 51 of file GammaShape.h.

References m_e.

00051 {m_e = e;}

void GammaShape::setpeak ( const double  peak  )  [inline]

Definition at line 50 of file GammaShape.h.

References m_peak.

00050 {m_peak = peak;}

void GammaShape::settail ( const double  tail  )  [inline]

Definition at line 48 of file GammaShape.h.

References m_tail.

00048 {m_tail = tail;}

void GammaShape::setwidth ( const double  width  )  [inline]

Definition at line 49 of file GammaShape.h.

References m_width.

00049 {m_width = width;}

double GammaShape::tail ( const double  epeak  ) 

Definition at line 81 of file GammaShape.cxx.

Referenced by de(), and GammaShape().

00081                                         {
00082     return -0.7931 + 0.8026*peak - 0.6694*peak*peak + 0.1476*peak*peak*peak;
00083 }

double GammaShape::width ( const double  epeak  ) 

Definition at line 85 of file GammaShape.cxx.

Referenced by de(), and GammaShape().

00085                                          {
00086      return 0.002496/sqrt(peak) + 0.01861 + 0.0001788*peak;
00087 }


Member Data Documentation

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().


Generated on Tue Nov 29 23:19:38 2016 for BOSS_7.0.2 by  doxygen 1.4.7