Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Randomly throw signal events containing taus #124

Merged
merged 1 commit into from
Feb 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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