CMS 3D CMS Logo

Functions
HcalPulseShapes.cc File Reference
#include "CalibCalorimetry/HcalAlgos/interface/HcalPulseShapes.h"
#include "CondFormats/HcalObjects/interface/HcalMCParam.h"
#include "CondFormats/HcalObjects/interface/HcalMCParams.h"
#include "CondFormats/DataRecord/interface/HcalMCParamsRcd.h"
#include "CondFormats/HcalObjects/interface/HcalRecoParam.h"
#include "CondFormats/HcalObjects/interface/HcalRecoParams.h"
#include "CondFormats/DataRecord/interface/HcalRecoParamsRcd.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/CaloTopology/interface/HcalTopology.h"
#include "Geometry/Records/interface/HcalRecNumberingRecord.h"
#include "CLHEP/Random/RandFlat.h"
#include <cmath>
#include <iostream>
#include <fstream>
#include "TMath.h"

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 784 of file HcalPulseShapes.cc.

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

Referenced by HcalPulseShapes::analyticPulseShapeSiPMHO().

784  {
785  static double const root2(sqrt(2));
786  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);
787 }
T sqrt(T t)
Definition: SSEVec.h:18
double onePulse ( double  t,
double  A,
double  sigma,
double  theta,
double  m 
)
inline

Definition at line 789 of file HcalPulseShapes.cc.

Referenced by HcalPulseShapes::analyticPulseShapeSiPMHE().

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