HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
ScaleVariationProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <TH2.h>
5 #include "Artus/Core/interface/ProducerBase.h"
6 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
7 #include <boost/regex.hpp>
8 
16 class ScaleVariationProducer: public ProducerBase<HttTypes> {
17 public:
18 
19  std::string GetProducerId() const;
20 
21  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
22 
23  virtual void OnLumi(event_type const& event,
24  setting_type const& settings, metadata_type const& metadata) override;
25 
26  virtual void Produce(event_type const& event, product_type & product,
27  setting_type const& settings, metadata_type const& metadata) const override;
28 
29 private:
30  std::map<std::string, unsigned int> m_pdfLheWeightNamesIndices;
31  std::map<std::string, unsigned int> m_alphaSLheWeightNamesIndices;
32  std::map<std::string, unsigned int> m_scaleLheWeightNamesIndices;
33 
34  virtual void DetermineWeights(event_type const& event, product_type & product, setting_type const& settings,
35  std::map<std::string, unsigned int> const& lheWeightNamesIndices, std::string const& variationName) const;
36 
37 };
virtual void OnLumi(event_type const &event, setting_type const &settings, metadata_type const &metadata) override
Definition: ScaleVariationProducer.cc:48
ScaleVariationsProducer.
Definition: ScaleVariationProducer.h:16
virtual void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: ScaleVariationProducer.cc:58
std::string GetProducerId() const
Definition: ScaleVariationProducer.cc:11
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: ScaleVariationProducer.cc:16