test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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(0)
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
}
indexGen.title
title
Definition:
indexGen.py:48
ZGeneratorLineShape
Definition:
ZGeneratorLineShape.h:10
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
visualization-live-secondInstance_cfg.m
tuple m
Definition:
visualization-live-secondInstance_cfg.py:45
ZGeneratorLineShape::evaluate
Double_t evaluate() const
Definition:
ZGeneratorLineShape.cc:28
ZGeneratorLineShape::m
RooRealProxy m
Definition:
ZGeneratorLineShape.h:26
ZGeneratorLineShape::dataHist
RooDataHist * dataHist
Definition:
ZGeneratorLineShape.h:27
ZGeneratorLineShape::ZGeneratorLineShape
ZGeneratorLineShape()
Definition:
ZGeneratorLineShape.h:13
compareJSON.const
string const
Definition:
compareJSON.py:14
ZGeneratorLineShape.h
Generated for CMSSW Reference Manual by
1.8.5