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.

12 {};

Referenced by clone().

◆ 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.

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 }

References hgcalDigitizer_cfi::_m, dataHist, and HltBtagPostValidation_cff::histoName.

◆ ZGeneratorLineShape() [3/3]

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

Definition at line 14 of file ZGeneratorLineShape.cc.

15  : RooAbsPdf(other, name), m("m", this, other.m), dataHist(other.dataHist) {}

◆ ~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.

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

References ZGeneratorLineShape().

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.

runGCPTkAlMap.title
string title
Definition: runGCPTkAlMap.py:94
ZGeneratorLineShape::ZGeneratorLineShape
ZGeneratorLineShape()
Definition: ZGeneratorLineShape.h:12
hgcalDigitizer_cfi._m
_m
Definition: hgcalDigitizer_cfi.py:209
trackingPlots.other
other
Definition: trackingPlots.py:1467
ZGeneratorLineShape::dataHist
RooDataHist * dataHist
Definition: ZGeneratorLineShape.h:28
ZGeneratorLineShape::m
RooRealProxy m
Definition: ZGeneratorLineShape.h:27
HltBtagPostValidation_cff.histoName
histoName
Definition: HltBtagPostValidation_cff.py:17
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17