HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
TopPtReweightingProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "Artus/Core/interface/ProducerBase.h"
5 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
6 #include <boost/regex.hpp>
7 #include <boost/algorithm/string.hpp>
8 
19 class TopPtReweightingProducer: public ProducerBase<HttTypes> {
20 public:
21 
22  std::string GetProducerId() const override;
23 
24  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
25  void Produce( event_type const& event,
26  product_type & product,
27  setting_type const& settings, metadata_type const& metadata) const override;
28 private:
29  bool m_isTTbar;
30  bool m_oldStrategy = false; // old == true: Run1, new == false: Run2
31  float ComputeWeight(float top1Pt, float top2Pt, float parameter_a, float parameter_b) const;
32 };
std::string GetProducerId() const override
Definition: TopPtReweightingProducer.cc:4
TopPtReweightingProducer Top Pt reweighting as suggested on: https://twiki.cern.ch/twiki/bin/viewauth...
Definition: TopPtReweightingProducer.h:19
void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: TopPtReweightingProducer.cc:19
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: TopPtReweightingProducer.cc:9