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() [1/3]

ZGeneratorLineShape::ZGeneratorLineShape ( )
inline

Definition at line 12 of file ZGeneratorLineShape.h.

Referenced by clone().

12 {}

◆ ZGeneratorLineShape() [2/3]

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 hgcalDigitizer_cfi::_m, dataHist, and HltBtagPostValidation_cff::histoName.

7  : RooAbsPdf(name, title), m("m", "m", this, _m), dataHist(nullptr) {
8  TFile* f_gen = TFile::Open(genfile);
9  TH1F* mass_th1f = (TH1F*)f_gen->Get(histoName);
10  dataHist = new RooDataHist("Mass_gen", "Mass_gen", _m, mass_th1f);
11  f_gen->Close();
12 }

◆ ZGeneratorLineShape() [3/3]

ZGeneratorLineShape::ZGeneratorLineShape ( const ZGeneratorLineShape other,
const char *  name 
)

Definition at line 14 of file ZGeneratorLineShape.cc.

◆ ~ZGeneratorLineShape()

ZGeneratorLineShape::~ZGeneratorLineShape ( )
inlineoverride

Definition at line 23 of file ZGeneratorLineShape.h.

23 {}

Member Function Documentation

◆ ClassDefOverride()

ZGeneratorLineShape::ClassDefOverride ( ZGeneratorLineShape  ,
 
) const
override

◆ clone()

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

Definition at line 22 of file ZGeneratorLineShape.h.

References ZGeneratorLineShape().

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

Member Data Documentation

◆ dataHist

RooDataHist* ZGeneratorLineShape::dataHist
protected

Definition at line 28 of file ZGeneratorLineShape.h.

Referenced by ZGeneratorLineShape().

◆ m

RooRealProxy ZGeneratorLineShape::m
protected

Definition at line 27 of file ZGeneratorLineShape.h.