Main Page
Namespaces
Classes
Package Documentation
PhysicsTools
TagAndProbe
src
ZGeneratorLineShape.cc
Go to the documentation of this file.
1
#include "
PhysicsTools/TagAndProbe/interface/ZGeneratorLineShape.h
"
2
3
ClassImp
(
ZGeneratorLineShape
)
4
5
ZGeneratorLineShape
::
ZGeneratorLineShape
(const
char
*
name
, const
char
*
title
,
6
RooAbsReal&
_m
,
7
const
char
* genfile, const
char
* histoName
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
}
18
19
20
ZGeneratorLineShape::ZGeneratorLineShape
(
const
ZGeneratorLineShape
&
other
,
const
char
*
name
):
21
RooAbsPdf(other,name),
22
m
(
"m"
, this,other.
m
),
23
dataHist(other.dataHist)
24
{
25
}
26
27
28
Double_t ZGeneratorLineShape::evaluate()
const
{
29
30
// std::cout<<"gen shape: m, evaluate= "<<m<<", "<<dataHist->weight(m.arg())<<std::endl;
31
return
dataHist
->weight(
m
.arg()) ;
32
}
ZGeneratorLineShape
Definition:
ZGeneratorLineShape.h:10
hgcalDigitizer_cfi._m
_m
Definition:
hgcalDigitizer_cfi.py:263
trackingPlots.other
other
Definition:
trackingPlots.py:1436
ZGeneratorLineShape::m
RooRealProxy m
Definition:
ZGeneratorLineShape.h:26
ZGeneratorLineShape::dataHist
RooDataHist * dataHist
Definition:
ZGeneratorLineShape.h:27
ZGeneratorLineShape::ZGeneratorLineShape
ZGeneratorLineShape()
Definition:
ZGeneratorLineShape.h:13
ClassImp
ClassImp(ZGeneratorLineShape) ZGeneratorLineShape
Definition:
ZGeneratorLineShape.cc:3
funct::m
m
Definition:
Factorize.h:55
ZGeneratorLineShape.h
fftjetcommon_cfi.title
title
Definition:
fftjetcommon_cfi.py:32
dataset.name
name
Definition:
dataset.py:45
Generated for CMSSW Reference Manual by
1.8.11