ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitCommon/MathTools/interface/TPFuncs.h
Revision: 1.1
Committed: Thu Jun 11 19:36:34 2009 UTC (15 years, 11 months ago) by loizides
Content type: text/plain
Branch: MAIN
Log Message:
Added Tag+Probe Fit functions.

File Contents

# User Rev Content
1 loizides 1.1 //--------------------------------------------------------------------------------------------------
2     // $Id: MathUtils.h,v 1.8 2009/05/11 08:23:06 loizides Exp $
3     //
4     // TPFuncs
5     //
6     // Function for tag-and-probe fits.
7     //
8     // Authors: C.Loizides, G.Ceballos
9     //--------------------------------------------------------------------------------------------------
10    
11     #ifndef MITCOMMON_MATHTOOLS_TPFUNCS_H
12     #define MITCOMMON_MATHTOOLS_TPFUNCS_H
13    
14     #include "MitCommon/DataFormats/interface/Types.h"
15     #include <TMath.h>
16    
17     class TF1;
18    
19     namespace mithep
20     {
21     class TPFuncs {
22     public:
23     static Double_t BreitGaus(Double_t x, Double_t m, Double_t mwidth, Double_t msig,
24     Double_t fintf, Double_t xmin, Double_t xmax);
25     static Double_t BreitGaus(Double_t *x, Double_t *par);
26     static Double_t BreitWignerGamma(Double_t x, Double_t mean, Double_t gamma);
27     static Double_t BreitWignerGamma(Double_t *x, Double_t *par);
28     static Double_t BreitWignerZ(Double_t x, Double_t mean, Double_t gamma);
29     static Double_t BreitWignerZ(Double_t *x, Double_t *par);
30     static Double_t ExpRange(Double_t x, Double_t lambda, Double_t xmin, Double_t xmax);
31     static Double_t ExpRange(Double_t *x, Double_t *par);
32     static Double_t SigPlusB(Double_t *x, Double_t *par);
33     static TF1 *CreateSigPlusB(Double_t norm=1, Double_t xmin=60, Double_t xmax=110,
34     const char *n="ZSigPlusB");
35     };
36     }
37     #endif