CMS 3D CMS Logo

Functions
HcalPulseShapes.cc File Reference
#include "CalibCalorimetry/HcalAlgos/interface/HcalPulseShapes.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 "CLHEP/Random/RandFlat.h"
#include "CalibFormats/HcalObjects/interface/HcalDbRecord.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

◆ gexp()

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

Definition at line 560 of file HcalPulseShapes.cc.

560  {
561  static double const root2(sqrt(2));
562  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);
563 }

References HltBtagPostValidation_cff::c, JetChargeProducer_cfi::exp, alignCSCRings::s, mathSSE::sqrt(), OrderedSet::t, and FrontierCondition_GT_autoExpress_cfi::t0.

Referenced by HcalPulseShapes::analyticPulseShapeSiPMHO().

◆ onePulse()

double onePulse ( double  t,
double  A,
double  sigma,
double  theta,
double  m 
)
inline

Definition at line 565 of file HcalPulseShapes.cc.

565  {
566  return (t < theta) ? 0 : A * TMath::LogNormal(t, sigma, theta, m);
567 }

References visualization-live-secondInstance_cfg::m, OrderedSet::t, and theta().

Referenced by HcalPulseShapes::analyticPulseShapeSiPMHE().

alignCSCRings.s
s
Definition: alignCSCRings.py:92
FrontierCondition_GT_autoExpress_cfi.t0
t0
Definition: FrontierCondition_GT_autoExpress_cfi.py:148
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
mathSSE::sqrt
T sqrt(T t)
Definition: SSEVec.h:19
theta
Geom::Theta< T > theta() const
Definition: Basic3DVectorLD.h:150
OrderedSet.t
t
Definition: OrderedSet.py:90
A
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
JetChargeProducer_cfi.exp
exp
Definition: JetChargeProducer_cfi.py:6