simple-tof-analysis
 All Classes Namespaces Functions Variables Groups Pages
TSFunc1DGaussPointWeightPdf.h
1 /*
2  * TSFunc1DGaussPointWeightPdf.h
3  *
4  *
5  * Created on: Aug 4, 2014
6  * Author: Silvestro di Luise
7  * Silvestro.Di.Luise@cern.ch
8  *
9  *
10  *
11  *
12  */
13 
14 #ifndef TSFUNC1DGAUSSPOINTWEIGHTPDF_H_
15 #define TSFUNC1DGAUSSPOINTWEIGHTPDF_H_
16 
17 #include <TH1F.h>
18 
19 #include "TSVariable.h"
20 #include "TSParameter.h"
21 
22 #include "TSFunc1DGaussPdf.h"
23 
24 
26 
27 public:
29  TSFunc1DGaussPointWeightPdf(TString name, TString title
30  , const TSVariable &var_x, const TSParameter &mean, const TSParameter &sigma);
31  virtual ~TSFunc1DGaussPointWeightPdf();
32 
33 
34  virtual double Eval() const;
35 
36  virtual void Init();
37 
38  int GetNumOfWeights() const {return fNWeights;}
39  int SetPointDistribution(const TH1F &h);
40 
41 private:
42 
43  int fNWeights;
44  float *fNPoints;
45  float *fPointMult;
46  float fWeightsSum;
47 
48  const TSVariable *fX;
49  const TSParameter *fMean;
50  const TSParameter *fSigma;
51 
52 };
53 
54 #endif /* TSFUNC1DGAUSSPOINTWEIGHTPDF_H_ */
Definition: TSFunc1DGaussPdf.h:31
Definition: TSVariable.h:55
Definition: TSParameter.h:39
Definition: TSFunc1DGaussPointWeightPdf.h:25