CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
SiStripPulseShape.h File Reference

Go to the source code of this file.

Classes

class  SiStripPulseShape
 

Functions

double fdecay (double *x, double *par)
 
double fdeconv (double *x, double *par)
 
double fdeconv_convoluted (double *x, double *par)
 
double fpeak (double *x, double *par)
 
double fpeak_convoluted (double *x, double *par)
 
double fturnOn (double *x, double *par)
 
double pulse (double x, double y, double z, double t)
 
double pulse_raw (double x, double y, double z, double t)
 
double pulse_x0 (double y, double z, double t)
 
double pulse_x0_yz (double z, double t)
 
double pulse_yz (double x, double z, double t)
 

Function Documentation

double fdecay ( double *  x,
double *  par 
)

Definition at line 91 of file SiStripPulseShape.cc.

References alignCSCRings::s.

Referenced by CalibrationScanAlgorithm::analyse().

91  {
92  double s = par[0];
93  double c_exp = par[1];
94  double c_pow = par[2];
95 
96  return s * TMath::Exp(x[0] * c_exp) * (1 + x[0] * c_pow);
97 }
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double fdeconv ( double *  x,
double *  par 
)

Definition at line 101 of file SiStripPulseShape.cc.

References fpeak().

Referenced by CalibrationAlgorithm::analyse(), CalibrationScanAlgorithm::analyse(), and SiStripPulseShape::getNormalizedValue().

101  {
102  double xm = par[6] * (x[0] - 25);
103  double xp = par[6] * (x[0] + 25);
104  double xz = par[6] * x[0];
105  return 1.2131 * fpeak(&xp, par) - 1.4715 * fpeak(&xz, par) + 0.4463 * fpeak(&xm, par);
106 }
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double fpeak(double *x, double *par)
double fdeconv_convoluted ( double *  x,
double *  par 
)

Definition at line 113 of file SiStripPulseShape.cc.

References fpeak_convoluted().

Referenced by SamplingAlgorithm::SamplingAlgorithm().

113  {
114  double xm = (x[0] - 25);
115  double xp = (x[0] + 25);
116  double xz = x[0];
117  return 1.2131 * fpeak_convoluted(&xp, par) - 1.4715 * fpeak_convoluted(&xz, par) +
118  0.4463 * fpeak_convoluted(&xm, par);
119 }
double fpeak_convoluted(double *x, double *par)
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double fpeak ( double *  x,
double *  par 
)

Definition at line 66 of file SiStripPulseShape.cc.

References pulse(), alignCSCRings::s, submitPVValidationJobs::t, detailsBasic3DVector::y, and detailsBasic3DVector::z.

Referenced by CalibrationAlgorithm::analyse(), fdeconv(), fpeak_convoluted(), and SiStripPulseShape::getNormalizedValue().

66  {
67  double xx = par[0];
68  double y = par[1];
69  double z = par[2];
70  double a_0 = par[3];
71  double s = par[4];
72  double t_0 = par[5];
73  double t = x[0] - t_0;
74 
75  // below turn-on time return just a constant
76  if (x[0] < t_0)
77  return a_0;
78  // elswhere return the pulse
79  return a_0 + s * pulse(xx, y, z, t);
80 }
float float float z
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double pulse(double x, double y, double z, double t)
double fpeak_convoluted ( double *  x,
double *  par 
)

Definition at line 108 of file SiStripPulseShape.cc.

References validate-o2o-wbm::f, and fpeak().

Referenced by fdeconv_convoluted(), and SamplingAlgorithm::SamplingAlgorithm().

108  {
109  TF1 f("peak_convoluted", fpeak, 0, 250, 4);
110  return f.IntegralError(x[0] - par[4] / 2., x[0] + par[4] / 2., par, nullptr, 1.) / (par[4]);
111 }
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double fpeak(double *x, double *par)
double fturnOn ( double *  x,
double *  par 
)

Definition at line 82 of file SiStripPulseShape.cc.

References alignCSCRings::s.

Referenced by CalibrationScanAlgorithm::analyse().

82  {
83  double a_0 = par[0];
84  double s = par[1];
85  double t_0 = par[2];
86  double width = par[3];
87 
88  return a_0 + s * TMath::Erf((x[0] - t_0) / width);
89 }
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double pulse ( double  x,
double  y,
double  z,
double  t 
)

Definition at line 49 of file SiStripPulseShape.cc.

References pulse_raw(), pulse_x0(), pulse_x0_yz(), pulse_yz(), gpuClustering::x, and detailsBasic3DVector::y.

Referenced by EcalUncalibRecHitTimingCCAlgo::computeTimeCC(), fpeak(), pos::PixelFEDTestDAC::levelEncoder(), HcalSiPMHitResponse::makeSiPMSignal(), FitterFuncs::PulseShapeFunctor::PulseShapeFunctor(), AbsElectronicODERHS::setInputPulse(), HcalQie::shape(), and EcalUncalibRecHitTimeWeightsAlgo< EBDataFrame >::time().

49  {
50  if (x > y) {
51  double pivot = x;
52  x = y;
53  y = pivot;
54  }
55 
56  if ((x == 0) && (y == z))
57  return pulse_x0_yz(z, t);
58  else if (x == 0)
59  return pulse_x0(y, z, t);
60  else if (y == z)
61  return pulse_yz(x, z, t);
62  else
63  return pulse_raw(x, y, z, t);
64 }
double pulse_yz(double x, double z, double t)
double pulse_x0(double y, double z, double t)
float float float z
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
double pulse_raw(double x, double y, double z, double t)
double pulse_x0_yz(double z, double t)
double pulse_raw ( double  x,
double  y,
double  z,
double  t 
)

Definition at line 19 of file SiStripPulseShape.cc.

References funct::exp(), funct::pow(), and detailsBasic3DVector::z.

Referenced by pulse().

19  {
20  double result1, result2, result3;
21 
22  result1 = z * y * exp(-t / y);
23  result1 /= pow(y, 2) - (x + z) * y + z * x;
24 
25  result2 = z * x * exp(-t / x);
26  result2 /= pow(x, 2) - (x - z) * y - z * x;
27 
28  result3 = pow(z, 2) * exp(-t / z);
29  result3 /= pow(z, 2) + (x - z) * y - z * x;
30 
31  return result1 + result2 + result3;
32 }
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
float float float z
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29
double pulse_x0 ( double  y,
double  z,
double  t 
)

Definition at line 34 of file SiStripPulseShape.cc.

References funct::exp(), and detailsBasic3DVector::z.

Referenced by pulse().

34 { return z / (y - z) * (exp(-t / y) - exp(-t / z)); }
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
float float float z
double pulse_x0_yz ( double  z,
double  t 
)

Definition at line 47 of file SiStripPulseShape.cc.

References funct::exp().

Referenced by pulse().

47 { return t / z * exp(-t / z); }
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
float float float z
double pulse_yz ( double  x,
double  z,
double  t 
)

Definition at line 36 of file SiStripPulseShape.cc.

References funct::exp(), and gpuClustering::x.

Referenced by pulse().

36  {
37  double result1, result2;
38 
39  result1 = exp(-t / x) - exp(-t / z);
40  result1 *= z * x / (z - x);
41 
42  result2 = t * exp(-t / z);
43 
44  return (result1 + result2) / (z - x);
45 }
Exp< T >::type exp(const T &t)
Definition: Exp.h:22
float float float z
uint16_t const *__restrict__ x
Definition: gpuClustering.h:39