CMS 3D CMS Logo

ZGeneratorLineShape.h
Go to the documentation of this file.
1 #ifndef Z_GENERATOR_LINE_SHAPE
2 #define Z_GENERATOR_LINE_SHAPE
3 
4 #include "Riostream.h"
5 #include "RooDataHist.h"
6 #include "RooHistPdf.h"
7 #include "TH1F.h"
8 #include "TFile.h"
9 
10 class ZGeneratorLineShape : public RooAbsPdf {
11 public:
14  const char* name,
15  const char* title,
16  RooAbsReal& _m,
17  //char* genfile = "/uscmst1b_scratch/lpc1/old_scratch/lpctrig/jwerner/ZeePASResConvFitter/ZeeGenLevel.root"
18  const char* genfile = "ZeeGenLevel.root",
19  const char* histoName = "Mass");
20 
21  ZGeneratorLineShape(const ZGeneratorLineShape& other, const char* name);
22  inline TObject* clone(const char* newname) const override { return new ZGeneratorLineShape(*this, newname); }
23  inline ~ZGeneratorLineShape() override{};
24  ClassDefOverride(ZGeneratorLineShape, 1) Double_t evaluate() const override;
25 
26 protected:
27  RooRealProxy m;
28  RooDataHist* dataHist;
29 };
30 
31 #endif
ClassDefOverride(ZGeneratorLineShape, 1) Double_t evaluate() const override
TObject * clone(const char *newname) const override