Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
PhysicsTools
TagAndProbe
src
RooCMSShape.cc
Go to the documentation of this file.
1
/*****************************************************************************
2
* Project: CMS detector at the CERN
3
*
4
* Package: PhysicsTools/TagAndProbe/RooCMSShape
5
*
6
*
7
* Authors:
8
* Nadia Adam, Princeton - neadam@princeton.edu
9
* Adam Hunt, Princeton - ahunt@princeton.edu
10
* Kalanand Mishra, Fermilab - kalanand@fnal.gov
11
*
12
* Description:
13
* Defines a probability density function which has exponential decay
14
* distribution at high mass beyond the pole position (say, Z peak)
15
* but turns over (i.e., error function) at low mass due to threshold
16
* effect. We use this to model the background shape in Z->ll invariant
17
* mass.
18
* History:
19
*
20
*
21
*****************************************************************************/
22
23
#include "
PhysicsTools/TagAndProbe/interface/RooCMSShape.h
"
24
25
ClassImp(
RooCMSShape
)
26
27
RooCMSShape
::
RooCMSShape
(
const
char
*
name
,
const
char
*
title
,
28
RooAbsReal& _x,
29
RooAbsReal& _alpha,
30
RooAbsReal& _beta,
31
RooAbsReal& _gamma,
32
RooAbsReal& _peak) :
33
RooAbsPdf(name,title),
34
x
("
x
","x",this,_x),
35
alpha
("
alpha
","alpha",this,_alpha),
36
beta
("
beta
","beta",this,_beta),
37
gamma("gamma","gamma",this,_gamma),
38
peak("peak","peak",this,_peak)
39
{ }
40
41
42
RooCMSShape::RooCMSShape
(
const
RooCMSShape
& other,
const
char
*
name
):
43
RooAbsPdf(other,name),
44
x
(
"x"
,this,other.
x
),
45
alpha
(
"alpha"
,this,other.
alpha
),
46
beta
(
"beta"
,this,other.
beta
),
47
gamma(
"gamma"
,this,other.gamma),
48
peak(
"peak"
,this,other.peak)
49
{ }
50
51
52
53
Double_t
RooCMSShape::evaluate
()
const
54
{
55
// ENTER EXPRESSION IN TERMS OF VARIABLE ARGUMENTS HERE
56
57
//Double_t erf = TMath::Erfc((alpha - x) * beta);
58
Double_t erf = RooMath::erfc((
alpha
-
x
) *
beta
);
59
Double_t u = (
x
-
peak
)*
gamma
;
60
61
if
(u < -70) u = 1e20;
62
else
if
( u>70 ) u = 0;
63
else
u =
exp
(-u);
//exponential decay
64
return
erf*u;
65
}
indexGen.title
title
Definition:
indexGen.py:48
beta
const double beta
Definition:
CosmicMuonParameters.h:69
RooCMSShape::gamma
RooRealProxy gamma
Definition:
RooCMSShape.h:55
alpha
float alpha
Definition:
AMPTWrapper.h:95
create_public_lumi_plots.exp
tuple exp
Definition:
create_public_lumi_plots.py:1088
RooCMSShape::peak
RooRealProxy peak
Definition:
RooCMSShape.h:56
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
x
T x() const
Cartesian x coordinate.
Definition:
Basic3DVectorLD.h:127
RooCMSShape::alpha
RooRealProxy alpha
Definition:
RooCMSShape.h:53
RooCMSShape::RooCMSShape
RooCMSShape()
Definition:
RooCMSShape.h:34
RooCMSShape::x
RooRealProxy x
Definition:
RooCMSShape.h:52
RooCMSShape
Definition:
RooCMSShape.h:32
RooCMSShape.h
RooCMSShape::beta
RooRealProxy beta
Definition:
RooCMSShape.h:54
RooCMSShape::evaluate
Double_t evaluate() const
Definition:
RooCMSShape.cc:53
compareJSON.const
string const
Definition:
compareJSON.py:14
Generated for CMSSW Reference Manual by
1.8.5