Repository navigation
Expand file tree
/
Copy pathFitFunctionPDF.h
More file actions
76 lines (55 loc) · 2.25 KB
/
Copy pathFitFunctionPDF.h
File metadata and controls
76 lines (55 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*****************************************************************************
* Project: RooFit *
* *
* This code was autogenerated by RooClassFactory *
*****************************************************************************/
#ifndef FitFunctionPDF_h
#define FitFunctionPDF_h
#include "RooAbsPdf.h"
#include "RooRealProxy.h"
#include "RooArgList.h"
#include "RooListProxy.h"
#include "RooAbsReal.h"
#include "CMSAnalysis/Analysis/interface/FitFunction.hh"
#include <memory>
#include <string>
#include <vector>
#include "RooFormulaVar.h"
class FitFunctionPDF : public RooAbsPdf
{
public:
FitFunctionPDF() {}
FitFunctionPDF(const char *name, const char *title, RooAbsReal& _x,
RooAbsReal& _realHiggsMass,
RooAbsReal& _branch_ratio_1,
RooAbsReal& _branch_ratio_2,
RooAbsReal& _norm_Systematic,
RooAbsReal& _shape_Systematic,
std::shared_ptr<FitFunction> function);
FitFunctionPDF(const char *name, const char *title, RooAbsReal& _x,
RooAbsReal& _realHiggsMass,
RooAbsReal& _branch_ratio_1,
RooAbsReal& _branch_ratio_2,
RooAbsReal& _norm_Systematic,
RooAbsReal& _shape_Systematic,
std::shared_ptr<FitFunction> function,
const std::vector<std::string>& systematicNames,
const RooArgList& deltas);
FitFunctionPDF(FitFunctionPDF const &other, const char *name=nullptr);
TObject *clone(const char *newName) const override { return new FitFunctionPDF(*this, newName); }
double evaluate() const override;
RooFormulaVar signal_norm(std::string channel_name) const;
protected:
RooRealProxy x ;
RooRealProxy realHiggsMass ;
RooRealProxy branch_ratio_1 ;
RooRealProxy branch_ratio_2 ;
RooRealProxy norm_Systematic ;
RooRealProxy shape_Systematic ;
RooListProxy shape_Systematics{"shape_Systematics", "shape_Systematics", this};
private:
std::shared_ptr<FitFunction> function; //! note that we have the custom impl for this since shr ptr io doesnt work
std::vector<std::string> shapeSystematicNames;
ClassDefOverride(FitFunctionPDF, 4)
};
#endif // FitFunctionPDF_h