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 
12 public:
14  ZGeneratorLineShape(const char *name, const char *title,
15  RooAbsReal& _m,
16  //char* genfile = "/uscmst1b_scratch/lpc1/old_scratch/lpctrig/jwerner/ZeePASResConvFitter/ZeeGenLevel.root"
17  const char* genfile = "ZeeGenLevel.root", const char* histoName= "Mass"
18  );
19 
20  ZGeneratorLineShape(const ZGeneratorLineShape& other, const char* name);
21  inline virtual TObject* clone(const char* newname) const { return new ZGeneratorLineShape(*this,newname);}
24  Double_t evaluate() const;
25  protected:
26  RooRealProxy m ;
27  RooDataHist* dataHist;
28 };
29 
30 #endif
ClassDef(ZGeneratorLineShape, 1) Double_t evaluate() const
virtual TObject * clone(const char *newname) const