babymaker
e95a6a9342d4604277fe7cc6149b6b5b24447d89
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
bmaker
interface
weight_tools.hh
Go to the documentation of this file.
1
// WEIGHT_TOOLS: Functions that deal with systematic weights
2
3
#ifndef H_WEIGHT_TOOLS
4
#define H_WEIGHT_TOOLS
5
6
#include "SimDataFormats/GeneratorProducts/interface/LHERunInfoProduct.h"
7
8
class
weight_tools
{
9
10
private
:
11
std::vector<gen::WeightsInfo>
theoryWeights
;
12
std::vector<double>
w_pu_up
;
13
std::vector<double>
w_pu_nom
;
14
std::vector<double>
w_pu_down
;
15
16
public
:
17
// the enum index corresponds to the index of the variation
18
enum
variationType
{
19
nominal
=0,
20
muFup
=1,
21
muFdown
=2,
22
muRup
=3,
23
muRup_muFup
=4,
24
muRup_muFdown
=5,
25
muRdown
=6,
26
muRdown_muFup
=7,
27
muRdown_muFdown
=8
28
};
29
30
float
theoryWeight
(
variationType
variation);
31
void
getTheoryWeights
(edm::Handle<LHEEventProduct> lhe_info);
32
float
pileupWeight
(
unsigned
int
ntrupv_mean,
int
type);
33
float
triggerEfficiency
(
int
&nmus,
int
&nels,
float
&
met
, std::vector<float> &sys_trig);
34
float
topPtWeight
(
float
top_pt1,
float
top_pt2);
35
float
isrWeight
(
float
isrpt);
36
void
getPDFWeights
(std::vector<float> &sys_pdf, std::vector<float> &w_pdf);
37
weight_tools
();
38
~weight_tools
();
39
};
40
41
#endif
weight_tools::muRup_muFdown
Definition:
weight_tools.hh:24
weight_tools::weight_tools
weight_tools()
Definition:
weight_tools.cc:11
weight_tools::muRdown
Definition:
weight_tools.hh:25
weight_tools::w_pu_down
std::vector< double > w_pu_down
Definition:
weight_tools.hh:14
weight_tools::variationType
variationType
Definition:
weight_tools.hh:18
weight_tools::isrWeight
float isrWeight(float isrpt)
Definition:
weight_tools.cc:115
weight_tools::muRup_muFup
Definition:
weight_tools.hh:23
weight_tools::getTheoryWeights
void getTheoryWeights(edm::Handle< LHEEventProduct > lhe_info)
Definition:
weight_tools.cc:128
weight_tools::pileupWeight
float pileupWeight(unsigned int ntrupv_mean, int type)
Definition:
weight_tools.cc:47
weight_tools::topPtWeight
float topPtWeight(float top_pt1, float top_pt2)
Definition:
weight_tools.cc:103
weight_tools::muRup
Definition:
weight_tools.hh:22
weight_tools::theoryWeight
float theoryWeight(variationType variation)
Definition:
weight_tools.cc:121
weight_tools::muRdown_muFdown
Definition:
weight_tools.hh:27
weight_tools::theoryWeights
std::vector< gen::WeightsInfo > theoryWeights
Definition:
weight_tools.hh:11
weight_tools::w_pu_nom
std::vector< double > w_pu_nom
Definition:
weight_tools.hh:13
weight_tools
Definition:
weight_tools.hh:8
weight_tools::muRdown_muFup
Definition:
weight_tools.hh:26
weight_tools::~weight_tools
~weight_tools()
Definition:
weight_tools.cc:45
weight_tools::muFup
Definition:
weight_tools.hh:20
weight_tools::triggerEfficiency
float triggerEfficiency(int &nmus, int &nels, float &met, std::vector< float > &sys_trig)
Definition:
weight_tools.cc:57
bmaker_full_cfg.met
tuple met
Definition:
bmaker_full_cfg.py:138
weight_tools::w_pu_up
std::vector< double > w_pu_up
Definition:
weight_tools.hh:12
weight_tools::getPDFWeights
void getPDFWeights(std::vector< float > &sys_pdf, std::vector< float > &w_pdf)
Definition:
weight_tools.cc:133
weight_tools::muFdown
Definition:
weight_tools.hh:21
weight_tools::nominal
Definition:
weight_tools.hh:19
Generated by
1.8.11