Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:11

0001 #ifndef Z_GENERATOR_LINE_SHAPE
0002 #define Z_GENERATOR_LINE_SHAPE
0003 
0004 #include "Riostream.h"
0005 #include "RooDataHist.h"
0006 #include "RooHistPdf.h"
0007 #include "TH1F.h"
0008 #include "TFile.h"
0009 
0010 class ZGeneratorLineShape : public RooAbsPdf {
0011 public:
0012   ZGeneratorLineShape(){};
0013   ZGeneratorLineShape(
0014       const char* name,
0015       const char* title,
0016       RooAbsReal& _m,
0017       //char* genfile = "/uscmst1b_scratch/lpc1/old_scratch/lpctrig/jwerner/ZeePASResConvFitter/ZeeGenLevel.root"
0018       const char* genfile = "ZeeGenLevel.root",
0019       const char* histoName = "Mass");
0020 
0021   ZGeneratorLineShape(const ZGeneratorLineShape& other, const char* name);
0022   inline TObject* clone(const char* newname) const override { return new ZGeneratorLineShape(*this, newname); }
0023   inline ~ZGeneratorLineShape() override{};
0024   ClassDefOverride(ZGeneratorLineShape, 1) Double_t evaluate() const override;
0025 
0026 protected:
0027   RooRealProxy m;
0028   RooDataHist* dataHist;
0029 };
0030 
0031 #endif