CMS 3D CMS Logo

Classes | Functions

/data/refman/pasoursint/CMSSW_6_1_1/src/DQM/SiStripCommissioningAnalysis/interface/SiStripPulseShape.h File Reference

Go to the source code of this file.

Classes

class  SiStripPulseShape

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().

    {
      double xm = par[4]*(x[0]-25);
      double xp = par[4]*(x[0]+25);
      double xz = par[4]*x[0];
      return 1.2131*fpeak(&xp,par)-1.4715*fpeak(&xz,par)+0.4463*fpeak(&xm,par);
    }
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().

    {
      double xm = (x[0]-25);
      double xp = (x[0]+25);
      double xz = x[0];
      return 1.2131*fpeak_convoluted(&xp,par)-1.4715*fpeak_convoluted(&xz,par)+0.4463*fpeak_convoluted(&xm,par);
    }
double fpeak ( double *  x,
double *  par 
)

Definition at line 5 of file SiStripPulseShape.cc.

Referenced by fdeconv(), and fpeak_convoluted().

    {
      if(x[0]+par[1]<0) return par[0];
      return par[0]+par[2]*(x[0]+par[1])*TMath::Exp(-(x[0]+par[1])/par[3]);
    }
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().

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