Skip to content

Commit

Permalink
Randomly throw signal events containing taus
Browse files Browse the repository at this point in the history
The HH signals used for Moriond 17 have bugs in the generation. The BR
of taus decays is incorrect (= BR(tau -> all) instead of BR(tau -> e / mu))

Mitigate the issue by throwing randomly some events containing taus to
retrieve BR(tau -> e / mu)
  • Loading branch information
Sébastien Brochet committed Feb 3, 2017
1 parent b95d27e commit 0dbcc16
Show file tree
Hide file tree
Showing 3 changed files with 294 additions and 219 deletions.
7 changes: 6 additions & 1 deletion interface/HHAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@

#include <Math/VectorUtil.h>

#include <random>

using namespace HH;
using namespace HHAnalysis;

class HHAnalyzer: public Framework::Analyzer {
public:
HHAnalyzer(const std::string& name, const ROOT::TreeGroup& tree_, const edm::ParameterSet& config):
Analyzer(name, tree_, config)
Analyzer(name, tree_, config), random_generator(42), br_generator(0, 1)
{
// Not untracked as these parameters are mandatory
m_electrons_producer = config.getParameter<std::string>("electronsProducer");
Expand Down Expand Up @@ -234,6 +236,9 @@ class HHAnalyzer: public Framework::Analyzer {
std::string m_electron_hlt_safe_wp_name;
bool m_applyBJetRegression;
std::unordered_map<std::string, std::unique_ptr<BinnedValues>> m_hlt_efficiencies;

std::mt19937 random_generator;
std::uniform_real_distribution<double> br_generator;
};

// Some macros for gen information
Expand Down
Loading

0 comments on commit 0dbcc16

Please sign in to comment.