HiggsAnalysis-KITHiggsToTauTau
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
SimpleEleTauFakeRateWeightProducer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "HiggsAnalysis/KITHiggsToTauTau/interface/HttTypes.h"
5 
13 class SimpleEleTauFakeRateWeightProducer : public ProducerBase<HttTypes> {
14 public:
15 
17  SimpleEleTauFakeRateWeightProducer(std::vector<float>& (setting_type::*GetSimpleEleTauFakeRateWeightVLoose)(void) const,
18  std::vector<float>& (setting_type::*GetSimpleEleTauFakeRateWeightTight)(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::*GetSimpleEleTauFakeRateWeightVLoose)(void) const;
31  std::vector<float>& (setting_type::*GetSimpleEleTauFakeRateWeightTight)(void) const;
32 
33  std::vector<float> SimpleEleTauFakeRateWeightVLoose;
34  std::vector<float> SimpleEleTauFakeRateWeightTight;
35 };
void Produce(event_type const &event, product_type &product, setting_type const &settings, metadata_type const &metadata) const override
Definition: SimpleEleTauFakeRateWeightProducer.cc:33
std::string GetProducerId() const override
Definition: SimpleEleTauFakeRateWeightProducer.cc:28
SimpleEleTauFakeRateWeightProducer Config tags:
Definition: SimpleEleTauFakeRateWeightProducer.h:13
SimpleEleTauFakeRateWeightProducer()
Definition: SimpleEleTauFakeRateWeightProducer.cc:14
virtual void Init(setting_type const &settings, metadata_type &metadata) override
Definition: SimpleEleTauFakeRateWeightProducer.cc:20