CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
ZGeneratorLineShape Class Reference

#include <ZGeneratorLineShape.h>

Inheritance diagram for ZGeneratorLineShape:

Public Member Functions

 ClassDefOverride (ZGeneratorLineShape, 1) Double_t evaluate() const override
 
TObject * clone (const char *newname) const override
 
 ZGeneratorLineShape ()
 
 ZGeneratorLineShape (const char *name, const char *title, RooAbsReal &_m, const char *genfile="ZeeGenLevel.root", const char *histoName="Mass")
 
 ZGeneratorLineShape (const ZGeneratorLineShape &other, const char *name)
 
 ~ZGeneratorLineShape () override
 

Protected Attributes

RooDataHist * dataHist
 
RooRealProxy m
 

Detailed Description

Definition at line 10 of file ZGeneratorLineShape.h.

Constructor & Destructor Documentation

ZGeneratorLineShape::ZGeneratorLineShape ( )
inline

Definition at line 13 of file ZGeneratorLineShape.h.

References hgcalDigitizer_cfi::_m, dataset::name, trackingPlots::other, and fftjetcommon_cfi::title.

Referenced by clone().

13 {} ;
ZGeneratorLineShape::ZGeneratorLineShape ( const char *  name,
const char *  title,
RooAbsReal &  _m,
const char *  genfile = "ZeeGenLevel.root",
const char *  histoName = "Mass" 
)

Definition at line 5 of file ZGeneratorLineShape.cc.

References dataHist.

8  :
9  RooAbsPdf(name,title),
10  m("m","m", this,_m),
11  dataHist(nullptr)
12 {
13  TFile *f_gen= TFile::Open(genfile);
14  TH1F* mass_th1f = (TH1F*) f_gen->Get(histoName);
15  dataHist = new RooDataHist("Mass_gen", "Mass_gen", _m, mass_th1f );
16  f_gen->Close();
17 }
ZGeneratorLineShape::ZGeneratorLineShape ( const ZGeneratorLineShape other,
const char *  name 
)

Definition at line 20 of file ZGeneratorLineShape.cc.

References dataHist, and m.

20  :
21  RooAbsPdf(other,name),
22  m("m", this,other.m),
23  dataHist(other.dataHist)
24 {
25 }
ZGeneratorLineShape::~ZGeneratorLineShape ( )
inlineoverride

Definition at line 22 of file ZGeneratorLineShape.h.

References ClassDefOverride().

22 {};

Member Function Documentation

ZGeneratorLineShape::ClassDefOverride ( ZGeneratorLineShape  ,
 
) const
override

Referenced by ~ZGeneratorLineShape().

TObject* ZGeneratorLineShape::clone ( const char *  newname) const
inlineoverride

Definition at line 21 of file ZGeneratorLineShape.h.

References ZGeneratorLineShape().

21 { return new ZGeneratorLineShape(*this,newname);}

Member Data Documentation

RooDataHist* ZGeneratorLineShape::dataHist
protected

Definition at line 27 of file ZGeneratorLineShape.h.

Referenced by ZGeneratorLineShape().

RooRealProxy ZGeneratorLineShape::m
protected

Definition at line 26 of file ZGeneratorLineShape.h.

Referenced by ZGeneratorLineShape().