Skip to content

Commit

Permalink
Add Run2012AB Reweighting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Gude committed May 3, 2014
1 parent d0df085 commit ebd2ccd
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 3 deletions.
66 changes: 65 additions & 1 deletion ZFinder/Event/interface/PileupReweighting.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace zf {
// And then:
//
// ./histo_to_vector.py output_60.root
//
//
// This vector will be normalized by the constructor when it is passed.
static std::vector<float> RUN_2012_ABCD_TRUE_PILEUP = {
13531.4967009,
Expand Down Expand Up @@ -80,6 +80,70 @@ namespace zf {
212878.871076
};

// Using Run2012AB.json
static std::vector<float> RUN_2012_AB_TRUE_PILEUP = {
0.0320343563646,
17.6489497845,
3017.77967961,
182539.842089,
384007.400487,
2392915.33891,
11901987.0975,
29732388.5087,
59774563.5178,
102754695.575,
160685610.445,
223427276.716,
274256736.308,
310846668.182,
339772986.97,
358647587.503,
359270433.01,
345270385.344,
325384848.761,
305604725.108,
288818858.282,
275480579.602,
264886441.677,
254284975.57,
238575597.355,
213751474.923,
179615328.731,
139454269.116,
98551231.6706,
62515104.1229,
35231793.3235,
17540389.0903,
7700790.16264,
2985592.95648,
1026983.13856,
316316.774939,
88536.0033491,
22963.3196953,
5630.84710243,
1323.67412785,
299.289675995,
64.7291393969,
13.2821937975,
2.57270454786,
0.470581763111,
0.0817335902889,
0.0135938127074,
0.00218250753596,
0.000339779695524,
5.1258981156e-05,
7.45489505802e-06,
1.03761309085e-06,
1.37176602224e-07,
1.71126915479e-08,
1.9984919275e-09,
2.14420703415e-10,
1.35308431126e-11,
0.0,
0.0,
0.0
};

// From:
// https://twiki.cern.ch/twiki/bin/viewauth/CMS/Pileup_MC_Gen_Scenarios
static std::vector<float> SUMMER12_53X_MC_TRUE_PILEUP = {
Expand Down
4 changes: 2 additions & 2 deletions ZFinder/Event/src/ZFinderEvent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// ZFinder
#include "ZFinder/Event/interface/PDGID.h" // PDGID enum (ELECTRON, POSITRON, etc.)
#include "ZFinder/Event/interface/TriggerList.h" // ET_ET_TIGHT, ET_ET_DZ, ET_ET_LOOSE, ET_NT_ET_TIGHT, ET_HF_ET_TIGHT, ET_HF_ET_LOOSE, ET_HF_HF_TIGHT, ET_HF_HF_LOOSE, SINGLE_ELECTRON_TRIGGER, ALL_TRIGGERS
#include "ZFinder/Event/interface/PileupReweighting.h" // RUN_2012_ABCD_TRUE_PILEUP, SUMMER12_53X_MC_TRUE_PILEUP
#include "ZFinder/Event/interface/PileupReweighting.h" // RUN_2012_ABCD_TRUE_PILEUP, RUN_2012_AB_TRUE_PILEUP, SUMMER12_53X_MC_TRUE_PILEUP


namespace zf {
Expand Down Expand Up @@ -60,7 +60,7 @@ namespace zf {
if (!is_real_data && lumi_weights_ == NULL) {
lumi_weights_ = new edm::LumiReWeighting(
SUMMER12_53X_MC_TRUE_PILEUP, // MC distribution
RUN_2012_ABCD_TRUE_PILEUP // Data distribution
RUN_2012_AB_TRUE_PILEUP // Data distribution
);
}

Expand Down

0 comments on commit ebd2ccd

Please sign in to comment.