test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
HcalSiPMShape.cc File Reference
#include "SimCalorimetry/HcalSimAlgos/interface/HcalSiPMShape.h"
#include "SimCalorimetry/HcalSimAlgos/interface/HcalShapes.h"
#include "TMath.h"
#include <iostream>

Go to the source code of this file.

Functions

double gexp (double t, double A, double c, double t0, double s)
 
double onePulse (double t, double A, double sigma, double theta, double m)
 

Function Documentation

double gexp ( double  t,
double  A,
double  c,
double  t0,
double  s 
)
inline

Definition at line 39 of file HcalSiPMShape.cc.

References create_public_lumi_plots::exp, and mathSSE::sqrt().

Referenced by HcalSiPMShape::analyticPulseShape().

39  {
40  static double const root2(sqrt(2));
41  return -A*0.5*exp(c*t+0.5*c*c*s*s-c*s)*(erf(-0.5*root2/s*(t-t0+c*s*s))-1);
42 }
T sqrt(T t)
Definition: SSEVec.h:18
double onePulse ( double  t,
double  A,
double  sigma,
double  theta,
double  m 
)
inline

Definition at line 44 of file HcalSiPMShape.cc.

Referenced by HcalSiPMShape::analyticPulseShape().

44  {
45  return (t<theta) ? 0 : A*TMath::LogNormal(t,sigma,theta,m);
46 }
Geom::Theta< T > theta() const