CMS 3D CMS Logo

SiStripPulseShape.h File Reference

Go to the source code of this file.

Classes

class  SiStripPulseShape
 Description: analog pulse shape at the ouput of the APV. More...

Functions

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)


Function Documentation

double fdeconv ( double *  x,
double *  par 
)

Definition at line 11 of file SiStripPulseShape.cc.

References fpeak().

00012     {
00013       double xm = par[4]*(x[0]-25);
00014       double xp = par[4]*(x[0]+25);
00015       double xz = par[4]*x[0];
00016       return 1.2131*fpeak(&xp,par)-1.4715*fpeak(&xz,par)+0.4463*fpeak(&xm,par);
00017     }

double fdeconv_convoluted ( double *  x,
double *  par 
)

Definition at line 25 of file SiStripPulseShape.cc.

References fpeak_convoluted().

Referenced by CalibrationAlgorithm::CalibrationAlgorithm(), SiStripPulseShape::getNormalizedValue(), and SamplingAlgorithm::SamplingAlgorithm().

00026     {
00027       double xm = (x[0]-25);
00028       double xp = (x[0]+25);
00029       double xz = x[0];
00030       return 1.2131*fpeak_convoluted(&xp,par)-1.4715*fpeak_convoluted(&xz,par)+0.4463*fpeak_convoluted(&xm,par);
00031     }

double fpeak ( double *  x,
double *  par 
)

Definition at line 5 of file SiStripPulseShape.cc.

Referenced by fdeconv(), and fpeak_convoluted().

00006     {
00007       if(x[0]+par[1]<0) return par[0];
00008       return par[0]+par[2]*(x[0]+par[1])*TMath::Exp(-(x[0]+par[1])/par[3]);
00009     }

double fpeak_convoluted ( double *  x,
double *  par 
)

Definition at line 19 of file SiStripPulseShape.cc.

References f, and fpeak().

Referenced by CalibrationAlgorithm::CalibrationAlgorithm(), fdeconv_convoluted(), SiStripPulseShape::getNormalizedValue(), and SamplingAlgorithm::SamplingAlgorithm().

00020     {
00021      TF1 f("peak_convoluted",fpeak,0,200,4);
00022      return f.Integral(x[0]-par[4]/2.,x[0]+par[4]/2.,par,1.)/(par[4]);
00023     } 


Generated on Tue Jun 9 17:52:39 2009 for CMSSW by  doxygen 1.5.4