Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
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
(
6
const
char
*
name
,
const
char
*
title
, RooAbsReal& _m,
const
char
* genfile,
const
char
* 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
}
13
14
ZGeneratorLineShape::ZGeneratorLineShape
(
const
ZGeneratorLineShape
& other,
const
char
*
name
)
15
: RooAbsPdf(other, name),
m
(
"m"
, this, other.
m
), dataHist(other.dataHist) {}
16
17
Double_t ZGeneratorLineShape::evaluate()
const
{
18
// std::cout<<"gen shape: m, evaluate= "<<m<<", "<<dataHist->weight(m.arg())<<std::endl;
19
return
dataHist
->weight(
m
.arg());
20
}
ZGeneratorLineShape
Definition:
ZGeneratorLineShape.h:10
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:78
visualization-live-secondInstance_cfg.m
tuple m
Definition:
visualization-live-secondInstance_cfg.py:79
ClassImp
ClassImp(AliDaqEventHeader)
ZGeneratorLineShape::m
RooRealProxy m
Definition:
ZGeneratorLineShape.h:27
ZGeneratorLineShape::dataHist
RooDataHist * dataHist
Definition:
ZGeneratorLineShape.h:28
ZGeneratorLineShape::ZGeneratorLineShape
ZGeneratorLineShape()
Definition:
ZGeneratorLineShape.h:12
ZGeneratorLineShape.h
runGCPTkAlMap.title
string title
Definition:
runGCPTkAlMap.py:94
Generated for CMSSW Reference Manual by
1.8.5