HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SimpleMuTauFakeRateWeightProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
5 
13 class SimpleMuTauFakeRateWeightProducer : public ProducerBase<HttTypes> {
14 public:
15 
17  SimpleMuTauFakeRateWeightProducer(std::vector<float>& (setting_type::*GetSimpleMuTauFakeRateWeightLoose)(void) const,
18  std::vector<float>& (setting_type::*GetSimpleMuTauFakeRateWeightTight)(void) const);
19 
20  std::string GetProducerId() const override;
21 
22  virtual void Init(setting_type const& settings, metadata_type& metadata) override;
23 
24  void Produce(event_type const& event, product_type& product,
25  setting_type const& settings, metadata_type const& metadata) const override;
26 private:
27 
28  // the weights within each vector should be ordered by increasing |eta| in your json config
29  // with lowest |eta| being the first entry and highest |eta| the last one
30  std::vector<float>& (setting_type::*GetSimpleMuTauFakeRateWeightLoose)(void) const;
31  std::vector<float>& (setting_type::*GetSimpleMuTauFakeRateWeightTight)(void) const;
32 
33  std::vector<float> SimpleMuTauFakeRateWeightLoose;
34  std::vector<float> SimpleMuTauFakeRateWeightTight;
35 };
std::string GetProducerId() const override
Definition: SimpleMuTauFakeRateWeightProducer.cc:28
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: SimpleMuTauFakeRateWeightProducer.cc:20
void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: SimpleMuTauFakeRateWeightProducer.cc:33
SimpleMuTauFakeRateWeightProducer()
Definition: SimpleMuTauFakeRateWeightProducer.cc:14
SimpleMuTauFakeRateWeightProducer Config tags:
Definition: SimpleMuTauFakeRateWeightProducer.h:13